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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52c7c1
mov eax, dword fs:[0]
push eax
sub esp, 0x1d8
mov eax, dword [0x569638]
xor eax, esp
mov dword [esp + 0x1d0], eax
push ebx
push esi
push edi
mov eax, dword [0x569638]
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 0x48436d
mov eax, dword [esi + 0x64]
sub eax, dword [esi + 0x60]
sar eax, 2
cmp ebx, eax
jb 0x484357
call fcn.004f4962
mov ecx, dword [esi + 0x60]
mov ecx, dword [ecx + ebx*4]
test ecx, ecx
je 0x484368
mov edx, dword [ecx]
mov eax, dword [edx + 0x34]
call eax
inc ebx
cmp ebx, edi
jb 0x484345
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 0x4843ba
mov ecx, dword [esi + 0x7c]
sub ecx, dword [esi + 0x78]
sar ecx, 2
cmp ebx, ecx
jb 0x484392
call fcn.004f4962
mov edx, dword [esi + 0x78]
mov edi, dword [edx + ebx*4]
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4843b3
push 0
push 0
push 0x785
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
inc ebx
cmp ebx, dword [esp + 0x18]
jb 0x484380
lea eax, [esi + 0x10c]
push eax
lea eax, [esp + 0x90]
push eax
call fcn.004852c0
xor edi, edi
mov eax, esi
mov dword [esp + 0x1f0], edi
call fcn.00482a90
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 0x484405
call fcn.004f4962
mov ebx, dword [edi + 0xc]
mov edx, dword [edi]
mov dword [esp + 0x6c], edx
cmp ebx, dword [edi + 0x10]
jbe 0x484418
call fcn.004f4962
mov edi, dword [edi]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebx
test edi, edi
je 0x48442c
cmp edi, dword [esp + 0x6c]
je 0x484431
call fcn.004f4962
cmp ebx, dword [esp + 0x58]
je 0x4848fe
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x484621
call fcn.004f4962
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x484458
call fcn.004f4962
mov edi, dword [ebx]
mov dword [esp + 0x20], edi
test edi, edi
je 0x48446a
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
mov byte [esp + 0x1f0], 1
test edi, edi
je 0x4848c1
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.00480fd0
add esp, 8
cmp al, 1
jne 0x4848a8
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.004853c0
mov esi, dword [eax]
mov ecx, dword [esp + 0xa4]
mov ebx, dword [eax + 4]
mov dword [esp + 0x80], ecx
test esi, esi
je 0x4844fa
cmp esi, dword [esp + 0x8c]
je 0x4844ff
call fcn.004f4962
cmp ebx, dword [esp + 0x80]
je 0x48472e
test esi, esi
jne 0x484628
call fcn.004f4962
cmp ebx, dword [esi + 0x18]
jne 0x484523
call fcn.004f4962
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 0x484729
push edi
lea edi, [esp + 0x60]
call fcn.00475720
test byte [0x5758b4], 1
jne 0x48462f
push pe_nt_image_headers32
mov eax, 0x60
lea ecx, [esp + 0xcc]
push 0
mov esi, 1
or dword [0x5758b4], esi
push ecx
mov dword [0x5758b8], 0x64
mov dword [0x5758bc], eax
mov dword [0x5758c0], eax
mov byte [0x5758c4], 0
call fcn.004fb000
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 0x4845ca
cmp dword [esp + 0xcc], esi
je 0x48462f
push 0
mov byte [0x5758c4], 1
mov edi, 0x60
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
je 0x4845f8
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 [0x5758c0], edi
call ebx
mov ecx, eax
mov dword [0x5758b8], ecx
cmp ecx, 0x64
jne 0x48463b
mov byte [0x5758c4], 0
jmp 0x48463b
mov eax, dword [eax]
jmp 0x48444e
mov esi, dword [esi]
jmp 0x484519
mov ecx, dword [0x5758b8]
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 [0x5758c4], 0
mov dword [esp + 0x18], eax
je 0x4846bf
cmp ecx, 0x64
je 0x484677
push 0x64
push ecx
push edx
call ebx
mov ecx, dword [0x5758b8]
mov esi, dword [esp + 0x30]
mov edx, eax
mov dword [esp + 0x2c], edx
cmp byte [0x5758c4], 0
je 0x4846bf
cmp ecx, 0x64
je 0x48469b
push 0x64
push ecx
push esi
call ebx
mov ecx, dword [0x5758b8]
mov edx, dword [esp + 0x2c]
mov esi, eax
mov dword [esp + 0x30], esi
cmp byte [0x5758c4], 0
je 0x4846bf
cmp ecx, 0x64
je 0x4846bf
push 0x64
push ecx
push edi
call ebx
mov ecx, dword [0x5758b8]
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
jmp 0x4846c1
mov eax, edi
add eax, edx
cmp byte [0x5758c4], 0
mov dword [esp + 0x34], eax
je 0x4846e9
cmp ecx, 0x64
je 0x4846e9
mov eax, dword [esp + 0x18]
push 0x64
push ecx
push eax
call ebx
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
jmp 0x4846ed
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.004853c0
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 0x484765
cmp esi, edi
je 0x48476a
call fcn.004f4962
cmp ebx, dword [esp + 0x88]
je 0x4847eb
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x4c]
push eax
test esi, esi
jne 0x4847e3
call fcn.004f4962
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x484792
call fcn.004f4962
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.00482cf0
test esi, esi
jne 0x4847e7
call fcn.004f4962
cmp ebx, dword [esi + 0x18]
jne 0x4847c3
call fcn.004f4962
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x4c]
add ebx, 0x24
push ebx
push edx
mov eax, edi
call fcn.00476100
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
jmp 0x4848bd
mov eax, dword [esi]
jmp 0x484788
mov esi, dword [esi]
jmp 0x4847b9
cmp byte [esp + 0x17], 1
jne 0x4848a8
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0xb0]
add esi, 0xec
push ecx
call fcn.004853c0
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 0x484828
cmp edi, esi
je 0x48482d
call fcn.004f4962
cmp ebx, dword [esp + 0x78]
je 0x4848a8
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x4c]
push ecx
test edi, edi
jne 0x4848a0
call fcn.004f4962
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x484852
call fcn.004f4962
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.00482cf0
test edi, edi
jne 0x4848a4
call fcn.004f4962
cmp ebx, dword [edi + 0x18]
jne 0x484883
call fcn.004f4962
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x4c]
add ebx, 0x24
push ebx
push eax
mov eax, esi
call fcn.00476100
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
jmp 0x4848bd
mov eax, dword [edi]
jmp 0x484848
mov edi, dword [edi]
jmp 0x484879
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0x4c]
mov edi, dword [esp + 0x20]
push 0
push ecx
mov eax, edi
call fcn.00476100
mov ebx, dword [esp + 0x28]
mov byte [esp + 0x1f0], 0
test edi, edi
je 0x4848d5
mov edx, dword [edi]
mov eax, dword [edx + 8]
push edi
call eax
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4848fa
call fcn.004f4962
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x4848ee
call fcn.004f4962
mov edi, dword [esp + 0x24]
add ebx, 4
jmp 0x48441e
mov eax, dword [eax]
jmp 0x4848e4
mov eax, dword [esp + 0x3c]
inc eax
cmp eax, 2
mov dword [esp + 0x3c], eax
jl 0x4843e2
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.00485fc0
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.004f3984
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.004f398f
mov esp, ebp
pop ebp
ret 0x10