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

Disassembly:
push 0xffffffffffffffff
push 0x5e6658
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x72d630]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0056b050
xor ebx, ebx
mov dword [esp + 0x20], eax
cmp eax, ebx
je 0x56d8b1
lea eax, [esp + 0x48]
push eax
call fcn.0056c0f0
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], vtable.CRgn.0
mov edi, dword [esp + 0x78]
mov edx, dword [edi + 8]
lea ecx, [esp + 0x28]
push ecx
push edx
mov dword [esp + 0x78], ebx
call dword [sym.imp.GDI32.dll_GetViewportOrgEx]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x28]
push ecx
mov dword [esp + 0x68], eax
push edx
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push eax
lea ecx, [esp + 0x34]
call sub.mfc90u.dll_CGdiObject::Attach
lea edx, [esp + 0x30]
push edx
mov ecx, edi
call sub.mfc90u.dll_CDC::SelectClipRgn
cmp dword [esi + 0x200], ebx
je 0x56d6b1
mov dword [esp + 0x14], 0xffffffff
jmp 0x56d6bb
mov eax, dword [esi + 0x1fc]
mov dword [esp + 0x14], eax
cmp dword [esi + 0x254], ebx
mov dword [esp + 0x18], ebx
jle 0x56d88d
xor ebp, ebp
mov dword [esp + 0x24], ebp
test ebp, ebp
jl 0x56d8c7
cmp ebx, dword [esi + 0x254]
jge 0x56d8c7
mov edi, dword [esi + 0x250]
add edi, ebp
push edi
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esi + 0x210]
neg eax
push eax
push 0
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esp + 0x4c]
cmp dword [esp + 0x44], eax
jl 0x56d875
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x56d867
cmp dword [esp + 0x14], ebx
jne 0x56d746
mov dword [esp + 0x1c], 1
cmp dword [esi + 0x204], eax
jne 0x56d74e
mov dword [esp + 0x1c], 0
mov eax, dword [esi + 0x9c]
mov edx, dword [edi + 0x10]
mov ebp, dword [edx + 0x20]
cmp eax, 0xffffffff
jne 0x56d76e
mov ecx, dword [esi + 0x15c]
test ecx, ecx
je 0x56d76e
call fcn.0052c5b0
xor ecx, ecx
cmp dword [esp + 0x14], ebx
mov edx, dword [esp + 0x20]
sete cl
mov edx, dword [edx]
mov edx, dword [edx + 0x5c]
mov ebx, ecx
xor ecx, ecx
cmp dword [esi + 0x1f8], ebp
sete cl
push ecx
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x40]
push ebx
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x64]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x10]
mov ecx, dword [esp + 0x98]
push eax
push esi
push ecx
mov ecx, dword [esp + 0x4c]
call edx
test eax, eax
jne 0x56d863
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x14], eax
jne 0x56d7eb
cmp dword [esi + 0x204], 0
mov dword [esp + 0x1c], 1
jne 0x56d7f3
mov dword [esp + 0x1c], 0
mov ecx, dword [edi + 0x10]
mov ebp, dword [esi + 0x9c]
mov edx, dword [ecx + 0x20]
mov dword [esp + 0x28], edx
cmp ebp, 0xffffffff
jne 0x56d819
mov ecx, dword [esi + 0x15c]
test ecx, ecx
je 0x56d819
call fcn.0052c5b0
mov ebp, eax
mov ecx, dword [edi + 0x10]
mov edi, dword [esp + 0x28]
xor eax, eax
cmp dword [esi + 0x1f8], edi
mov edi, dword [esp + 0x38]
sete al
mov edx, dword [ecx]
mov edx, dword [edx + 0x5c]
push eax
mov eax, dword [esp + 0x20]
push eax
push ebx
push ebp
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [esp + 0x5c]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x60]
mov dword [eax + 8], edi
mov edi, dword [esp + 0x64]
mov dword [eax + 0xc], edi
mov eax, dword [esp + 0x98]
push esi
push eax
call edx
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x54]
cmp dword [esp + 0x3c], eax
jg 0x56d88d
mov ebp, dword [esp + 0x24]
inc ebx
add ebp, 0x18
cmp ebx, dword [esi + 0x254]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebp
jl 0x56d6d1
mov ecx, dword [esp + 0x78]
push 0
call sub.mfc90u.dll_CDC::SelectClipRgn
lea ecx, [esp + 0x30]
mov dword [esp + 0x70], 0xffffffff
mov dword [esp + 0x30], vtable.CRgn.0
call fcn.00401a60
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 4
call fcn.005df2b2
int3