Function at 0x59ad00
Capabilities:
Access peb ldr_data
Get process heap force flags
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5e85c0
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x72d630]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
mov edi, dword [esp + 0x8c]
xor ecx, ecx
mov eax, edi
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.mfc90u.dll_new__
xor ebx, ebx
add esp, 4
mov ebp, eax
xor edx, edx
cmp edi, ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x38], ebx
jle 0x59adae
mov ecx, dword [esp + 0x88]
sub ecx, ebp
mov dword [esp + 0x8c], edi
nop
mov esi, dword [ecx + eax]
cmp dword [esp + 0x94], ebx
jne 0x59ad98
add edx, esi
mov esi, dword [esp + 0x38]
mov dword [esp + 0x34], edx
mov edx, dword [ecx + eax + 4]
add esi, edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x38], esi
mov dword [eax], edx
jmp 0x59ad9e
mov dword [eax], esi
mov esi, dword [ecx + eax + 4]
mov dword [eax + 4], esi
add eax, 8
sub dword [esp + 0x8c], 1
jne 0x59ad70
mov esi, dword [esp + 0x80]
mov eax, dword [esi]
mov edx, dword [eax + 0x58]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, esi
call edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], vtable.CRgn.0
lea eax, [esp + 0x4c]
push eax
mov dword [esp + 0x7c], ebx
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push eax
lea ecx, [esp + 0x30]
call sub.mfc90u.dll_CGdiObject::Attach
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], vtable.CRgn.0
push 1
push edi
push ebp
mov byte [esp + 0x84], 1
call dword [sym.imp.GDI32.dll_CreatePolygonRgn]
push eax
lea ecx, [esp + 0x20]
call sub.mfc90u.dll_CGdiObject::Attach
push 1
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call sub.mfc90u.dll_CDC::SelectClipRgn_1
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.GDI32.dll_GetRgnBox]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], vtable.CBitmap.0
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
sub ecx, dword [esp + 0x3c]
push eax
push ecx
mov ecx, dword [esi + 4]
push ecx
mov byte [esp + 0x84], 2
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x28]
call sub.mfc90u.dll_CGdiObject::Attach
lea edx, [esp + 0x24]
push edx
push esi
lea ecx, [esp + 0x64]
call fcn.0055cec0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x1c]
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0x48]
sub edx, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
sub edi, dword [esp + 0x3c]
mov ecx, dword [ecx + 0xe8]
mov ebp, dword [ecx]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
xor ebx, ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], edi
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 0x18]
lea edx, [esp + 0x70]
mov byte [esp + 0x8c], 3
push edx
call eax
mov edx, dword [esp + 0x40]
mov ebp, dword [esp + 0x60]
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
push 0xcc0020
push 0
push 0
mov edi, eax
mov eax, dword [esp + 0x54]
push ebp
sub eax, edx
push eax
sub ecx, ebx
push ecx
mov ecx, dword [esi + 4]
push edx
push ebx
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
call sub.mfc90u.dll_CDC::SelectClipRgn
mov eax, dword [esp + 0x18]
push eax
call sub.mfc90u.dll_delete__
add esp, 4
lea ecx, [esp + 0x5c]
mov byte [esp + 0x78], 2
call fcn.0055cfd0
lea ecx, [esp + 0x24]
mov byte [esp + 0x78], 1
mov dword [esp + 0x24], vtable.CBitmap.0
call fcn.00401a60
mov esi, vtable.CRgn.0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x78], 0
mov dword [esp + 0x1c], esi
call fcn.00401a60
lea ecx, [esp + 0x2c]
mov dword [esp + 0x78], 0xffffffff
mov dword [esp + 0x2c], esi
call fcn.00401a60
mov eax, edi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 0x18