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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5deb20
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x658aa8]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov ebx, ecx
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [ebx + 0xd8]
push eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esp + 0x1c]
xor esi, esi
push ecx
mov dword [esp + 0x20], esi
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x471187
mov edi, dword [ebp + 8]
mov dword [esp + 0x88], esi
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 8], edx
lea esi, [esp + 0x54]
mov dword [eax + 0xc], ecx
call fcn.00457be0
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
add esp, 0x10
push edx
push eax
push edi
mov ecx, ebx
call fcn.0043d120
mov eax, dword [ebx + 0x358]
test eax, eax
jle 0x470e23
mov edx, dword [ebx]
mov edx, dword [edx + 0x178]
lea eax, [esp + 0x34]
push eax
mov ecx, ebx
call edx
mov eax, dword [ebx + 0xd8]
mov ecx, dword [ebx + 0xdc]
mov edx, dword [ebx + 0xe0]
mov esi, dword [ebx + 0xe4]
add eax, dword [esp + 0x34]
add ecx, dword [esp + 0x38]
sub edx, dword [esp + 0x3c]
sub esi, dword [esp + 0x40]
cmp dword [ebx + 0x388], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], esi
je 0x470d21
mov ecx, dword [ebx + 0x388]
mov eax, dword [ecx]
mov edx, dword [eax + 0x100]
call edx
test al, al
je 0x470d21
mov ecx, dword [ebx + 0x388]
mov eax, dword [ecx]
mov edx, dword [eax + 0x88]
call edx
sub dword [esp + 0x2c], eax
cmp dword [ebx + 0x38c], 0
je 0x470d52
mov ecx, dword [ebx + 0x38c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x100]
call edx
test al, al
je 0x470d52
mov ecx, dword [ebx + 0x38c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x90]
call edx
sub dword [esp + 0x30], eax
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x24]
push eax
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
jne 0x470ecb
cmp dword [ebx + 0x358], eax
mov dword [esp + 0x10], eax
jle 0x470e23
mov eax, dword [ebx + 0x354]
mov ecx, dword [esp + 0x10]
mov esi, dword [eax + ecx*4]
cmp esi, dword [ebp + 0x10]
je 0x470e91
mov edx, dword [esi]
mov eax, dword [edx + 0x100]
mov ecx, esi
call eax
test al, al
je 0x470e0e
mov edx, dword [esi]
mov eax, dword [edx + 0x58]
mov ecx, esi
call eax
mov ecx, dword [ebp + 0xc]
push eax
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x470e0e
mov eax, dword [esi]
mov edx, dword [eax + 0x12c]
mov ecx, esi
call edx
test al, al
je 0x470e0e
mov eax, dword [esi]
mov edx, dword [eax + 0x58]
mov ecx, esi
call edx
push eax
lea eax, [ebx + 0xd8]
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x470e0e
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi]
mov edx, dword [edx + 0x150]
push eax
push ecx
push edi
mov ecx, esi
call edx
test al, al
je 0x47109c
mov eax, dword [esp + 0x10]
inc eax
cmp eax, dword [ebx + 0x358]
mov dword [esp + 0x10], eax
jl 0x470d7e
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebx + 0x388], 0
je 0x4710fd
mov ecx, dword [ebx + 0x388]
mov edx, dword [ecx]
mov eax, dword [edx + 0x100]
call eax
test al, al
je 0x4710fd
mov ecx, dword [ebp + 0x10]
cmp dword [ebx + 0x388], ecx
jne 0x4710bf
mov edi, dword [esp + 0x5c]
mov edx, dword [esp + 0x54]
push edi
push edx
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push edi
call esi
mov eax, dword [esp + 0x58]
push eax
call esi
xor al, al
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x54]
push esi
push eax
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov ecx, dword [esp + 0x58]
push ecx
call esi
xor al, al
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov byte [esp + 0x88], 1
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 8], edx
lea esi, [esp + 0x70]
mov dword [eax + 0xc], ecx
call fcn.00457be0
add esp, 0x10
cmp dword [ebx + 0x358], 0
mov dword [esp + 0x10], 0
jle 0x471014
mov edx, dword [ebx + 0x354]
mov eax, dword [esp + 0x10]
mov esi, dword [edx + eax*4]
cmp esi, dword [ebp + 0x10]
je 0x471041
mov edx, dword [esi]
mov eax, dword [edx + 0x100]
mov ecx, esi
call eax
test al, al
je 0x470fff
mov edx, dword [esi]
mov eax, dword [edx + 0x58]
mov ecx, esi
call eax
mov ecx, dword [ebp + 0xc]
push eax
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x470fff
mov eax, dword [esi]
mov edx, dword [eax + 0x12c]
mov ecx, esi
call edx
mov ecx, esi
test al, al
je 0x470fc6
mov eax, dword [esi]
mov edx, dword [eax + 0x58]
call edx
push eax
lea eax, [ebx + 0xd8]
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x470fff
mov ecx, dword [esp + 0x78]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi]
mov edx, dword [edx + 0x150]
push eax
push ecx
push edi
mov ecx, esi
call edx
test al, al
je 0x471093
mov eax, dword [esp + 0x74]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
jmp 0x470fff
mov edx, dword [esi]
mov eax, dword [edx + 0x58]
call eax
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x470fff
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [esi]
mov eax, dword [eax + 0x150]
push ecx
push edx
push edi
mov ecx, esi
call eax
test al, al
je 0x471093
mov eax, dword [esp + 0x10]
inc eax
cmp eax, dword [ebx + 0x358]
mov dword [esp + 0x10], eax
jl 0x470f14
mov byte [esp + 0x88], 0
mov esi, dword [esp + 0x78]
mov edx, dword [esp + 0x70]
push esi
push edx
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [esp + 0x74]
push eax
call esi
jmp 0x470e29
mov esi, dword [esp + 0x78]
mov ecx, dword [esp + 0x70]
mov ebx, dword [sym.imp.GDI32.dll_SelectClipRgn]
push esi
push ecx
call ebx
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov edx, dword [esp + 0x74]
push edx
call esi
mov edi, dword [esp + 0x5c]
mov eax, dword [esp + 0x54]
push edi
push eax
call ebx
push edi
call esi
mov ecx, dword [esp + 0x58]
push ecx
call esi
xor al, al
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea esi, [esp + 0x60]
call fcn.00457bb0
lea esi, [esp + 0x44]
call fcn.00457bb0
xor al, al
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebx + 0x388]
mov edx, dword [ecx]
mov eax, dword [edx + 0x58]
call eax
mov ecx, dword [ebp + 0xc]
push eax
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4710fd
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebx + 0x388]
mov eax, dword [ecx]
mov eax, dword [eax + 0x150]
push edx
mov edx, dword [ebp + 0xc]
push edx
push edi
call eax
test al, al
je 0x47109c
cmp dword [ebx + 0x38c], 0
je 0x47116d
mov ecx, dword [ebx + 0x38c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x100]
call eax
test al, al
je 0x47116d
mov ecx, dword [ebp + 0x10]
cmp dword [ebx + 0x38c], ecx
je 0x470e5d
mov ecx, dword [ebx + 0x38c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x58]
call eax
mov ecx, dword [ebp + 0xc]
push eax
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x47116d
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebx + 0x38c]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebx]
mov eax, dword [eax + 0x150]
push ecx
push edx
push edi
mov ecx, ebx
call eax
test al, al
je 0x47109c
mov edi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x54]
push edi
push ecx
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push edi
call esi
mov edx, dword [esp + 0x58]
push edx
call esi
mov al, 1
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc