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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x554
mov ecx, dword [ebp + 8]
push ebx
mov al, 5
cmp al, byte [ecx + 2]
mov ecx, dword [0x51ae08]
push esi
sbb esi, esi
and esi, dword [0x51ae1c]
xor ebx, ebx
push edi
mov dword [esp + 0x54], ecx
cmp ecx, ebx
je 0x487094
call fcn.0041acb0
cmp esi, ebx
je 0x4870a2
test byte [esi + 0x15], 2
je 0x4870a2
mov al, 1
jmp 0x4870a4
xor al, al
mov byte [esp + 0x1b], bl
mov byte [esp + 0x1a], bl
mov byte [esp + 0x19], bl
mov dword [esp + 0x20], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], ebx
test al, al
je 0x487284
cmp byte [esi + 0x17], bl
jne 0x4870d8
mov esi, dword [esi + 0xc]
mov esi, dword [esi]
lea edx, [esp + 0xb8]
push edx
lea eax, [esp + 0xcc]
mov edi, 5
push eax
mov ecx, esi
mov dword [esp + 0xc8], edi
mov dword [esp + 0xc0], str.xywh
mov dword [esp + 0xc4], ebx
call fcn.0041b2d0
test al, al
je 0x487284
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x6c]
push edx
mov ecx, esi
mov dword [esp + 0x88], edi
mov dword [esp + 0x80], 0x50d2a0
mov dword [esp + 0x84], ebx
call fcn.0041b2d0
test al, al
je 0x487284
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x8c]
push ecx
mov ecx, esi
mov dword [esp + 0x68], edi
mov dword [esp + 0x60], 0x50d2a4
mov dword [esp + 0x64], ebx
call fcn.0041b2d0
test al, al
je 0x487284
lea edx, [esp + 0x98]
push edx
lea eax, [esp + 0xac]
push eax
mov ecx, esi
mov dword [esp + 0xa8], edi
mov dword [esp + 0xa0], 0x50d2a8
mov dword [esp + 0xa4], ebx
call fcn.0041b2d0
test al, al
je 0x487284
mov eax, dword [esp + 0xd0]
cmp eax, 1
jne 0x4871c6
mov ecx, dword [esp + 0xc8]
mov dword [esp + 0x38], ecx
jmp 0x4871e6
cmp eax, edi
jne 0x4871dc
mov esi, dword [esp + 0xc8]
call fcn.0041ac40
mov dword [esp + 0x2c], edx
jmp 0x4871e2
xor eax, eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x70]
cmp eax, 1
jne 0x4871f9
mov edx, dword [esp + 0x68]
mov dword [esp + 0x3c], edx
jmp 0x487216
cmp eax, edi
jne 0x48720c
mov esi, dword [esp + 0x68]
call fcn.0041ac40
mov dword [esp + 0x2c], edx
jmp 0x487212
xor eax, eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x90]
cmp eax, 1
jne 0x48722b
mov eax, dword [esp + 0x88]
jmp 0x487247
cmp eax, edi
jne 0x487241
mov esi, dword [esp + 0x88]
call fcn.0041ac40
mov dword [esp + 0x2c], edx
jmp 0x487247
xor eax, eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xb0]
cmp eax, 1
jne 0x487264
mov ecx, dword [esp + 0xa8]
mov dword [esp + 0x40], ecx
jmp 0x487284
cmp eax, edi
jne 0x48727a
mov esi, dword [esp + 0xa8]
call fcn.0041ac40
mov dword [esp + 0x2c], edx
jmp 0x487280
xor eax, eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x40], eax
mov esi, dword [ebp + 0x18]
or eax, 0xffffffff
mov dword [esp + 0x4c], eax
mov dword [esp + 0x24], eax
mov byte [esp + 0x44], bl
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x11], bl
mov byte [esp + 0x12], 1
mov dword [esp + 0x50], ebx
mov byte [esp + 0x10], bl
mov byte [esp + 0x13], bl
nop
movzx eax, word [esi]
cmp eax, 0x20
je 0x4872bd
cmp eax, 9
jne 0x4872c2
add esi, 2
jmp 0x4872b0
cmp word [esi], 0x2a
jne 0x487750
jmp 0x4872d4
mov esi, dword [esp + 0x14]
push 3
add esi, 2
push 0x50d2ac
mov dword [esp + 0x1c], esi
call fcn.004a4b10
add esp, 4
push eax
push esi
call fcn.004ca3fb
add esp, 0xc
test eax, eax
jne 0x487305
add esi, 6
mov byte [esp + 0x1b], 1
jmp 0x4875d2
push 0xd
push 0x50d2c4
call fcn.004a4b10
add esp, 4
push eax
push esi
call fcn.004ca3fb
add esp, 0xc
test eax, eax
jne 0x4873ca
movzx eax, word [esi + 0x1a]
add esi, 0x1a
test ax, ax
je 0x4873bb
cmp eax, 0x20
je 0x4873bb
cmp eax, 9
je 0x4873bb
push 0x3b
lea edx, [esp + 0xdc]
push esi
push edx
call fcn.004cb3f1
xor eax, eax
mov word [esp + 0x15a], ax
add esp, 0xc
mov ebx, 0x4ebd9c
lea eax, [esp + 0xd8]
call fcn.00409d30
test eax, eax
je 0x48737b
xor ecx, ecx
mov word [eax], cx
cmp word [esp + 0xd8], 0
je 0x4873bb
lea eax, [esp + 0xd8]
call fcn.0040e320
movzx edx, al
neg edx
sbb edx, edx
and edx, 6
add edx, 0xa
push edx
lea eax, [esp + 0xdc]
push 0
push eax
call fcn.004cb935
add esp, 0xc
mov dword [esp + 0x50], eax
jmp 0x4875d2
mov byte [esp + 0x10], 1
mov byte [esp + 0x13], 1
jmp 0x4875d2
push 9
push 0x50d2f0
call fcn.004a4b10
add esp, 4
push eax
push esi
call fcn.004ca3fb
add esp, 0xc
test eax, eax
jne 0x4873f4
add esi, 0x12
mov byte [esp + 0x1a], 1
jmp 0x4875d2
push 0xc
push 0x50d314
call fcn.004a4b10
add esp, 4
push eax
push esi
call fcn.004ca3fb
add esp, 0xc
test eax, eax
jne 0x48741e
add esi, 0x18
mov byte [esp + 0x19], 1
jmp 0x4875d2
push 6
push 0x50d340
call fcn.004a4b10
add esp, 4
push eax
push esi
call fcn.004ca3fb
add esp, 0xc
test eax, eax
jne 0x487448
add esi, 0xc
mov byte [esp + 0x44], 1
jmp 0x4875d2
push 5
push 0x50d360
call fcn.004a4b10
add esp, 4
push eax
push esi
call fcn.004ca3fb
add esp, 0xc
test eax, eax
jne 0x487485
add esi, 0xa
mov ecx, esi
lea edi, [esp + 0x4c]
call fcn.00498780
test al, al
jne 0x4875d2
mov byte [esp + 0x10], 1
jmp 0x4875d2
push 0xa
push 0x50d37c
call fcn.004a4b10
add esp, 4
push eax
push esi
call fcn.004ca3fb
add esp, 0xc
test eax, eax
jne 0x4874cb
add esi, 0x14
mov ecx, esi
lea edi, [esp + 0x24]
call fcn.00498780
test al, al
jne 0x4874be
mov byte [esp + 0x10], 1
jmp 0x4875d2
and dword [esp + 0x24], 0xffffff
jmp 0x4875d2
push 7
push 0x50d3a4
call fcn.004a4b10
add esp, 4
push eax
push esi
call fcn.004ca3fb
add esp, 0xc
test eax, eax
jne 0x4876b7
push 0xa
push 0x50d3c4
add esi, 0xe
call fcn.004a4b10
add esp, 4
push eax
push esi
call fcn.004ca3fb
add esp, 0xc
test eax, eax
jne 0x48751a
add esi, 0x14
mov byte [esp + 0x11], 1
mov byte [esp + 0x12], al
jmp 0x48756b
push 4
push 0x50d3ec
call fcn.004a4b10
add esp, 4
push eax
push esi
call fcn.004ca3fb
add esp, 0xc
test eax, eax
jne 0x48753e
mov byte [esp + 0x11], 1
jmp 0x487563
push 4
push 0x4f1444
call fcn.004a4b10
add esp, 4
push eax
push esi
call fcn.004ca3fb
add esp, 0xc
test eax, eax
jne 0x48747b
mov byte [esp + 0x11], al
add esi, 8
mov byte [esp + 0x12], 1
cmp byte [esp + 0x10], 0
mov dword [esp + 0x14], esi
jne 0x4875d2
cmp dword [esp + 0x1c], 0
jne 0x4875d2
push 0x207
lea ecx, [esp + 0x154]
push esi
push ecx
call fcn.004cb3f1
xor edx, edx
add esp, 0xc
mov ebx, 0x4ebd9c
lea eax, [esp + 0x150]
mov word [esp + 0x55e], dx
call fcn.00409d30
test eax, eax
je 0x4875b7
xor ecx, ecx
mov word [eax], cx
cmp byte [esp + 0x11], 0
je 0x487626
lea esi, [esp + 0x150]
call fcn.0041ac40
mov dword [esp + 0x1c], eax
mov esi, dword [esp + 0x14]
test esi, esi
je 0x487720
movzx eax, word [esi]
test ax, ax
je 0x487720
jmp 0x4875f0
movzx edx, ax
mov ecx, 0x4ebd9c
mov eax, 0x20
lea ecx, [ecx]
cmp dx, ax
je 0x4876f7
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x487600
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x4875f0
jmp 0x487720
push 0x207
lea edx, [esp + 0x154]
push esi
push edx
call fcn.004cb3f1
xor eax, eax
add esp, 0xc
cmp word [esp + 0x150], 0x3c
mov word [esp + 0x55e], ax
jne 0x4875d2
mov ebx, 0x50d408
lea eax, [esp + 0x152]
call fcn.00409d30
test eax, eax
je 0x4875d2
xor ecx, ecx
push ecx
push ecx
push ecx
mov word [eax], cx
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x160]
sub eax, edx
push 0
sar eax, 1
lea edx, [esp + 0x166]
lea eax, [esi + eax*2 + 2]
push 0
push edx
mov dword [esp + 0x30], eax
call fcn.004ad690
add esp, 0x1c
cmp dword [esp + 0x28], 1
mov dword [esp + 0x1c], eax
jne 0x4875ce
mov byte [esp + 0x10], 1
jmp 0x4875ce
cmp word [esi], 0
je 0x4875d2
call fcn.0040e380
mov dword [esp + 0x20], eax
test eax, eax
jns 0x4876db
mov dword [esp + 0x20], 0
jmp 0x4875ce
mov esi, dword [esp + 0x14]
cmp eax, 0xff
jle 0x4875d2
mov dword [esp + 0x20], 0xff
jmp 0x4875d2
mov eax, esi
lea esp, [esp]
movzx ecx, word [eax]
cmp ecx, 0x20
je 0x48770d
cmp ecx, 9
jne 0x487712
add eax, 2
jmp 0x487700
cmp word [eax], 0x2a
mov dword [esp + 0x14], eax
je 0x4872d0
cmp byte [esp + 0x1b], 0
je 0x487747
mov eax, dword [ebp + 0x14]
mov ecx, eax
movzx edx, al
shr ecx, 0x10
and ecx, 0xff
shl edx, 0x10
or ecx, edx
and eax, 0xff00
or ecx, eax
mov dword [ebp + 0x14], ecx
cmp byte [esp + 0x10], 0
jne 0x4877a5
xor ebx, ebx
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x4c]
mov edi, dword [ebp + 0x10]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
mov esi, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x58]
push edi
push ecx
mov ecx, dword [esp + 0x5c]
push edx
push eax
push ecx
push esi
call fcn.00487880
add esp, 0x34
mov dword [esp + 0x48], eax
cmp eax, ebx
jne 0x4877ab
mov byte [esp + 0x13], 1
jmp 0x4877ab
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
cmp byte [esp + 0x1a], 0
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
jne 0x4877bf
test esi, esi
je 0x4877bf
push esi
call ebx
cmp byte [esp + 0x19], 0
jne 0x4877cd
test edi, edi
je 0x4877cd
push edi
call ebx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4877e6
cmp byte [esp + 0x11], 0
je 0x4877e3
cmp byte [esp + 0x12], 0
je 0x4877e6
push eax
call ebx
cmp byte [esp + 0x13], 0
je 0x487838
mov edx, dword [0x5165ec]
test byte [edx + 0x100], 1
jne 0x48781b
mov eax, dword [0x51b6d0]
push 1
push 0
push 0xffffffffffffffff
push 0x4ebe14
push eax
call fcn.004aefb0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp + 8]
push 0x4f5ac4
push 0
push 0x4ebe14
call fcn.0042dac0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov esi, dword [esp + 0x48]
test esi, esi
je 0x487858
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x487856
mov eax, esi
cdq
push 0x18
push edx
push eax
mov eax, ecx
call fcn.00401590
test esi, esi
mov eax, dword [ebp + 8]
sete cl
movzx edx, cl
push edx
push eax
call fcn.0042db70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14