Function at 0x479230
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a4553
mov eax, dword fs:[0]
push eax
sub esp, 0x1d8
mov eax, dword [0x4e24e0]
xor eax, esp
mov dword [esp + 0x1d0], eax
push ebx
push esi
push edi
mov eax, dword [0x4e24e0]
xor eax, esp
push eax
lea eax, [esp + 0x1e8]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14]
mov esi, ecx
mov dword [eax], 0
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x1c], esi
call edx
mov edi, dword [esi + 0x64]
sub edi, dword [esi + 0x60]
xor ebx, ebx
sar edi, 2
test edi, edi
jbe 0x4792bd
mov eax, dword [esi + 0x64]
sub eax, dword [esi + 0x60]
sar eax, 2
cmp ebx, eax
jb 0x4792a7
call fcn.00446707
mov ecx, dword [esi + 0x60]
mov ecx, dword [ecx + ebx*4]
test ecx, ecx
je 0x4792b8
mov edx, dword [ecx]
mov eax, dword [edx + 0x34]
call eax
inc ebx
cmp ebx, edi
jb 0x479295
mov eax, dword [esi + 0x7c]
sub eax, dword [esi + 0x78]
xor ebx, ebx
sar eax, 2
mov dword [esp + 0x18], eax
test eax, eax
jbe 0x47930a
mov ecx, dword [esi + 0x7c]
sub ecx, dword [esi + 0x78]
sar ecx, 2
cmp ebx, ecx
jb 0x4792e2
call fcn.00446707
mov edx, dword [esi + 0x78]
mov edi, dword [edx + ebx*4]
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x479303
push 0
push 0
push 0x785
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
inc ebx
cmp ebx, dword [esp + 0x18]
jb 0x4792d0
lea eax, [esi + 0x10c]
push eax
lea eax, [esp + 0x90]
push eax
call fcn.004237e0
xor edi, edi
mov eax, esi
mov dword [esp + 0x1f0], edi
call fcn.00477e50
mov dword [esp + 0x3c], edi
mov eax, dword [esp + 0x3c]
lea ecx, [eax + eax*2]
mov eax, dword [esi + ecx*8 + 0xcc]
lea edi, [esi + ecx*8 + 0xbc]
mov dword [esp + 0x58], eax
cmp dword [edi + 0xc], eax
jbe 0x479355
call fcn.00446707
mov ebx, dword [edi + 0xc]
mov edx, dword [edi]
mov dword [esp + 0x6c], edx
cmp ebx, dword [edi + 0x10]
jbe 0x479368
call fcn.00446707
mov edi, dword [edi]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebx
test edi, edi
je 0x47937c
cmp edi, dword [esp + 0x6c]
je 0x479381
call fcn.00446707
cmp ebx, dword [esp + 0x58]
je 0x47984e
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x479571
call fcn.00446707
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x4793a8
call fcn.00446707
mov edi, dword [ebx]
mov dword [esp + 0x20], edi
test edi, edi
je 0x4793ba
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
mov byte [esp + 0x1f0], 1
test edi, edi
je 0x479811
xor eax, eax
lea edx, [esp + 0x50]
push edx
push ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov eax, esp
mov dword [eax], edi
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [esp + 0x20], esp
push edi
call ecx
call fcn.00476d30
add esp, 8
cmp al, 1
jne 0x4797f8
xor eax, eax
lea edx, [esp + 0x50]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
push edx
lea eax, [esp + 0xc0]
push eax
lea esi, [esp + 0x94]
mov byte [esp + 0x1f], 0
call fcn.004238e0
mov esi, dword [eax]
mov ecx, dword [esp + 0xa4]
mov ebx, dword [eax + 4]
mov dword [esp + 0x80], ecx
test esi, esi
je 0x47944a
cmp esi, dword [esp + 0x8c]
je 0x47944f
call fcn.00446707
cmp ebx, dword [esp + 0x80]
je 0x47967e
test esi, esi
jne 0x479578
call fcn.00446707
cmp ebx, dword [esi + 0x18]
jne 0x479473
call fcn.00446707
lea eax, [ebx + 0x14]
push eax
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.USER32.dll_CopyRect]
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x479679
push edi
lea edi, [esp + 0x60]
call fcn.0047dfb0
test byte [0x4ebbb4], 1
jne 0x47957f
push 0x110
mov eax, 0x60
lea ecx, [esp + 0xcc]
push 0
mov esi, 1
or dword [0x4ebbb4], esi
push ecx
mov dword [0x4ebbb8], 0x64
mov dword [0x4ebbbc], eax
mov dword [0x4ebbc0], eax
mov byte [0x4ebbc4], 0
call fcn.0044b7d0
add esp, 0xc
lea edx, [esp + 0xc4]
push edx
mov dword [esp + 0xc8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0xc8], 5
jne 0x47951a
cmp dword [esp + 0xcc], esi
je 0x47957f
push 0
mov byte [0x4ebbc4], 1
mov edi, 0x60
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
je 0x479548
push 0x58
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push esi
push 0
mov edi, eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ebx, dword [sym.imp.KERNEL32.dll_MulDiv]
push 0x60
push 0x64
push edi
mov dword [0x4ebbc0], edi
call ebx
mov ecx, eax
mov dword [0x4ebbb8], ecx
cmp ecx, 0x64
jne 0x47958b
mov byte [0x4ebbc4], 0
jmp 0x47958b
mov eax, dword [eax]
jmp 0x47939e
mov esi, dword [esi]
jmp 0x479469
mov ecx, dword [0x4ebbb8]
mov ebx, dword [sym.imp.KERNEL32.dll_MulDiv]
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
sub eax, esi
sub edi, edx
cmp byte [0x4ebbc4], 0
mov dword [esp + 0x18], eax
je 0x47960f
cmp ecx, 0x64
je 0x4795c7
push 0x64
push ecx
push edx
call ebx
mov ecx, dword [0x4ebbb8]
mov esi, dword [esp + 0x30]
mov edx, eax
mov dword [esp + 0x2c], edx
cmp byte [0x4ebbc4], 0
je 0x47960f
cmp ecx, 0x64
je 0x4795eb
push 0x64
push ecx
push esi
call ebx
mov ecx, dword [0x4ebbb8]
mov edx, dword [esp + 0x2c]
mov esi, eax
mov dword [esp + 0x30], esi
cmp byte [0x4ebbc4], 0
je 0x47960f
cmp ecx, 0x64
je 0x47960f
push 0x64
push ecx
push edi
call ebx
mov ecx, dword [0x4ebbb8]
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
jmp 0x479611
mov eax, edi
add eax, edx
cmp byte [0x4ebbc4], 0
mov dword [esp + 0x34], eax
je 0x479639
cmp ecx, 0x64
je 0x479639
mov eax, dword [esp + 0x18]
push 0x64
push ecx
push eax
call ebx
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
jmp 0x47963d
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x5c]
mov edi, ecx
sub edi, edx
mov dword [esp + 0x48], edi
mov edi, dword [esp + 0x60]
mov ebx, edi
sub ebx, esi
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x64]
sub ebx, dword [esp + 0x34]
add eax, esi
sub ebx, ecx
mov ecx, dword [esp + 0x68]
sub ecx, eax
add ebx, edx
sub ecx, edi
add ecx, esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ecx
mov byte [esp + 0x17], 1
mov edi, dword [esp + 0x1c]
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0xb8]
add edi, 0x10c
push eax
mov esi, edi
call fcn.004238e0
mov esi, dword [eax]
mov ecx, dword [edi + 0x18]
mov ebx, dword [eax + 4]
mov edi, dword [edi]
mov dword [esp + 0x88], ecx
test esi, esi
je 0x4796b5
cmp esi, edi
je 0x4796ba
call fcn.00446707
cmp ebx, dword [esp + 0x88]
je 0x47973b
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x4c]
push eax
test esi, esi
jne 0x479733
call fcn.00446707
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x4796e2
call fcn.00446707
mov edi, dword [esp + 0x28]
lea ecx, [ebx + 0x14]
push ecx
push ecx
mov eax, esp
mov dword [eax], edi
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov dword [esp + 0x28], esp
push edi
call eax
call fcn.00477090
test esi, esi
jne 0x479737
call fcn.00446707
cmp ebx, dword [esi + 0x18]
jne 0x479713
call fcn.00446707
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x4c]
add ebx, 0x24
push ebx
push edx
mov eax, edi
call fcn.00483a30
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
jmp 0x47980d
mov eax, dword [esi]
jmp 0x4796d8
mov esi, dword [esi]
jmp 0x479709
cmp byte [esp + 0x17], 1
jne 0x4797f8
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0xb0]
add esi, 0xec
push ecx
call fcn.004238e0
mov edi, dword [eax]
mov edx, dword [esi + 0x18]
mov ebx, dword [eax + 4]
mov esi, dword [esi]
mov dword [esp + 0x78], edx
test edi, edi
je 0x479778
cmp edi, esi
je 0x47977d
call fcn.00446707
cmp ebx, dword [esp + 0x78]
je 0x4797f8
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x4c]
push ecx
test edi, edi
jne 0x4797f0
call fcn.00446707
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x4797a2
call fcn.00446707
mov esi, dword [esp + 0x28]
lea edx, [ebx + 0x14]
push edx
push ecx
mov eax, esp
mov dword [eax], esi
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov dword [esp + 0x28], esp
push esi
call ecx
call fcn.00477090
test edi, edi
jne 0x4797f4
call fcn.00446707
cmp ebx, dword [edi + 0x18]
jne 0x4797d3
call fcn.00446707
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x4c]
add ebx, 0x24
push ebx
push eax
mov eax, esi
call fcn.00483a30
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
jmp 0x47980d
mov eax, dword [edi]
jmp 0x479798
mov edi, dword [edi]
jmp 0x4797c9
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0x4c]
mov edi, dword [esp + 0x20]
push 0
push ecx
mov eax, edi
call fcn.00483a30
mov ebx, dword [esp + 0x28]
mov byte [esp + 0x1f0], 0
test edi, edi
je 0x479825
mov edx, dword [edi]
mov eax, dword [edx + 8]
push edi
call eax
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x47984a
call fcn.00446707
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x47983e
call fcn.00446707
mov edi, dword [esp + 0x24]
add ebx, 4
jmp 0x47936e
mov eax, dword [eax]
jmp 0x479834
mov eax, dword [esp + 0x3c]
inc eax
cmp eax, 2
mov dword [esp + 0x3c], eax
jl 0x479332
mov edx, dword [esi]
mov eax, dword [edx + 0x20]
mov ecx, esi
call eax
lea esi, [esp + 0x8c]
mov dword [esp + 0x1f0], 2
call fcn.004246b0
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.0044556f
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x1e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1d0]
xor ecx, esp
call fcn.0044557a
mov esp, ebp
pop ebp
ret 0x10