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

Disassembly:
push 0xffffffffffffffff
push 0x5e7d78
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov eax, dword [0x72d630]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [esp + 0x6c]
push 1
mov ecx, ebx
call sub.mfc90u.dll_CDC::SetBkMode
mov ecx, esi
call fcn.00538f70
mov edx, dword [eax]
mov dword [esp + 0x28], eax
mov ecx, eax
mov eax, dword [edx + 0xf4]
push esi
call eax
push eax
push ebx
lea ecx, [esp + 0x44]
call fcn.0055cc20
mov ecx, esi
mov dword [esp + 0x64], 0
call fcn.0058f420
mov edx, dword [eax]
push esi
mov ecx, eax
mov eax, dword [edx + 0x14c]
push ebx
call eax
mov ecx, esi
call fcn.0058f480
test eax, eax
je 0x59111d
lea ecx, [esp + 0x70]
push ecx
lea edx, [esi + 0x204]
push edx
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x59111d
mov ecx, esi
call fcn.0058f420
mov ecx, dword [esi + 0x288]
mov ecx, dword [ecx + 0x1c]
mov edx, dword [eax]
mov edx, dword [edx + 0x164]
push ecx
push esi
push ebx
mov ecx, eax
call edx
jmp 0x591156
cmp dword [esi + 0x29c], 0
je 0x591156
lea eax, [esp + 0x70]
push eax
lea ecx, [esi + 0x204]
push ecx
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x591156
mov ecx, esi
call fcn.0058f420
mov edx, dword [eax]
push esi
mov ecx, eax
mov eax, dword [edx + 0x168]
push ebx
call eax
mov ecx, esi
call fcn.0058f490
mov ebp, eax
mov dword [esp + 0x18], ebp
call fcn.0058f630
test eax, eax
je 0x5911a7
call fcn.0058f420
mov ecx, dword [esi + 0x1f4]
mov edi, dword [eax]
sub esp, 0x10
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [esi + 0x1f8]
mov dword [edx + 4], ecx
mov ecx, dword [esi + 0x1fc]
mov dword [edx + 8], ecx
mov ecx, dword [esi + 0x200]
mov dword [edx + 0xc], ecx
mov edx, dword [edi + 0x148]
push ebp
push ebx
mov ecx, eax
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x1a8]
mov ecx, esi
call edx
mov edi, eax
neg edi
sbb edi, edi
mov ecx, esi
inc edi
call fcn.0058f910
mov dword [eax + 0xa0], edi
cmp dword [esi + 0x270], 0
je 0x591246
lea edi, [esi + 0x1e4]
push edi
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x591246
cmp dword [esi + 0x24c], 0
je 0x591246
mov eax, dword [esi + 0x270]
test eax, eax
je 0x591209
add eax, 0x184
mov dword [esp + 0x14], eax
jmp 0x591211
mov dword [esp + 0x14], 0
mov ecx, esi
call fcn.0058f910
mov ecx, dword [edi]
mov ebp, dword [eax]
sub esp, 0x10
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [edi + 4]
mov dword [edx + 4], ecx
mov ecx, dword [edi + 8]
mov dword [edx + 8], ecx
mov ecx, dword [edi + 0xc]
mov dword [edx + 0xc], ecx
mov edx, dword [esp + 0x24]
push ebx
mov ecx, eax
mov eax, dword [ebp + 0x58]
push edx
call eax
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x591315
mov ecx, esi
call fcn.0058f630
test eax, eax
je 0x591315
mov ebp, dword [ebp + 0x88]
mov eax, dword [ebp + 0x28]
xor ebx, ebx
test eax, eax
jle 0x591311
test ebx, ebx
jl 0x59128c
cmp ebx, eax
jge 0x59128c
cmp ebx, dword [ebp + 0x28]
jge 0x5914bb
mov ecx, dword [ebp + 0x24]
mov edi, dword [ecx + ebx*4]
lea eax, [ecx + ebx*4]
jmp 0x59128e
xor edi, edi
mov ecx, edi
call fcn.005a6720
test eax, eax
je 0x591305
mov eax, dword [edi + 0x38]
mov edx, dword [edi + 0x34]
mov ecx, dword [edi + 0x3c]
mov dword [esp + 0x18], edx
mov edx, dword [edi + 0x40]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ecx
push eax
lea ecx, [esp + 0x74]
mov dword [esp + 0x28], edx
push ecx
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x591305
mov ecx, dword [esp + 0x70]
mov edx, dword [edi]
mov edx, dword [edx + 0x60]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x84]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x88]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x8c]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x7c]
push eax
mov ecx, edi
call edx
mov eax, dword [ebp + 0x28]
inc ebx
cmp ebx, eax
jl 0x591270
mov ebx, dword [esp + 0x6c]
mov ecx, esi
mov dword [esp + 0x6c], 1
xor ebp, ebp
call fcn.00539c50
test eax, eax
jle 0x5913e7
mov edi, edi
push ebp
mov ecx, esi
call fcn.00539c60
mov edi, eax
mov eax, dword [edi]
mov edx, dword [eax + 0x80]
push 0
mov ecx, edi
call edx
test eax, eax
je 0x5913d7
cmp dword [edi + 0x158], 0
jne 0x5913d7
cmp dword [edi + 0x98], 0
je 0x591381
cmp dword [esp + 0x6c], 0
jne 0x591381
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
mov eax, dword [eax + 0x8c]
push 1
push edi
push esi
push ebx
lea edx, [esp + 0x28]
push edx
call eax
mov ecx, dword [edi + 0xc0]
mov dword [esp + 0x2c], ecx
mov edx, dword [edi + 0xc4]
mov dword [esp + 0x30], edx
mov eax, dword [edi + 0xc8]
mov dword [esp + 0x34], eax
mov ecx, dword [edi + 0xcc]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x74]
mov dword [esp + 0x3c], ecx
push eax
lea ecx, [esp + 0x54]
push ecx
mov dword [esp + 0x78], 0
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x5913d7
mov edx, dword [edi]
mov eax, dword [edx + 0xa0]
push ebx
mov ecx, edi
call eax
mov ecx, esi
inc ebp
call fcn.00539c50
cmp ebp, eax
jl 0x591330
mov ecx, esi
call fcn.00538eb0
mov edi, eax
test edi, edi
je 0x591494
cmp dword [edi + 0x5c], 0
je 0x591494
mov ecx, dword [edi + 0x58]
test ecx, ecx
je 0x59147b
cmp dword [ecx + 0x100], esi
jne 0x59147b
mov edx, dword [ecx]
mov eax, dword [edx + 0x80]
push 0
call eax
test eax, eax
je 0x59147b
mov eax, dword [edi + 0x58]
mov ecx, dword [eax + 0xc0]
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 0xc4]
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + 0xc8]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 0xcc]
push 0
push 0
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
mov dword [esp + 0x30], edx
call sub.mfc90u.dll_CDC::Draw3dRect_1
push 0xffffffffffffffff
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.USER32.dll_InflateRect]
push 0
push 0
lea edx, [esp + 0x20]
push edx
mov ecx, ebx
call sub.mfc90u.dll_CDC::Draw3dRect_1
lea eax, [esi + 0x13c]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x591494
push ebx
mov ecx, esi
call fcn.00539e00
lea ecx, [esp + 0x3c]
mov dword [esp + 0x64], 0xffffffff
call fcn.0055cc60
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 0x14
call fcn.005df2b2
int3