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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48e1c0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4b04dc]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x4b04dc]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor eax, eax
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
lea eax, [ebx + 0xd4]
push eax
push ecx
lea eax, [esp + 0x44]
xor esi, esi
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x48], esi
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x42df52
mov dword [esp + 0x88], esi
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x58]
mov dword [eax + 8], ecx
lea esi, [esp + 0x30]
mov dword [eax + 0xc], edx
call fcn.00441f40
mov esi, dword [esp + 0x24]
add esp, 0x10
push esi
push edi
mov ecx, ebx
call fcn.0043a190
cmp dword [ebx + 0x2fc], 0
je 0x42dbd2
mov eax, dword [ebx + 0x2fc]
mov ecx, dword [eax + 0x30]
push 0
push 0
mov dword [esp + 0x68], ecx
mov edx, dword [eax + 0x38]
push 0
push esi
mov dword [esp + 0x78], edx
mov ecx, dword [eax + 0x2c]
push 0
mov dword [esp + 0x70], ecx
mov edx, dword [eax + 0x34]
lea ecx, [esp + 0x70]
push ecx
push 0
push edi
push 0
mov dword [esp + 0x88], edx
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push 0
push 0
push 1
mov ecx, eax
call edx
cmp byte [ebx + 0x300], 0
je 0x42dbd2
mov ecx, dword [ebx + 0x2f0]
mov eax, dword [ecx]
mov edx, dword [eax + 0x58]
call edx
mov ecx, dword [esp + 0x64]
sub ecx, dword [esp + 0x5c]
mov edx, dword [ebx + 0x2fc]
add eax, ecx
mov dword [esp + 0x1c], eax
or eax, 0xffffffff
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov eax, dword [ebx]
mov dword [esp + 0x18], 0
mov esi, dword [edx + 0xc]
mov edx, dword [eax + 0x1c]
mov ecx, ebx
call edx
mov eax, dword [eax + 8]
mov edx, dword [esi]
mov edx, dword [edx + 0x44]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x54]
push ecx
push 1
push 0
push 0
push eax
push 1
mov ecx, esi
call edx
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x60]
cmp dword [esp + 0x18], eax
jg 0x42dbce
mov eax, ebx
call fcn.00439370
mov esi, dword [esp + 0x14]
cmp dword [ebx + 0x2d0], 0
jle 0x42de96
mov eax, dword [ebx + 0xd4]
mov ecx, dword [ebx + 0xd8]
mov edx, dword [ebx + 0xdc]
mov esi, dword [ebx + 0xe0]
add eax, dword [ebx + 0x2d8]
add ecx, dword [ebx + 0x2dc]
sub edx, dword [ebx + 0x2e0]
sub esi, dword [ebx + 0x2e4]
cmp dword [ebx + 0x2f0], 0
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], esi
je 0x42dc4d
mov ecx, dword [ebx + 0x2f0]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc0]
call eax
test al, al
je 0x42dc4d
mov ecx, dword [ebx + 0x2f0]
mov edx, dword [ecx]
mov eax, dword [edx + 0x58]
call eax
sub dword [esp + 0x54], eax
cmp dword [ebx + 0x2f4], 0
je 0x42dc7b
mov ecx, dword [ebx + 0x2f4]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc0]
call eax
test al, al
je 0x42dc7b
mov ecx, dword [ebx + 0x2f4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x60]
call eax
sub dword [esp + 0x58], eax
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x4c]
push ecx
push esi
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
jne 0x42dd3f
mov dword [esp + 0x18], eax
cmp dword [ebx + 0x2d0], eax
jle 0x42de96
mov eax, dword [ebx + 0x2cc]
mov ecx, dword [esp + 0x18]
mov esi, dword [eax + ecx*4]
mov edx, dword [esi]
mov eax, dword [edx + 0xc0]
mov ecx, esi
call eax
test al, al
je 0x42dd25
mov edx, dword [esi]
mov eax, dword [edx + 0x30]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x42dd25
mov eax, dword [esi]
mov edx, dword [eax + 0xec]
mov ecx, esi
call edx
test al, al
je 0x42dd25
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
mov ecx, esi
call edx
push eax
lea eax, [ebx + 0xd4]
push eax
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x42dd25
mov eax, dword [esp + 0x14]
mov edx, dword [esi]
mov edx, dword [edx + 0x110]
push eax
push edi
mov ecx, esi
call edx
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [ebx + 0x2d0]
jl 0x42dca8
jmp 0x42de92
mov byte [esp + 0x88], 1
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x58]
mov dword [eax + 8], ecx
lea esi, [esp + 0x6c]
mov dword [eax + 0xc], edx
call fcn.00441f40
add esp, 0x10
cmp dword [ebx + 0x2d0], 0
mov dword [esp + 0x18], 0
jle 0x42de6a
mov eax, dword [ebx + 0x2cc]
mov ecx, dword [esp + 0x18]
mov esi, dword [eax + ecx*4]
mov edx, dword [esi]
mov eax, dword [edx + 0xc0]
mov ecx, esi
call eax
test al, al
je 0x42de55
mov edx, dword [esi]
mov eax, dword [edx + 0x30]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x42de55
mov eax, dword [esi]
mov edx, dword [eax + 0xec]
mov ecx, esi
call edx
mov ecx, esi
test al, al
je 0x42de27
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
call edx
push eax
lea eax, [ebx + 0xd4]
push eax
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x42de55
mov ecx, dword [esp + 0x74]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov eax, dword [esp + 0x14]
mov edx, dword [esi]
mov edx, dword [edx + 0x110]
push eax
push edi
mov ecx, esi
call edx
mov eax, dword [esp + 0x70]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
jmp 0x42de55
mov edx, dword [esi]
mov eax, dword [edx + 0x30]
call eax
push eax
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x42de55
mov ecx, dword [esp + 0x14]
mov eax, dword [esi]
mov edx, dword [eax + 0x110]
push ecx
push edi
mov ecx, esi
call edx
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [ebx + 0x2d0]
jl 0x42dd88
mov byte [esp + 0x88], 0
mov esi, dword [esp + 0x74]
mov eax, dword [esp + 0x6c]
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 + 0x70]
push ecx
call esi
mov esi, dword [esp + 0x14]
cmp dword [ebx + 0x2f0], 0
je 0x42dee3
mov ecx, dword [ebx + 0x2f0]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc0]
call eax
test al, al
je 0x42dee3
mov ecx, dword [ebx + 0x2f0]
mov edx, dword [ecx]
mov eax, dword [edx + 0x30]
call eax
push eax
push esi
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x42dee3
mov ecx, dword [ebx + 0x2f0]
mov edx, dword [ecx]
mov eax, dword [edx + 0x110]
push esi
push edi
call eax
cmp dword [ebx + 0x2f4], 0
je 0x42df32
mov ecx, dword [ebx + 0x2f4]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc0]
call eax
test al, al
je 0x42df32
mov ecx, dword [ebx + 0x2f4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x30]
call eax
push eax
push esi
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x42df32
mov ebx, dword [ebx + 0x2f4]
mov edx, dword [ebx]
mov eax, dword [edx + 0x110]
push esi
push edi
mov ecx, ebx
call eax
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
push esi
push ecx
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov edx, dword [esp + 0x34]
push edx
call esi
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00475dcc
mov esp, ebp
pop ebp
ret 8