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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4db690
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push esi
push edi
mov eax, dword [0x515854]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx]
call dword [eax + 0xd0]
test al, al
je 0x4911d9
and dword [esp + 0x2c], 0
xor eax, eax
lea edi, [esp + 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebx + 0x3f0]
push eax
push dword [ebp + 0xc]
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4911d9
cmp byte [ebx + 0x4a6], 0
je 0x4911d9
lea esi, [esp + 0x68]
call fcn.004995d2
and dword [esp + 0x90], 0
sub esp, 0x10
mov edi, esp
lea esi, [esp + 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x78]
push eax
mov eax, dword [ebp + 8]
movsd dword es:[edi], dword [esi]
call fcn.0049961e
add esp, 0x14
push dword [ebp + 0xc]
mov ecx, ebx
push dword [ebp + 8]
call fcn.004744bc
lea eax, [ebx + 0x4cc]
call fcn.00478f82
test eax, eax
jbe 0x491118
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov byte [esp + 0x90], 1
mov ecx, dword [ebx + 0x4e0]
lea esi, [ebx + 0x3f0]
lea edi, [esp + 0x1c]
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 + 0x1c], ecx
mov ecx, dword [ebx + 0x4e4]
add dword [esp + 0x20], ecx
mov ecx, dword [ebx + 0x4e8]
sub dword [esp + 0x24], ecx
mov ecx, dword [ebx + 0x4ec]
sub dword [esp + 0x28], ecx
cmp byte [ebx + 0x500], al
jne 0x490d37
lea esi, [ebx + 0x4f8]
cmp dword [esi], eax
je 0x490d10
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0xd0]
test al, al
je 0x490d10
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0xe0]
sub dword [esp + 0x24], eax
lea esi, [ebx + 0x4fc]
cmp dword [esi], 0
je 0x490d37
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0xd0]
test al, al
je 0x490d37
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0xe8]
sub dword [esp + 0x28], eax
lea eax, [esp + 0x1c]
push eax
push dword [ebp + 0xc]
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
jne 0x490ec0
and dword [esp + 0x14], eax
lea eax, [ebx + 0x4cc]
call fcn.00478f82
test eax, eax
jbe 0x490e38
mov esi, dword [esp + 0x14]
lea edi, [ebx + 0x4cc]
call fcn.00478f95
mov edi, dword [eax]
mov eax, dword [edi]
mov ecx, edi
mov dword [esp + 0x18], edi
call dword [eax + 0xd0]
test al, al
je 0x490e1f
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc0]
mov esi, dword [sym.imp.USER32.dll_IntersectRect]
push eax
push dword [ebp + 0xc]
lea eax, [esp + 0x34]
push eax
call esi
test eax, eax
je 0x490e1f
test byte [edi + 0x324], 8
je 0x490dc8
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x40]
call fcn.00468bf1
jmp 0x490e1f
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x134]
test al, al
jne 0x490df2
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x144]
test al, al
jne 0x490df2
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x13c]
test al, al
je 0x490e1f
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc0]
push eax
lea eax, [ebx + 0x3f0]
push eax
lea eax, [esp + 0x34]
push eax
call esi
test eax, eax
je 0x490e1f
push dword [ebp + 0xc]
mov eax, dword [edi]
push dword [ebp + 8]
mov ecx, edi
call dword [eax + 0xa4]
inc dword [esp + 0x14]
lea eax, [ebx + 0x4cc]
call fcn.00478f82
cmp dword [esp + 0x14], eax
jb 0x490d69
xor edi, edi
cmp dword [esp + 0x40], 0
je 0x491107
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x40]
sar eax, 2
cmp edi, eax
jae 0x491107
mov eax, dword [esp + 0x40]
mov esi, dword [eax + edi*4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x134]
test al, al
jne 0x490e89
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x144]
test al, al
jne 0x490e89
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x13c]
test al, al
je 0x490eba
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc0]
push eax
lea eax, [ebx + 0x3f0]
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x490eba
push dword [ebp + 0xc]
mov eax, dword [esi]
push dword [ebp + 8]
mov ecx, esi
call dword [eax + 0xa4]
inc edi
jmp 0x490e3a
lea esi, [esp + 0x4c]
call fcn.004995d2
mov byte [esp + 0x90], 2
sub esp, 0x10
mov edi, esp
lea esi, [esp + 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x5c]
push eax
mov eax, dword [ebp + 8]
movsd dword es:[edi], dword [esi]
call fcn.0049961e
and dword [esp + 0x28], 0
add esp, 0x14
lea eax, [ebx + 0x4cc]
call fcn.00478f82
test eax, eax
jbe 0x491021
mov esi, dword [esp + 0x14]
lea edi, [ebx + 0x4cc]
call fcn.00478f95
mov edi, dword [eax]
mov eax, dword [edi]
mov ecx, edi
mov dword [esp + 0x18], edi
call dword [eax + 0xd0]
test al, al
je 0x491008
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc0]
mov esi, dword [sym.imp.USER32.dll_IntersectRect]
push eax
push dword [ebp + 0xc]
lea eax, [esp + 0x34]
push eax
call esi
test eax, eax
je 0x491008
test byte [edi + 0x324], 8
je 0x490f6c
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x40]
call fcn.00468bf1
jmp 0x491008
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x134]
test al, al
jne 0x490fc3
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x144]
test al, al
jne 0x490fc3
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x13c]
test al, al
jne 0x490fc3
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc0]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
call esi
test eax, eax
je 0x491008
push dword [ebp + 0xc]
mov eax, dword [edi]
push dword [ebp + 8]
mov ecx, edi
call dword [eax + 0xa4]
jmp 0x491008
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc0]
push eax
lea eax, [ebx + 0x3f0]
push eax
lea eax, [esp + 0x34]
push eax
call esi
test eax, eax
je 0x491008
push dword [esp + 0x64]
mov esi, dword [sym.imp.GDI32.dll_SelectClipRgn]
push dword [ebp + 8]
call esi
push dword [ebp + 0xc]
mov eax, dword [edi]
push dword [ebp + 8]
mov ecx, edi
call dword [eax + 0xa4]
push dword [esp + 0x60]
push dword [ebp + 8]
call esi
inc dword [esp + 0x14]
lea eax, [ebx + 0x4cc]
call fcn.00478f82
cmp dword [esp + 0x14], eax
jb 0x490f06
and dword [esp + 0x14], 0
cmp dword [esp + 0x40], 0
je 0x4910fe
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x40]
sar eax, 2
cmp dword [esp + 0x14], eax
jae 0x4910fe
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x14]
mov esi, dword [eax + ecx*4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x134]
test al, al
jne 0x4910ac
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x144]
test al, al
jne 0x4910ac
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x13c]
test al, al
jne 0x4910ac
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc0]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4910f5
push dword [ebp + 0xc]
mov eax, dword [esi]
push dword [ebp + 8]
mov ecx, esi
call dword [eax + 0xa4]
jmp 0x4910f5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc0]
push eax
lea eax, [ebx + 0x3f0]
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4910f5
push dword [esp + 0x64]
mov edi, dword [sym.imp.GDI32.dll_SelectClipRgn]
push dword [ebp + 8]
call edi
push dword [ebp + 0xc]
mov eax, dword [esi]
push dword [ebp + 8]
mov ecx, esi
call dword [eax + 0xa4]
push dword [esp + 0x60]
push dword [ebp + 8]
call edi
inc dword [esp + 0x14]
jmp 0x491026
lea eax, [esp + 0x4c]
call fcn.004995ec
lea esi, [esp + 0x3c]
mov byte [esp + 0x90], 0
call fcn.0049cd8f
cmp byte [ebx + 0x53c], 0
je 0x49112e
cmp byte [ebx + 0x53d], 0
jne 0x4911d0
cmp dword [ebx + 0x4f8], 0
je 0x49117e
mov ecx, dword [ebx + 0x4f8]
mov eax, dword [ecx]
call dword [eax + 0xd0]
test al, al
je 0x49117e
mov ecx, dword [ebx + 0x4f8]
mov eax, dword [ecx]
call dword [eax + 0xc0]
push eax
push dword [ebp + 0xc]
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x49117e
push dword [ebp + 0xc]
mov ecx, dword [ebx + 0x4f8]
push dword [ebp + 8]
mov eax, dword [ecx]
call dword [eax + 0xa4]
cmp dword [ebx + 0x4fc], 0
je 0x4911d0
mov ecx, dword [ebx + 0x4fc]
mov eax, dword [ecx]
call dword [eax + 0xd0]
test al, al
je 0x4911d0
mov ecx, dword [ebx + 0x4fc]
mov eax, dword [ecx]
call dword [eax + 0xc0]
push eax
push dword [ebp + 0xc]
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4911d0
push dword [ebp + 0xc]
mov ebx, dword [ebx + 0x4fc]
push dword [ebp + 8]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xa4]
lea eax, [esp + 0x68]
call fcn.004995ec
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