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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x45b170]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [esp + 0x10], eax
xor eax, eax
xor esi, esi
mov dword [esp + 0x48], esi
lea edi, [esp + 0x4c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
stosd dword es:[edi], eax
lea eax, [ebx + 0xd2]
push eax
push ecx
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x18], ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x40c783
sub esp, 0x10
lea esi, [esp + 0x58]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x20]
lea edx, [esp + 0x2c]
mov ecx, edi
call fcn.004192e5
mov esi, dword [esp + 0x1c]
add esp, 0x10
mov ecx, ebx
push esi
push edi
call fcn.00413dac
mov ecx, dword [ebx + 0x309]
xor edi, edi
test ecx, ecx
je 0x40c4ae
mov eax, dword [ecx + 0x30]
push edi
push edi
push edi
push esi
push edi
mov dword [esp + 0x70], eax
mov eax, dword [ecx + 0x38]
lea edx, [esp + 0x6c]
push edx
push edi
push dword [esp + 0x2c]
mov dword [esp + 0x84], eax
mov eax, dword [ecx + 0x2c]
mov dword [esp + 0x78], eax
mov eax, dword [ecx + 0x34]
push edi
mov dword [esp + 0x84], eax
mov ecx, dword [ecx + 0xc]
push edi
mov eax, dword [ecx]
push edi
push 1
call dword [eax + 0x10]
cmp byte [ebx + 0x30d], 0
je 0x40c4ae
mov ecx, dword [ebx + 0x2fd]
mov eax, dword [ecx]
call dword [eax + 0x58]
mov ecx, dword [esp + 0x60]
sub ecx, dword [esp + 0x58]
or dword [esp + 0x38], 0xffffffff
or dword [esp + 0x3c], 0xffffffff
add eax, ecx
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x309]
mov dword [esp + 0x14], edi
mov esi, dword [eax + 0xc]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esi]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x40]
push ecx
push 1
push edi
push edi
push dword [eax + 8]
mov ecx, esi
push 1
call dword [edx + 0x44]
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x5c]
cmp dword [esp + 0x14], eax
jg 0x40c4ae
mov ecx, ebx
call fcn.004131dc
cmp dword [ebx + 0x2dd], edi
jle 0x40c6e8
mov eax, dword [ebx + 0x2e5]
mov ecx, dword [ebx + 0x2fd]
lea esi, [ebx + 0xd2]
lea edi, [esp + 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add dword [esp + 0x38], eax
mov eax, dword [ebx + 0x2e9]
add dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x2ed]
sub dword [esp + 0x40], eax
mov eax, dword [ebx + 0x2f1]
sub dword [esp + 0x44], eax
test ecx, ecx
je 0x40c515
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x40c515
mov ecx, dword [ebx + 0x2fd]
mov eax, dword [ecx]
call dword [eax + 0x58]
sub dword [esp + 0x40], eax
mov ecx, dword [ebx + 0x301]
test ecx, ecx
je 0x40c53a
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x40c53a
mov ecx, dword [ebx + 0x301]
mov eax, dword [ecx]
call dword [eax + 0x60]
sub dword [esp + 0x44], eax
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x38]
push eax
push edi
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
jne 0x40c5e7
xor esi, esi
cmp dword [ebx + 0x2dd], esi
jle 0x40c6ec
mov eax, dword [ebx + 0x2d9]
mov ecx, dword [eax + esi*4]
mov dword [esp + 0xc], ecx
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x40c5d9
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
push eax
push edi
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x40c5d9
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0xf4]
test al, al
je 0x40c5d9
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
push eax
lea eax, [ebx + 0xd2]
push eax
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x40c5d9
mov ecx, dword [esp + 0xc]
push edi
mov eax, dword [ecx]
push dword [esp + 0x14]
call dword [eax + 0x118]
inc esi
cmp esi, dword [ebx + 0x2dd]
jl 0x40c565
jmp 0x40c6ec
mov ecx, dword [esp + 0x10]
sub esp, 0x10
lea esi, [esp + 0x58]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x68]
movsd dword es:[edi], dword [esi]
call fcn.004192e5
xor esi, esi
add esp, 0x10
cmp dword [ebx + 0x2dd], esi
jle 0x40c6df
mov eax, dword [ebx + 0x2d9]
mov edi, dword [eax + esi*4]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0xc8]
test al, al
je 0x40c6d2
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x30]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x40c6d2
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xf4]
test al, al
mov eax, dword [edi]
mov ecx, edi
je 0x40c6a8
call dword [eax + 0x30]
push eax
lea eax, [ebx + 0xd2]
push eax
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x40c6d2
push dword [esp + 0x70]
push dword [esp + 0x14]
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push dword [esp + 0xc]
mov eax, dword [edi]
push dword [esp + 0x14]
mov ecx, edi
call dword [eax + 0x118]
push dword [esp + 0x6c]
push dword [esp + 0x14]
call dword [sym.imp.GDI32.dll_SelectClipRgn]
jmp 0x40c6d2
call dword [eax + 0x30]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x40c6d2
push dword [esp + 0xc]
mov eax, dword [edi]
push dword [esp + 0x14]
mov ecx, edi
call dword [eax + 0x118]
inc esi
cmp esi, dword [ebx + 0x2dd]
jl 0x40c612
lea ecx, [esp + 0x58]
call fcn.004192c2
mov edi, dword [esp + 0xc]
mov ecx, dword [ebx + 0x2fd]
test ecx, ecx
je 0x40c734
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x40c734
mov ecx, dword [ebx + 0x2fd]
mov eax, dword [ecx]
call dword [eax + 0x30]
push eax
push edi
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
mov esi, dword [esp + 0x10]
test eax, eax
je 0x40c738
mov ecx, dword [ebx + 0x2fd]
push edi
mov eax, dword [ecx]
push esi
call dword [eax + 0x118]
jmp 0x40c738
mov esi, dword [esp + 0x10]
mov ecx, dword [ebx + 0x301]
test ecx, ecx
je 0x40c77a
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x40c77a
mov ecx, dword [ebx + 0x301]
mov eax, dword [ecx]
call dword [eax + 0x30]
push eax
push edi
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x40c77a
mov ecx, dword [ebx + 0x301]
push edi
mov eax, dword [ecx]
push esi
call dword [eax + 0x118]
lea ecx, [esp + 0x1c]
call fcn.004192c2
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004363cf
mov esp, ebp
pop ebp
ret 8