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

Disassembly:
push 0xffffffffffffffff
push 0x5e8410
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x72d630]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebx, ecx
xor edx, edx
cmp ebx, edx
je 0x599e89
cmp dword [ebx + 0x20], edx
je 0x599e89
mov esi, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
mov eax, dword [esi + 0xc]
mov edi, dword [esp + 0x5c]
add eax, dword [esi + 4]
mov ebp, ecx
sub ebp, edi
cmp eax, ebp
jg 0x599e89
test byte [esp + 0x70], 1
jne 0x599cd5
mov edx, dword [esp + 0x6c]
push edx
mov edx, dword [esp + 0x5c]
push esi
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x78]
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
push eax
push ecx
mov ecx, ebx
call fcn.00599660
jmp 0x599e89
cmp dword [ebx + 0x24], edx
je 0x599d26
mov edx, dword [esi]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov edx, dword [esi + 8]
mov dword [eax + 8], edx
mov edx, dword [esi + 0xc]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x68]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x80]
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
push eax
push ecx
mov ecx, ebx
call fcn.00598490
jmp 0x599e89
mov eax, dword [esp + 0x54]
mov edi, dword [eax + 0xc]
mov ebp, dword [eax + 8]
sub edi, dword [eax + 4]
sub ebp, dword [eax]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], vtable.CBitmap.0
mov eax, dword [esp + 0x50]
mov dword [esp + 0x48], edx
cmp eax, edx
jne 0x599d51
xor eax, eax
jmp 0x599d54
mov eax, dword [eax + 4]
lea edx, [esp + 0x68]
push edx
push edi
push ebp
push eax
call fcn.005487f0
add esp, 0x10
push eax
lea ecx, [esp + 0x18]
call sub.mfc90u.dll_CGdiObject::Attach
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x34]
call fcn.0055cec0
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x6c]
mov byte [esp + 0x48], 1
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], edi
cmp eax, 0xffffffff
je 0x599db0
push eax
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x34]
call sub.mfc90u.dll_CDC::FillSolidRect_1
mov ecx, dword [esi]
mov edx, dword [esi + 4]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esi + 8]
mov dword [eax + 4], edx
mov edx, dword [esi + 0xc]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x6c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x80]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x84]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x50]
push ecx
mov ecx, ebx
call fcn.00598490
imul edi, ebp
test edi, edi
jle 0x599e3b
mov eax, dword [esp + 0x68]
lea ecx, [ecx]
mov ecx, dword [esp + 0x6c]
cmp ecx, 0xffffffff
je 0x599e25
cmp dword [eax], ecx
jne 0x599e25
mov dword [eax], 0
jmp 0x599e2b
or dword [eax], 0xff000000
mov eax, dword [esp + 0x68]
add eax, 4
sub edi, 1
mov dword [esp + 0x68], eax
jne 0x599e10
mov eax, dword [esp + 0x50]
test eax, eax
je 0x599e46
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x58]
push ecx
push edx
push eax
call fcn.0054f0f0
mov ecx, eax
call fcn.005495f0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 0
call fcn.0055cfd0
lea ecx, [esp + 0x14]
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x14], vtable.CBitmap.0
call fcn.00401a60
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0x24