Function at 0x431510
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a5bf1
mov eax, dword fs:[0]
push eax
sub esp, 0x1d8
mov eax, dword [0x4c9614]
xor eax, esp
mov dword [esp + 0x1d0], eax
push ebx
push esi
push edi
mov eax, dword [0x4c9614]
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 0x43159d
mov eax, dword [esi + 0x64]
sub eax, dword [esi + 0x60]
sar eax, 2
cmp ebx, eax
jb 0x431587
call fcn.0047ef33
mov ecx, dword [esi + 0x60]
mov ecx, dword [ecx + ebx*4]
test ecx, ecx
je 0x431598
mov edx, dword [ecx]
mov eax, dword [edx + 0x34]
call eax
inc ebx
cmp ebx, edi
jb 0x431575
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 0x4315ea
mov ecx, dword [esi + 0x7c]
sub ecx, dword [esi + 0x78]
sar ecx, 2
cmp ebx, ecx
jb 0x4315c2
call fcn.0047ef33
mov edx, dword [esi + 0x78]
mov edi, dword [edx + ebx*4]
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4315e3
push 0
push 0
push 0x785
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
inc ebx
cmp ebx, dword [esp + 0x18]
jb 0x4315b0
lea eax, [esi + 0x10c]
push eax
lea eax, [esp + 0x90]
push eax
call fcn.004325b0
xor edi, edi
mov eax, esi
mov dword [esp + 0x1f0], edi
call fcn.0042fcc0
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 0x431635
call fcn.0047ef33
mov ebx, dword [edi + 0xc]
mov edx, dword [edi]
mov dword [esp + 0x6c], edx
cmp ebx, dword [edi + 0x10]
jbe 0x431648
call fcn.0047ef33
mov edi, dword [edi]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebx
test edi, edi
je 0x43165c
cmp edi, dword [esp + 0x6c]
je 0x431661
call fcn.0047ef33
cmp ebx, dword [esp + 0x58]
je 0x431b2e
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x431851
call fcn.0047ef33
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x431688
call fcn.0047ef33
mov edi, dword [ebx]
mov dword [esp + 0x20], edi
test edi, edi
je 0x43169a
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
mov byte [esp + 0x1f0], 1
test edi, edi
je 0x431af1
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.0042e1d0
add esp, 8
cmp al, 1
jne 0x431ad8
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.004326b0
mov esi, dword [eax]
mov ecx, dword [esp + 0xa4]
mov ebx, dword [eax + 4]
mov dword [esp + 0x80], ecx
test esi, esi
je 0x43172a
cmp esi, dword [esp + 0x8c]
je 0x43172f
call fcn.0047ef33
cmp ebx, dword [esp + 0x80]
je 0x43195e
test esi, esi
jne 0x431858
call fcn.0047ef33
cmp ebx, dword [esi + 0x18]
jne 0x431753
call fcn.0047ef33
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 0x431959
push edi
lea edi, [esp + 0x60]
call fcn.004228f0
test byte [0x4d1f90], 1
jne 0x43185f
push pe_nt_image_headers32
mov eax, 0x60
lea ecx, [esp + 0xcc]
push 0
mov esi, 1
or dword [0x4d1f90], esi
push ecx
mov dword [0x4d1f94], 0x64
mov dword [0x4d1f98], eax
mov dword [0x4d1f9c], eax
mov byte [0x4d1fa0], 0
call fcn.004845b0
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 0x4317fa
cmp dword [esp + 0xcc], esi
je 0x43185f
push 0
mov byte [0x4d1fa0], 1
mov edi, 0x60
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
je 0x431828
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 [0x4d1f9c], edi
call ebx
mov ecx, eax
mov dword [0x4d1f94], ecx
cmp ecx, 0x64
jne 0x43186b
mov byte [0x4d1fa0], 0
jmp 0x43186b
mov eax, dword [eax]
jmp 0x43167e
mov esi, dword [esi]
jmp 0x431749
mov ecx, dword [0x4d1f94]
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 [0x4d1fa0], 0
mov dword [esp + 0x18], eax
je 0x4318ef
cmp ecx, 0x64
je 0x4318a7
push 0x64
push ecx
push edx
call ebx
mov ecx, dword [0x4d1f94]
mov esi, dword [esp + 0x30]
mov edx, eax
mov dword [esp + 0x2c], edx
cmp byte [0x4d1fa0], 0
je 0x4318ef
cmp ecx, 0x64
je 0x4318cb
push 0x64
push ecx
push esi
call ebx
mov ecx, dword [0x4d1f94]
mov edx, dword [esp + 0x2c]
mov esi, eax
mov dword [esp + 0x30], esi
cmp byte [0x4d1fa0], 0
je 0x4318ef
cmp ecx, 0x64
je 0x4318ef
push 0x64
push ecx
push edi
call ebx
mov ecx, dword [0x4d1f94]
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
jmp 0x4318f1
mov eax, edi
add eax, edx
cmp byte [0x4d1fa0], 0
mov dword [esp + 0x34], eax
je 0x431919
cmp ecx, 0x64
je 0x431919
mov eax, dword [esp + 0x18]
push 0x64
push ecx
push eax
call ebx
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
jmp 0x43191d
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.004326b0
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 0x431995
cmp esi, edi
je 0x43199a
call fcn.0047ef33
cmp ebx, dword [esp + 0x88]
je 0x431a1b
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x4c]
push eax
test esi, esi
jne 0x431a13
call fcn.0047ef33
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x4319c2
call fcn.0047ef33
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.0042ff30
test esi, esi
jne 0x431a17
call fcn.0047ef33
cmp ebx, dword [esi + 0x18]
jne 0x4319f3
call fcn.0047ef33
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x4c]
add ebx, 0x24
push ebx
push edx
mov eax, edi
call fcn.004231d0
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
jmp 0x431aed
mov eax, dword [esi]
jmp 0x4319b8
mov esi, dword [esi]
jmp 0x4319e9
cmp byte [esp + 0x17], 1
jne 0x431ad8
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0xb0]
add esi, 0xec
push ecx
call fcn.004326b0
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 0x431a58
cmp edi, esi
je 0x431a5d
call fcn.0047ef33
cmp ebx, dword [esp + 0x78]
je 0x431ad8
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x4c]
push ecx
test edi, edi
jne 0x431ad0
call fcn.0047ef33
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x431a82
call fcn.0047ef33
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.0042ff30
test edi, edi
jne 0x431ad4
call fcn.0047ef33
cmp ebx, dword [edi + 0x18]
jne 0x431ab3
call fcn.0047ef33
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x4c]
add ebx, 0x24
push ebx
push eax
mov eax, esi
call fcn.004231d0
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
jmp 0x431aed
mov eax, dword [edi]
jmp 0x431a78
mov edi, dword [edi]
jmp 0x431aa9
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0x4c]
mov edi, dword [esp + 0x20]
push 0
push ecx
mov eax, edi
call fcn.004231d0
mov ebx, dword [esp + 0x28]
mov byte [esp + 0x1f0], 0
test edi, edi
je 0x431b05
mov edx, dword [edi]
mov eax, dword [edx + 8]
push edi
call eax
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x431b2a
call fcn.0047ef33
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x431b1e
call fcn.0047ef33
mov edi, dword [esp + 0x24]
add ebx, 4
jmp 0x43164e
mov eax, dword [eax]
jmp 0x431b14
mov eax, dword [esp + 0x3c]
inc eax
cmp eax, 2
mov dword [esp + 0x3c], eax
jl 0x431612
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.004335f0
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.0047e6e0
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.0047e6eb
mov esp, ebp
pop ebp
ret 0x10