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

Disassembly:
push 0xffffffffffffffff
push 0x5d1b18
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x613ad0]
xor eax, esp
push eax
lea eax, [esp + 0xb4]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x2c], edi
mov ebp, dword [esp + 0xd8]
xor eax, eax
xor ebx, ebx
cmp dword [ebp], 0xffffffff
mov dword [esp + 0x34], ebx
sete al
cmp eax, ebx
mov dword [esp + 0x28], eax
je 0x458604
mov eax, 0x7f
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], eax
jmp 0x45861c
movzx eax, byte [ebp]
movzx ecx, byte [ebp + 1]
movzx edx, byte [ebp + 2]
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], edx
mov eax, dword [ebp + 0x74]
test eax, 0x100
mov dword [esp + 0x30], 1
je 0x458634
mov dword [esp + 0x30], ebx
jmp 0x458643
test eax, 0x200
je 0x458643
mov dword [esp + 0x30], 2
mov ecx, dword [esp + 0xc8]
mov edx, dword [ecx + 0x20]
lea eax, [esp + 0x78]
push eax
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [edi + 0x6c]
cmp eax, ebx
mov esi, dword [esp + 0xc4]
mov dword [esp + 0x74], ebx
je 0x4586a5
mov ecx, dword [eax + 0x10]
cmp ecx, ebx
je 0x4586a5
mov edx, 0x424f5743
cmp dword [eax + 8], edx
jne 0x4586a5
cmp dword [ecx + 8], edx
jne 0x4586a5
mov ebx, dword [esp + 0xe4]
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x68]
push edi
mov edi, dword [esp + 0xec]
push edi
push ebx
push esi
call fcn.00467dd0
mov dword [esp + 0x74], eax
jmp 0x4586b3
mov edi, dword [esp + 0xe8]
mov ebx, dword [esp + 0xe4]
cmp dword [esp + 0x28], 0
jne 0x4586df
mov ecx, dword [ebp]
mov edx, dword [esp + 0x84]
sub edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x80]
sub eax, dword [esp + 0x78]
push ecx
push edx
push eax
push edi
push ebx
mov ecx, esi
call fcn.0058fef9
mov eax, dword [esp + 0xe0]
test eax, eax
je 0x458717
cmp dword [eax + 0x14], 0
je 0x458717
mov ecx, dword [esp + 0x84]
sub ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
sub edx, dword [esp + 0x78]
push ecx
mov ecx, dword [esi + 4]
push edx
push edi
push ebx
push ecx
push eax
call fcn.00456ee0
add esp, 0x18
mov edx, dword [esp + 0xc8]
mov ecx, dword [esp + 0x2c]
push edi
push ebx
push ebp
push edx
push esi
call fcn.004571b0
mov edi, dword [esp + 0xcc]
cmp dword [edi + 8], 0
je 0x458efe
mov eax, dword [esp + 0xdc]
mov ecx, dword [eax + 4]
mov edx, dword [esi + 4]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp + 4]
mov dword [esp + 0x88], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
push ecx
mov ecx, esi
call edx
push 1
mov ecx, esi
call fcn.0058e9bd
test byte [ebp + 0x74], 4
je 0x458787
mov eax, dword [ebp + 0x70]
push eax
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov dword [esp + 0x34], eax
mov eax, dword [edi + 8]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x28], ebx
jg 0x458954
mov edx, dword [esp + 0xd0]
mov eax, dword [esp + 0xd4]
cmp eax, 0xffffffff
je 0x458edd
test eax, eax
jl 0x458d9b
cmp eax, dword [edi + 8]
jge 0x458d9b
cmp eax, dword [edx + 8]
mov ecx, dword [edi + 4]
mov ebx, dword [ecx + eax*4]
mov dword [esp + 0x24], ebx
jge 0x458d9b
mov edx, dword [edx + 4]
mov edi, dword [edx + eax*4]
mov eax, dword [edi]
mov dword [esp + 0x14], eax
mov ecx, dword [edi + 4]
mov dword [esp + 0x18], ecx
mov edx, dword [edi + 8]
mov ecx, dword [esp + 0xe8]
mov dword [esp + 0x1c], edx
mov eax, dword [edi + 0xc]
mov edx, dword [esp + 0xe4]
push ecx
mov dword [esp + 0x24], eax
push edx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push 2
mov ecx, esi
call fcn.0058e9bd
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
test ecx, ecx
je 0x458da0
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x17c]
lea eax, [esp + 0x44]
push eax
call edx
mov ecx, dword [esp + 0x44]
mov eax, dword [edi + 8]
mov ebx, dword [esp + 0x50]
sub ebx, dword [esp + 0x48]
add eax, ecx
add ecx, dword [edi]
mov dword [esp + 0x4c], eax
sub eax, ecx
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x8c]
mov dword [esp + 0x28], eax
call fcn.00413700
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
sub ecx, dword [esp + 0x44]
push eax
push ecx
lea ecx, [esp + 0x94]
mov dword [esp + 0xc4], 0
call fcn.004146c0
mov edx, dword [edi + 4]
mov eax, dword [edi]
mov ecx, dword [esp + 0x2c]
push 0xcc0020
push edx
mov edx, dword [ecx + 0x184]
mov ecx, dword [esp + 0x58]
sub ecx, dword [esp + 0x50]
push eax
mov eax, dword [edx + 4]
mov edx, dword [esp + 0x58]
sub edx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0xa0]
push ecx
mov ecx, dword [eax + 4]
push edx
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
cmp dword [esp + 0xec], 0
jne 0x458900
mov edx, dword [esp + 0x28]
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push ebx
push edx
mov edx, dword [esi + 4]
push eax
push ecx
push edx
lea eax, [esp + 0xa0]
push eax
call fcn.00456ee0
add esp, 0x18
mov ecx, dword [esp + 0xe8]
mov edx, dword [esp + 0xe4]
mov eax, dword [esp + 0xc8]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push ebp
push eax
push esi
call fcn.004571b0
lea ecx, [esp + 0x8c]
mov dword [esp + 0xbc], 0xffffffff
call fcn.00413770
mov ebx, dword [esp + 0x24]
jmp 0x458dc0
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0xd0]
mov ecx, dword [edx + 8]
cmp ebx, ecx
jge 0x45879f
test ebx, ebx
jl 0x458d9b
cmp ebx, eax
jge 0x458d9b
cmp ebx, ecx
mov eax, dword [edi + 4]
mov edi, dword [eax + ebx*4]
jge 0x458d9b
mov ecx, dword [edx + 4]
mov eax, dword [ecx + ebx*4]
mov edx, dword [eax]
mov dword [esp + 0x14], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 8]
mov ecx, dword [esp + 0xe8]
mov dword [esp + 0x1c], edx
mov eax, dword [eax + 0xc]
mov edx, dword [esp + 0xe4]
push ecx
mov dword [esp + 0x24], eax
push edx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
test byte [ebp + 0x74], 4
je 0x458a24
mov ecx, dword [esp + 0x34]
mov edx, dword [esi + 4]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
push 5
mov ebx, eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esi + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x20]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_Rectangle]
mov eax, dword [esi + 4]
push ebx
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
call ebx
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 4]
push ecx
push edx
call ebx
test byte [edi + 0xa0], 1
je 0x458c69
test byte [ebp + 0x74], 0x10
je 0x458a85
mov eax, dword [esp + 0x38]
add eax, 0x78
cmp eax, 0xff
mov edx, 0xff
jg 0x458a4c
mov edx, eax
mov eax, dword [esp + 0x40]
add eax, 0x78
cmp eax, 0xff
mov ecx, 0xff
jg 0x458a61
mov ecx, eax
mov eax, dword [esp + 0x3c]
add eax, 0x78
cmp eax, 0xff
jle 0x458a74
mov eax, 0xff
xor ebx, ebx
mov bh, al
movzx eax, dl
mov bl, cl
shl ebx, 8
or ebx, eax
push ebx
jmp 0x458a89
mov ecx, dword [ebp + 0x10]
push ecx
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov edx, dword [esi + 4]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov edi, eax
push edi
push edx
call ebx
test byte [ebp + 0x74], 1
mov dword [esp + 0x24], eax
push 0
je 0x458af2
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
add eax, 3
push eax
mov eax, dword [esp + 0x24]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
sub eax, ecx
add edx, 0xfffffffd
push edx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
push eax
mov eax, dword [esi + 4]
push eax
jmp 0x458b34
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
sub eax, ecx
cdq
sub eax, edx
mov edx, dword [esi + 4]
sar eax, 1
add eax, ecx
mov ecx, dword [esp + 0x18]
push eax
add ecx, 3
push ecx
push edx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov ecx, dword [esi + 4]
push eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffffd
push eax
push ecx
call dword [sym.imp.GDI32.dll_LineTo]
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 4]
push edx
push eax
call ebx
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
test byte [ebp + 0x74], 0x10
je 0x458d72
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
add ecx, 0xffffffc4
xor eax, eax
test ecx, ecx
setl al
mov edi, dword [esp + 0x3c]
add edx, 0xffffffc4
sub eax, 1
and eax, ecx
xor ecx, ecx
test edx, edx
setl cl
add edi, 0xffffffc4
sub ecx, 1
and ecx, edx
xor edx, edx
test edi, edi
setl dl
xor ebx, ebx
sub edx, 1
and edx, edi
mov bh, dl
mov bl, cl
movzx ecx, al
shl ebx, 8
or ebx, ecx
push ebx
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov edx, dword [esi + 4]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, eax
push ebx
push edx
call edi
test byte [ebp + 0x74], 1
mov dword [esp + 0x24], eax
push 0
je 0x458c06
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
add eax, 3
push eax
mov eax, dword [esp + 0x24]
sub eax, ecx
cdq
sub eax, edx
mov edx, dword [esi + 4]
sar eax, 1
lea ecx, [eax + ecx - 1]
push ecx
push edx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
add eax, 0xfffffffd
push eax
mov eax, dword [esp + 0x20]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
lea ecx, [eax + ecx - 1]
jmp 0x458c47
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
sub eax, ecx
cdq
sub eax, edx
mov edx, dword [esi + 4]
sar eax, 1
lea eax, [eax + ecx - 1]
mov ecx, dword [esp + 0x18]
push eax
add ecx, 3
push ecx
push edx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
lea eax, [eax + ecx - 1]
mov ecx, dword [esp + 0x1c]
push eax
add ecx, 0xfffffffd
mov edx, dword [esi + 4]
push ecx
push edx
call dword [sym.imp.GDI32.dll_LineTo]
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 4]
push eax
push ecx
call edi
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x458d72
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x58], eax
mov eax, dword [edi + 4]
or ebx, 0xc00
push ebx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
mov ecx, dword [eax - 0xc]
mov edx, dword [esi]
lea ebx, [esp + 0x58]
push ebx
push ecx
push eax
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
test byte [ebp + 0x74], 2
mov ecx, dword [0x615468]
je 0x458cca
call fcn.0040d440
mov ecx, eax
imul ecx, dword [ebp + 0x78]
mov eax, 0x51eb851f
mul ecx
jmp 0x458cdc
call fcn.0040d440
mov edx, eax
imul edx, dword [ebp + 0x78]
mov eax, 0x51eb851f
mul edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x615468]
shr edx, 5
sub eax, edx
mov dword [esp + 0x5c], eax
call fcn.0040d440
mov ecx, eax
imul ecx, dword [ebp + 0x78]
mov eax, 0x51eb851f
mul ecx
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x60]
shr edx, 5
sub eax, dword [esp + 0x18]
add edx, dword [esp + 0x14]
add eax, dword [esp + 0x20]
mov dword [esp + 0x54], edx
cdq
sub eax, edx
sar eax, 1
push eax
push 0
lea edx, [esp + 0x5c]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ebx, dword [esp + 0x30]
mov eax, dword [edi + 4]
mov ecx, dword [eax - 0xc]
mov edx, dword [esi]
or ebx, 0x800
push ebx
lea ebx, [esp + 0x58]
push ebx
push ecx
push eax
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
cmp dword [edi + 0x94], 0
je 0x458d72
test byte [ebp + 0x74], 2
je 0x458d72
mov ecx, dword [ebp + 4]
push ecx
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x18]
push edx
push esi
call fcn.00456e10
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0xcc]
mov eax, dword [eax + 8]
mov edi, dword [esp + 0xcc]
add ecx, 1
cmp ecx, eax
mov dword [esp + 0x28], ecx
jl 0x458950
jmp 0x458798
call fcn.0057e0f5
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x1c]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, esi
call fcn.0058fef9
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
push ecx
mov ecx, esi
call edx
push 1
mov ecx, esi
call fcn.0058e9bd
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x20]
mov ecx, edi
or ecx, 0xc00
push ecx
mov dword [esp + 0x70], edx
mov edx, dword [esi]
mov edx, dword [edx + 0x68]
mov dword [esp + 0x74], eax
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
call edx
test byte [ebp + 0x74], 2
mov ecx, dword [0x615468]
je 0x458e39
call fcn.0040d440
mov ecx, eax
imul ecx, dword [ebp + 0x78]
mov eax, 0x51eb851f
mul ecx
jmp 0x458e4b
call fcn.0040d440
mov edx, eax
imul edx, dword [ebp + 0x78]
mov eax, 0x51eb851f
mul edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x615468]
shr edx, 5
sub eax, edx
mov dword [esp + 0x6c], eax
call fcn.0040d440
mov ecx, eax
imul ecx, dword [ebp + 0x78]
mov eax, 0x51eb851f
mul ecx
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x70]
shr edx, 5
sub eax, dword [esp + 0x18]
add edx, dword [esp + 0x14]
add eax, dword [esp + 0x20]
mov dword [esp + 0x64], edx
cdq
sub eax, edx
sar eax, 1
push eax
push 0
lea edx, [esp + 0x6c]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebx + 4]
mov edx, dword [esi]
mov edx, dword [edx + 0x68]
or edi, 0x800
push edi
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
call edx
cmp dword [ebx + 0x94], 0
je 0x458edd
test byte [ebp + 0x74], 2
je 0x458edd
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x34]
push esi
call fcn.00456e10
mov edx, dword [esp + 0x88]
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x458efe
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [esp + 0x74], 0
je 0x458f0e
push 0
mov ecx, esi
call fcn.0058ef72
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret 0x2c