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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5c7aca
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x78]
test ecx, ecx
jne 0x407e53
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x64]
mov edx, dword [esi + 0x60]
push eax
mov eax, dword [esi + 0x5c]
push ecx
push edx
push eax
mov ecx, esi
call fcn.00407020
test eax, eax
je 0x40841b
mov ecx, dword [esi + 0x5c]
pop edi
mov dword [eax + 0x14], ecx
mov edx, dword [esi + 0x60]
pop esi
pop ebp
mov dword [eax + 0x18], edx
pop ebx
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret
mov eax, dword [esi + 0x34]
test eax, eax
je 0x407e75
mov eax, dword [ecx + 0x19f4]
test eax, eax
je 0x407e75
push ecx
mov ecx, esi
call fcn.004096c0
mov dword [esp + 0x18], eax
jmp 0x408417
mov eax, dword [ecx + 0x1a18]
mov edx, dword [ecx + 0x1a1c]
mov edi, dword [ecx + 0x1a10]
mov ebx, dword [ecx + 0x1a14]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x54], edx
call fcn.00401a50
lea ecx, [esp + 0x54]
push ecx
call fcn.004e7a30
add esp, 4
lea edx, [esp + 0x54]
lea eax, [esp + 0x44]
lea ecx, [esp + 0x44]
push edx
push eax
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
sub edx, eax
push edx
mov edx, dword [esp + 0x50]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, esi
call fcn.00407020
mov ebp, eax
xor ebx, ebx
cmp ebp, ebx
mov dword [esp + 0x18], ebp
jne 0x407f09
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret
mov ecx, dword [esi + 0x78]
mov edi, dword [ecx + 0xcc]
cmp edi, ebx
je 0x40833f
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
xor ebx, ebx
mov dword [esp + 0x2c], eax
cmp dword [esi + 0x50], ebx
mov dword [esp + 0x30], edx
je 0x408089
cmp edi, ebx
mov dword [esp + 0x20], ebx
jle 0x40805c
mov ebx, edx
mov ebp, eax
neg ebx
neg ebp
xor edi, edi
lea eax, [edi + ecx + 0xd8]
mov edx, dword [edi + ecx + 0xd8]
mov dword [esp + 0x34], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x38], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x34]
mov eax, dword [eax + 0xc]
push edx
mov dword [esp + 0x44], eax
call fcn.00401a50
lea eax, [esp + 0x54]
lea ecx, [esp + 0x34]
push eax
lea edx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
push ebx
lea eax, [esp + 0x38]
push ebp
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esi + 0x50]
cmp eax, 1
jne 0x407ff2
test edi, edi
jle 0x407fb7
mov eax, dword [esi + 0x54]
jmp 0x407fb9
xor eax, eax
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x10]
sub eax, ecx
mov ecx, dword [esp + 0x34]
add eax, edx
lea edx, [esp + 0x34]
neg ecx
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
cmp eax, ecx
jle 0x407fe8
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], eax
jmp 0x408039
cmp eax, 2
jne 0x408039
test edi, edi
jle 0x408000
mov eax, dword [esi + 0x54]
jmp 0x408002
xor eax, eax
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
neg ecx
push ecx
mov ecx, dword [esp + 0x38]
sub eax, ecx
add eax, edx
lea edx, [esp + 0x38]
push eax
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jle 0x408031
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 0x78]
mov eax, dword [esp + 0x20]
inc eax
add edi, 0x1c
mov edx, dword [ecx + 0xcc]
mov dword [esp + 0x20], eax
cmp eax, edx
jl 0x407f53
mov ebp, dword [esp + 0x18]
xor ebx, ebx
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov cx, word [ebp + 0x2e]
xor edx, edx
mov dx, word [ebp + 0x2c]
push 0x2ffffff
push ebx
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
push ecx
mov ecx, ebp
call fcn.004e6960
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
mov edx, dword [esi + 0x18]
mov ecx, ebp
push edx
call fcn.004e7210
push 1
push ebx
mov ecx, ebp
call fcn.004e70d0
mov ecx, dword [esi + 0x78]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
cmp dword [ecx + 0xcc], ebx
jle 0x408326
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
neg edi
neg eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], eax
xor ebp, ebp
jmp 0x4080d1
mov edi, dword [esp + 0x24]
lea eax, [ecx + ebp + 0xd8]
mov edx, dword [ecx + ebp + 0xd8]
mov dword [esp + 0x34], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x38], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x34]
mov eax, dword [eax + 0xc]
push edx
mov dword [esp + 0x44], eax
call fcn.00401a50
lea eax, [esp + 0x54]
lea ecx, [esp + 0x34]
push eax
lea edx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x38]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, esi
call fcn.00407020
mov ebx, eax
mov eax, dword [esp + 0x28]
push edi
mov edi, dword [sym.imp.USER32.dll_OffsetRect]
lea ecx, [esp + 0x38]
push eax
push ecx
call edi
mov eax, dword [esi + 0x50]
cmp eax, 1
jne 0x408193
test ebp, ebp
jle 0x40815c
mov eax, dword [esi + 0x54]
jmp 0x40815e
xor eax, eax
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x10]
sub eax, edx
mov edx, dword [esp + 0x34]
add eax, ecx
push eax
lea eax, [esp + 0x38]
neg edx
push edx
push eax
call edi
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
cmp eax, ecx
jle 0x408189
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x10], ecx
jmp 0x4081d6
cmp eax, 2
jne 0x4081d6
test ebp, ebp
jle 0x4081a1
mov eax, dword [esi + 0x54]
jmp 0x4081a3
xor eax, eax
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
neg edx
push edx
mov edx, dword [esp + 0x18]
sub eax, ecx
add eax, edx
push eax
lea eax, [esp + 0x3c]
push eax
call edi
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jle 0x4081ce
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x14], ecx
mov edx, dword [esi + 0x78]
mov edi, dword [edx + ebp + 0xe8]
lea eax, [edx + ebp]
test edi, edi
je 0x40827f
mov eax, dword [esp + 0x1c]
push edi
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov eax, dword [esi + 0x50]
test eax, eax
je 0x408233
lea edx, [esp + 0x64]
push edx
push edi
call dword [sym.imp.GDI32.dll_GetRgnBox]
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x64]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x68]
sub ecx, edi
mov edi, dword [esp + 0x1c]
sub eax, edx
mov edx, dword [edi + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_OffsetClipRgn]
jmp 0x40825b
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x2c]
sub eax, edx
mov edx, dword [esp + 0x1c]
push eax
sub ecx, edi
mov eax, dword [edx + 4]
push ecx
push eax
call dword [sym.imp.GDI32.dll_OffsetClipRgn]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push 0
push 0
push ecx
push edx
push edi
mov ecx, ebx
call fcn.004e6d20
mov eax, dword [edi + 4]
push 0
push eax
call dword [sym.imp.GDI32.dll_SelectClipRgn]
jmp 0x4082d7
mov ecx, dword [eax + 0xd4]
add eax, 0xd4
test ecx, ecx
jne 0x4082aa
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
push 0
push 0
push ecx
push edx
push eax
mov ecx, ebx
call fcn.004e6d20
jmp 0x4082d7
mov ecx, eax
call fcn.004013d0
test eax, eax
je 0x4082ba
mov eax, dword [eax + 0x1c]
jmp 0x4082bc
xor eax, eax
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push 0
push 0
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
mov ecx, ebx
call fcn.004e8c70
test ebx, ebx
je 0x4082e4
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx + 4]
mov eax, dword [esi + 0x50]
cmp eax, 1
jne 0x4082f6
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], eax
jmp 0x408303
cmp eax, 2
jne 0x408303
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 0x78]
mov eax, dword [esp + 0x20]
inc eax
add ebp, 0x1c
mov edx, dword [ecx + 0xcc]
mov dword [esp + 0x20], eax
cmp eax, edx
jl 0x4080cd
mov ebp, dword [esp + 0x18]
xor ebx, ebx
push ebx
mov ecx, ebp
call fcn.004e71a0
mov edx, dword [esi + 0x18]
mov dword [ebp + 0x10], edx
mov eax, dword [esi + 0x1c]
mov dword [ebp + 0xc], eax
jmp 0x408409
cmp dword [ecx + 0x48], ebx
je 0x408409
push 0x480
call fcn.00596900
add esp, 4
mov dword [esp + 0x28], eax
cmp eax, ebx
mov dword [esp + 0x7c], ebx
je 0x40836c
mov ecx, eax
call fcn.004e5b80
mov edi, eax
jmp 0x40836e
xor edi, edi
mov ecx, dword [esp + 0x18]
xor ebx, ebx
mov bx, word [ebp + 0x2e]
mov ebp, dword [ebp + 0x28]
mov edx, dword [ecx + 0x24]
mov dword [esp + 0x7c], 0xffffffff
mov dword [esp + 0x28], edx
call fcn.004e7360
push eax
mov eax, dword [esp + 0x2c]
push 0
push ebx
push 1
push ebp
push eax
mov ecx, edi
call fcn.004e6670
mov ecx, dword [esi + 0x18]
push ecx
mov ecx, edi
call fcn.004e7210
push 1
push 0
mov ecx, edi
call fcn.004e70d0
mov ecx, dword [esi + 0x78]
mov ebx, eax
add ecx, 0x48
call fcn.004013d0
test eax, eax
je 0x4083ce
mov eax, dword [eax + 0x1c]
jmp 0x4083d0
xor eax, eax
xor edx, edx
xor ecx, ecx
push edx
push edx
push eax
push edx
push ecx
push ebx
mov ebx, dword [esp + 0x30]
mov ecx, ebx
call fcn.004e8c70
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx + 4]
push 0
mov ecx, edi
mov dword [esp + 0x1c], edi
call fcn.004e71a0
mov eax, dword [esi + 0x18]
mov ebp, edi
mov dword [edi + 0x10], eax
mov ecx, dword [esi + 0x1c]
mov dword [edi + 0xc], ecx
mov edx, dword [esp + 0x44]
mov dword [ebp + 0x14], edx
mov eax, dword [esp + 0x48]
mov dword [ebp + 0x18], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x70
ret