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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x73cf70
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x80100c]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebx, ecx
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [ebx + 0x154]
push eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esp + 0x34]
xor esi, esi
push ecx
mov dword [esp + 0x38], esi
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4163d9
mov edi, dword [ebp + 8]
mov dword [esp + 0x80], esi
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x44]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 8], edx
lea esi, [esp + 0x68]
mov dword [eax + 0xc], ecx
call fcn.0040eca0
mov esi, dword [ebp + 0xc]
add esp, 0x10
push esi
push edi
mov ecx, ebx
call fcn.0040e540
cmp dword [ebx + 0x109c], 0
je 0x415fdb
mov eax, dword [ebx + 0x109c]
mov edx, dword [eax + 0x30]
push 0
mov dword [esp + 0x44], edx
mov ecx, dword [eax + 0x38]
push 0
mov dword [esp + 0x50], ecx
mov edx, dword [eax + 0x2c]
push 0
push esi
mov dword [esp + 0x4c], edx
mov ecx, dword [eax + 0x34]
push 0
mov dword [esp + 0x58], ecx
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
lea ecx, [esp + 0x50]
push ecx
push 0
push edi
push 0
push 0
push 0
push 1
mov ecx, eax
call edx
cmp byte [ebx + 0x10a0], 0
je 0x415fdb
mov ecx, dword [ebx + 0x1090]
mov eax, dword [ecx]
mov edx, dword [eax + 0x58]
call edx
mov ecx, dword [esp + 0x44]
sub ecx, dword [esp + 0x3c]
mov edx, dword [ebx + 0x109c]
add eax, ecx
mov dword [esp + 0x18], eax
or eax, 0xffffffff
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [ebx]
mov dword [esp + 0x14], 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 + 0x14]
push ecx
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x24]
push ecx
push 1
push 0
push 0
push eax
push 1
mov ecx, esi
call edx
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x40]
cmp dword [esp + 0x14], eax
jg 0x415fd8
mov eax, ebx
call fcn.0040cd20
mov esi, dword [ebp + 0xc]
mov edx, dword [ebx]
mov edx, dword [edx + 0x1b8]
lea eax, [esp + 0x18]
push eax
push 0
lea ecx, [esp + 0x24]
push ecx
push 0x45f
mov ecx, ebx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0x4b0
call edx
cmp dword [esp + 0x18], 0
jne 0x416060
mov ecx, dword [ebx + 0x10d4]
cmp word [ecx], 0
je 0x416060
mov eax, dword [ebx + 0x109c]
mov edx, dword [eax + 0x30]
mov dword [esp + 0x40], edx
mov edx, dword [eax + 0x38]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 0x2c]
mov dword [esp + 0x3c], edx
mov eax, dword [eax + 0x34]
mov edx, dword [ebx + 0x10ac]
push 4
push edx
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 0x1158]
push eax
push ecx
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [ebx + 0x40]
mov edx, edi
call fcn.00410870
add esp, 0x14
cmp dword [ebx + 0x106c], 0
jle 0x41631d
mov eax, dword [ebx + 0x154]
mov ecx, dword [ebx + 0x158]
mov edx, dword [ebx + 0x15c]
mov esi, dword [ebx + 0x160]
add eax, dword [ebx + 0x1074]
add ecx, dword [ebx + 0x1078]
sub edx, dword [ebx + 0x107c]
sub esi, dword [ebx + 0x1080]
cmp dword [ebx + 0x1090], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], esi
je 0x4160db
mov ecx, dword [ebx + 0x1090]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc8]
call eax
test al, al
je 0x4160db
mov ecx, dword [ebx + 0x1090]
mov edx, dword [ecx]
mov eax, dword [edx + 0x58]
call eax
sub dword [esp + 0x24], eax
cmp dword [ebx + 0x1094], 0
je 0x416109
mov ecx, dword [ebx + 0x1094]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc8]
call eax
test al, al
je 0x416109
mov ecx, dword [ebx + 0x1094]
mov edx, dword [ecx]
mov eax, dword [edx + 0x60]
call eax
sub dword [esp + 0x28], eax
mov esi, dword [ebp + 0xc]
lea ecx, [esp + 0x1c]
push ecx
push esi
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
jne 0x4161ca
cmp dword [ebx + 0x106c], eax
mov dword [esp + 0x14], eax
jle 0x41631d
mov eax, dword [ebx + 0x1068]
mov ecx, dword [esp + 0x14]
mov esi, dword [eax + ecx*4]
mov edx, dword [esi]
mov eax, dword [edx + 0xc8]
mov ecx, esi
call eax
test al, al
je 0x4161b0
mov edx, dword [esi]
mov eax, dword [edx + 0x30]
mov ecx, esi
call eax
mov ecx, dword [ebp + 0xc]
push eax
push ecx
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4161b0
mov eax, dword [esi]
mov edx, dword [eax + 0xf4]
mov ecx, esi
call edx
test al, al
je 0x4161b0
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
mov ecx, esi
call edx
push eax
lea eax, [ebx + 0x154]
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4161b0
mov eax, dword [ebp + 0xc]
mov edx, dword [esi]
mov edx, dword [edx + 0x118]
push eax
push edi
mov ecx, esi
call edx
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [ebx + 0x106c]
mov dword [esp + 0x14], eax
jl 0x416135
jmp 0x41631a
mov byte [esp + 0x80], 1
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x48]
mov dword [eax + 8], ecx
lea esi, [esp + 0x4c]
mov dword [eax + 0xc], edx
call fcn.0040eca0
add esp, 0x10
cmp dword [ebx + 0x106c], 0
mov dword [esp + 0x14], 0
jle 0x4162f2
mov eax, dword [ebx + 0x1068]
mov ecx, dword [esp + 0x14]
mov esi, dword [eax + ecx*4]
mov edx, dword [esi]
mov eax, dword [edx + 0xc8]
mov ecx, esi
call eax
test al, al
je 0x4162dd
mov edx, dword [esi]
mov eax, dword [edx + 0x30]
mov ecx, esi
call eax
mov ecx, dword [ebp + 0xc]
push eax
push ecx
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4162dd
mov eax, dword [esi]
mov edx, dword [eax + 0xf4]
mov ecx, esi
call edx
mov ecx, esi
test al, al
je 0x4162b0
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
call edx
push eax
lea eax, [ebx + 0x154]
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4162dd
mov ecx, dword [esp + 0x54]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov eax, dword [ebp + 0xc]
mov edx, dword [esi]
mov edx, dword [edx + 0x118]
push eax
push edi
mov ecx, esi
call edx
mov eax, dword [esp + 0x50]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
jmp 0x4162dd
mov edx, dword [esi]
mov eax, dword [edx + 0x30]
call eax
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4162dd
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi]
mov edx, dword [eax + 0x118]
push ecx
push edi
mov ecx, esi
call edx
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [ebx + 0x106c]
mov dword [esp + 0x14], eax
jl 0x416213
mov byte [esp + 0x80], 0
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x4c]
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 + 0x50]
push ecx
call esi
mov esi, dword [ebp + 0xc]
cmp dword [ebx + 0x1090], 0
je 0x41636a
mov ecx, dword [ebx + 0x1090]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc8]
call eax
test al, al
je 0x41636a
mov ecx, dword [ebx + 0x1090]
mov edx, dword [ecx]
mov eax, dword [edx + 0x30]
call eax
push eax
push esi
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x41636a
mov ecx, dword [ebx + 0x1090]
mov edx, dword [ecx]
mov eax, dword [edx + 0x118]
push esi
push edi
call eax
cmp dword [ebx + 0x1094], 0
je 0x4163b9
mov ecx, dword [ebx + 0x1094]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc8]
call eax
test al, al
je 0x4163b9
mov ecx, dword [ebx + 0x1094]
mov edx, dword [ecx]
mov eax, dword [edx + 0x30]
call eax
push eax
push esi
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4163b9
mov ebx, dword [ebx + 0x1094]
mov edx, dword [ebx]
mov eax, dword [edx + 0x118]
push esi
push edi
mov ecx, ebx
call eax
mov esi, dword [esp + 0x70]
mov ecx, dword [esp + 0x68]
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 + 0x6c]
push edx
call esi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8