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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ccfb8
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push esi
push edi
mov eax, dword [0x4fa36c]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx]
mov edx, dword [eax + 0xcc]
call edx
test al, al
je 0x493381
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [ebx + 0x3f0]
push eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x493381
cmp byte [ebx + 0x496], 0
je 0x493381
xor eax, eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov edi, dword [ebp + 8]
mov dword [esp + 0x90], eax
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 8], edx
lea esi, [esp + 0x78]
mov dword [eax + 0xc], ecx
call fcn.00470180
mov edx, dword [ebp + 0xc]
add esp, 0x10
push edx
mov eax, edi
push eax
mov ecx, ebx
call fcn.0045d5c0
mov eax, dword [ebx + 0x4b8]
test eax, eax
je 0x49328a
mov ecx, dword [ebx + 0x4bc]
sub ecx, eax
sar ecx, 2
je 0x49328a
xor edi, edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov byte [esp + 0x90], 1
mov eax, dword [ebx + 0x3f0]
mov ecx, dword [ebx + 0x3f4]
mov edx, dword [ebx + 0x3f8]
mov esi, dword [ebx + 0x3fc]
add eax, dword [ebx + 0x4c8]
add ecx, dword [ebx + 0x4cc]
sub edx, dword [ebx + 0x4d0]
sub esi, dword [ebx + 0x4d4]
cmp byte [ebx + 0x4e8], 0
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], esi
jne 0x492dc3
cmp dword [ebx + 0x4e0], edi
je 0x492d93
mov ecx, dword [ebx + 0x4e0]
mov edx, dword [ecx]
mov eax, dword [edx + 0xcc]
call eax
test al, al
je 0x492d93
mov ecx, dword [ebx + 0x4e0]
mov edx, dword [ecx]
mov eax, dword [edx + 0xdc]
call eax
sub dword [esp + 0x44], eax
cmp dword [ebx + 0x4e4], edi
je 0x492dc3
mov ecx, dword [ebx + 0x4e4]
mov edx, dword [ecx]
mov eax, dword [edx + 0xcc]
call eax
test al, al
je 0x492dc3
mov ecx, dword [ebx + 0x4e4]
mov edx, dword [ecx]
mov eax, dword [edx + 0xe4]
call eax
sub dword [esp + 0x48], eax
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x3c]
push ecx
push edx
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
jne 0x492f7f
xor edi, edi
mov ecx, dword [ebx + 0x4b8]
test ecx, ecx
je 0x492eed
mov eax, dword [ebx + 0x4bc]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x492eed
test ecx, ecx
je 0x492e15
mov eax, dword [ebx + 0x4bc]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x492e1a
call fcn.004ab591
mov ecx, dword [ebx + 0x4b8]
mov esi, dword [ecx + edi*4]
mov edx, dword [esi]
mov eax, dword [edx + 0xcc]
mov ecx, esi
mov dword [esp + 0x14], esi
call eax
test al, al
je 0x492ee5
mov edx, dword [esi]
mov eax, dword [edx + 0xbc]
mov ecx, esi
call eax
mov ecx, dword [ebp + 0xc]
push eax
push ecx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x492ee5
test byte [esi + 0x324], 8
je 0x492e7e
lea eax, [esp + 0x14]
push eax
lea esi, [esp + 0x30]
call fcn.00414cb0
add edi, 1
jmp 0x492de1
mov edx, dword [esi]
mov eax, dword [edx + 0x130]
mov ecx, esi
call eax
test al, al
jne 0x492eae
mov edx, dword [esi]
mov eax, dword [edx + 0x140]
mov ecx, esi
call eax
test al, al
jne 0x492eae
mov edx, dword [esi]
mov eax, dword [edx + 0x138]
mov ecx, esi
call eax
test al, al
je 0x492ee5
mov edx, dword [esi]
mov eax, dword [edx + 0xbc]
mov ecx, esi
call eax
push eax
lea eax, [ebx + 0x3f0]
push eax
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x492ee5
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [esi]
mov edx, dword [edx + 0xa0]
push eax
push ecx
mov ecx, esi
call edx
add edi, 1
jmp 0x492de1
xor edi, edi
nop
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x493275
mov eax, dword [esp + 0x34]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x493275
mov esi, dword [ecx + edi*4]
mov eax, dword [esi]
mov edx, dword [eax + 0x130]
mov ecx, esi
call edx
test al, al
jne 0x492f40
mov eax, dword [esi]
mov edx, dword [eax + 0x140]
mov ecx, esi
call edx
test al, al
jne 0x492f40
mov eax, dword [esi]
mov edx, dword [eax + 0x138]
mov ecx, esi
call edx
test al, al
je 0x492f77
mov eax, dword [esi]
mov edx, dword [eax + 0xbc]
mov ecx, esi
call edx
push eax
lea eax, [ebx + 0x3f0]
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x492f77
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [esi]
mov edx, dword [edx + 0xa0]
push eax
push ecx
mov ecx, esi
call edx
add edi, 1
jmp 0x492ef0
xor eax, eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov edi, dword [ebp + 8]
mov byte [esp + 0x90], 2
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x38]
mov dword [eax + 8], ecx
lea esi, [esp + 0x5c]
mov dword [eax + 0xc], edx
call fcn.00470180
mov dword [esp + 0x24], 0
mov edi, dword [esp + 0x24]
add esp, 0x10
mov ecx, dword [ebx + 0x4b8]
test ecx, ecx
je 0x493151
mov eax, dword [ebx + 0x4bc]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x493151
test ecx, ecx
je 0x493014
mov eax, dword [ebx + 0x4bc]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x493019
call fcn.004ab591
mov eax, dword [ebx + 0x4b8]
mov esi, dword [eax + edi*4]
mov edx, dword [esi]
mov eax, dword [edx + 0xcc]
mov ecx, esi
mov dword [esp + 0x18], esi
call eax
test al, al
je 0x493145
mov edx, dword [esi]
mov eax, dword [edx + 0xbc]
mov ecx, esi
call eax
mov ecx, dword [ebp + 0xc]
push eax
push ecx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x493145
test byte [esi + 0x324], 8
je 0x493081
lea eax, [esp + 0x18]
push eax
lea esi, [esp + 0x30]
call fcn.00414cb0
add edi, 1
mov dword [esp + 0x14], edi
jmp 0x492fe0
mov edx, dword [esi]
mov eax, dword [edx + 0x130]
mov ecx, esi
call eax
test al, al
jne 0x4930f2
mov edx, dword [esi]
mov eax, dword [edx + 0x140]
mov ecx, esi
call eax
test al, al
jne 0x4930f2
mov edx, dword [esi]
mov eax, dword [edx + 0x138]
mov ecx, esi
call eax
test al, al
jne 0x4930f2
mov edx, dword [esi]
mov eax, dword [edx + 0xbc]
mov ecx, esi
call eax
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x493145
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi]
mov edx, dword [ebp + 8]
mov eax, dword [eax + 0xa0]
push ecx
push edx
mov ecx, esi
call eax
add edi, 1
mov dword [esp + 0x14], edi
jmp 0x492fe0
mov edx, dword [esi]
mov eax, dword [edx + 0xbc]
mov ecx, esi
call eax
push eax
lea eax, [ebx + 0x3f0]
push eax
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x493145
mov edx, dword [esp + 0x64]
mov edi, dword [ebp + 8]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi]
mov edx, dword [eax + 0xa0]
push ecx
push edi
mov ecx, esi
call edx
mov eax, dword [esp + 0x60]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov edi, dword [esp + 0x14]
add edi, 1
mov dword [esp + 0x14], edi
jmp 0x492fe0
xor edi, edi
mov ecx, dword [esp + 0x30]
test ecx, ecx
mov dword [esp + 0x14], edi
je 0x49323f
mov eax, dword [esp + 0x34]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x49323f
mov esi, dword [ecx + edi*4]
mov edx, dword [esi]
mov eax, dword [edx + 0x130]
mov ecx, esi
call eax
test al, al
jne 0x4931e4
mov edx, dword [esi]
mov eax, dword [edx + 0x140]
mov ecx, esi
call eax
test al, al
jne 0x4931e4
mov edx, dword [esi]
mov eax, dword [edx + 0x138]
mov ecx, esi
call eax
test al, al
jne 0x4931e4
mov edx, dword [esi]
mov eax, dword [edx + 0xbc]
mov ecx, esi
call eax
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x493237
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi]
mov edx, dword [ebp + 8]
mov eax, dword [eax + 0xa0]
push ecx
push edx
mov ecx, esi
call eax
add edi, 1
jmp 0x493153
mov edx, dword [esi]
mov eax, dword [edx + 0xbc]
mov ecx, esi
call eax
push eax
lea eax, [ebx + 0x3f0]
push eax
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x493237
mov edx, dword [esp + 0x64]
mov edi, dword [ebp + 8]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi]
mov edx, dword [eax + 0xa0]
push ecx
push edi
mov ecx, esi
call edx
mov eax, dword [esp + 0x60]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov edi, dword [esp + 0x14]
add edi, 1
jmp 0x493153
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x493262
mov esi, dword [esp + 0x64]
test esi, esi
je 0x493262
push esi
push eax
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x60]
test eax, eax
je 0x493275
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x30]
test ecx, ecx
mov byte [esp + 0x90], 0
je 0x49328a
push ecx
call fcn.004a93cc
add esp, 4
cmp byte [ebx + 0x524], 0
je 0x4932a0
cmp byte [ebx + 0x525], 0
jne 0x493350
cmp dword [ebx + 0x4e0], 0
je 0x4932f8
mov ecx, dword [ebx + 0x4e0]
mov edx, dword [ecx]
mov eax, dword [edx + 0xcc]
call eax
test al, al
je 0x4932f8
mov ecx, dword [ebx + 0x4e0]
mov edx, dword [ecx]
mov eax, dword [edx + 0xbc]
call eax
mov esi, dword [ebp + 0xc]
push eax
push esi
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4932fb
mov ecx, dword [ebx + 0x4e0]
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
mov edx, dword [edx + 0xa0]
push esi
push eax
call edx
jmp 0x4932fb
mov esi, dword [ebp + 0xc]
cmp dword [ebx + 0x4e4], 0
je 0x493350
mov ecx, dword [ebx + 0x4e4]
mov eax, dword [ecx]
mov edx, dword [eax + 0xcc]
call edx
test al, al
je 0x493350
mov ecx, dword [ebx + 0x4e4]
mov eax, dword [ecx]
mov edx, dword [eax + 0xbc]
call edx
push eax
push esi
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x493350
mov ebx, dword [ebx + 0x4e4]
mov edx, dword [ebx]
mov eax, dword [ebp + 8]
mov edx, dword [edx + 0xa0]
push esi
push eax
mov ecx, ebx
call edx
mov eax, dword [esp + 0x78]
test eax, eax
je 0x493372
mov esi, dword [esp + 0x80]
test esi, esi
je 0x493372
push esi
push eax
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x493381
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8