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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x4b5050
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x4d77ac]
xor eax, esp
mov dword [esp + 0x74], eax
push esi
push edi
mov eax, dword [0x4d77ac]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [edi + 0x27c]
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
push ecx
push eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x24], esi
movdqa xmmword [esp + 0x60], xmm0
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x45b1fe
mov dword [esp + 0x90], 0
lea eax, [esp + 0x64]
movdqa xmm0, xmmword [esp + 0x54]
movdqa xmmword [esp + 0x44], xmm0
xorps xmm0, xmm0
push eax
push esi
movdqu xmmword [esp + 0x6c], xmm0
call dword [sym.imp.GDI32.dll_GetClipBox]
mov esi, dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
lea eax, [esp + 0x64]
push eax
call esi
mov dword [esp + 0x40], eax
lea eax, [esp + 0x44]
push eax
call esi
push 1
push eax
push dword [esp + 0x20]
mov dword [esp + 0x48], eax
call dword [sym.imp.GDI32.dll_ExtSelectClipRgn]
movdqu xmm0, xmmword [esp + 0x44]
mov eax, dword [esp + 0x18]
mov ecx, edi
mov esi, dword [esp + 0x1c]
push esi
push eax
mov dword [esp + 0x40], eax
movdqu xmmword [esp + 0x30], xmm0
call fcn.0046b830
mov ecx, dword [edi + 0x684]
test ecx, ecx
je 0x45aea2
mov eax, dword [ecx + 0x30]
lea edx, [esp + 0x64]
push 0
push 0
push 0
push esi
push 0
mov dword [esp + 0x7c], eax
mov eax, dword [ecx + 0x38]
push edx
mov dword [esp + 0x88], eax
mov eax, dword [ecx + 0x2c]
push 0
push dword [esp + 0x34]
mov dword [esp + 0x84], eax
mov eax, dword [ecx + 0x34]
mov dword [esp + 0x8c], eax
mov ecx, dword [ecx + 0xc]
push 0
push 0
push 0
mov eax, dword [ecx]
push 1
call dword [eax + 0x10]
cmp byte [edi + 0x688], 0
je 0x45aea2
mov ecx, dword [edi + 0x678]
mov eax, dword [ecx]
mov eax, dword [eax + 0x58]
call eax
mov ecx, dword [esp + 0x6c]
sub ecx, dword [esp + 0x64]
add eax, ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], eax
mov ecx, edi
mov eax, dword [edi + 0x684]
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x48], 0xffffffff
mov esi, dword [eax + 0xc]
mov eax, dword [edi]
mov eax, dword [eax + 0x1c]
call eax
mov edx, dword [esi]
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x4c]
push ecx
push 1
push 0
push 0
push dword [eax + 8]
mov ecx, esi
push 1
call dword [edx + 0x44]
mov eax, dword [esp + 0x70]
sub eax, dword [esp + 0x68]
cmp dword [esp + 0x20], eax
jg 0x45ae9e
mov ecx, edi
call fcn.00467e40
mov esi, dword [esp + 0x1c]
cmp dword [edi + 0x658], 0
jle 0x45b144
movdqu xmm0, xmmword [edi + 0x27c]
mov ecx, dword [edi + 0x678]
movd eax, xmm0
movdqa xmmword [esp + 0x44], xmm0
add eax, dword [edi + 0x660]
mov dword [esp + 0x44], eax
mov eax, dword [edi + 0x664]
add dword [esp + 0x48], eax
mov eax, dword [edi + 0x668]
sub dword [esp + 0x4c], eax
mov eax, dword [edi + 0x66c]
sub dword [esp + 0x50], eax
test ecx, ecx
je 0x45af12
mov eax, dword [ecx]
mov eax, dword [eax + 0xc0]
call eax
test al, al
je 0x45af12
mov ecx, dword [edi + 0x678]
mov eax, dword [ecx]
mov eax, dword [eax + 0x58]
call eax
sub dword [esp + 0x4c], eax
mov ecx, dword [edi + 0x67c]
test ecx, ecx
je 0x45af3b
mov eax, dword [ecx]
mov eax, dword [eax + 0xc0]
call eax
test al, al
je 0x45af3b
mov ecx, dword [edi + 0x67c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x60]
call eax
sub dword [esp + 0x50], eax
lea eax, [esp + 0x44]
push eax
push esi
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
jne 0x45b002
xor ecx, ecx
mov dword [esp + 0x20], ecx
cmp dword [edi + 0x658], ecx
jle 0x45b144
jmp 0x45af70
mov eax, dword [edi + 0x654]
mov esi, dword [eax + ecx*4]
mov ecx, esi
mov eax, dword [esi]
mov eax, dword [eax + 0xc0]
call eax
test al, al
je 0x45afe8
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x30]
call eax
push eax
push dword [esp + 0x20]
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x45afe8
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xf4]
call eax
test al, al
je 0x45afe8
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x30]
call eax
push eax
lea eax, [edi + 0x27c]
push eax
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x45afe8
push dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, esi
push dword [esp + 0x1c]
call dword [eax + 0x138]
mov ecx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x20], ecx
cmp ecx, dword [edi + 0x658]
jl 0x45af70
jmp 0x45b144
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x64]
sub esp, 0x10
mov byte [esp + 0xa0], 1
movdqu xmm0, xmmword [esp + 0x64]
mov eax, esp
movdqu xmmword [eax], xmm0
call fcn.00478cd0
mov esi, dword [esp + 0x8c]
xor ecx, ecx
add esp, 0x10
mov dword [esp + 0x20], ecx
cmp dword [edi + 0x658], ecx
jle 0x45b122
mov eax, dword [edi + 0x654]
mov esi, dword [eax + ecx*4]
mov ecx, esi
mov eax, dword [esi]
mov eax, dword [eax + 0xc0]
call eax
test al, al
je 0x45b109
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x30]
call eax
push eax
push dword [esp + 0x20]
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x45b109
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xf4]
call eax
test al, al
mov ecx, esi
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
je 0x45b0e0
call eax
push eax
lea eax, [edi + 0x27c]
push eax
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x45b109
push dword [esp + 0x7c]
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, esi
push dword [esp + 0x1c]
call dword [eax + 0x138]
push dword [esp + 0x78]
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_SelectClipRgn]
jmp 0x45b109
call eax
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x45b109
push dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, esi
push dword [esp + 0x1c]
call dword [eax + 0x138]
mov ecx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x20], ecx
cmp ecx, dword [edi + 0x658]
jl 0x45b042
mov esi, dword [esp + 0x7c]
push esi
mov byte [esp + 0x94], 0
push dword [esp + 0x78]
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [esp + 0x78]
call esi
mov ecx, dword [edi + 0x678]
test ecx, ecx
je 0x45b193
mov eax, dword [ecx]
mov eax, dword [eax + 0xc0]
call eax
test al, al
je 0x45b193
mov ecx, dword [edi + 0x678]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov esi, dword [esp + 0x1c]
push eax
push esi
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x45b197
mov ecx, dword [edi + 0x678]
push esi
push dword [esp + 0x1c]
mov eax, dword [ecx]
call dword [eax + 0x138]
jmp 0x45b197
mov esi, dword [esp + 0x1c]
mov ecx, dword [edi + 0x67c]
test ecx, ecx
je 0x45b1e0
mov eax, dword [ecx]
mov eax, dword [eax + 0xc0]
call eax
test al, al
je 0x45b1e0
mov ecx, dword [edi + 0x67c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
push eax
push esi
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x45b1e0
mov ecx, dword [edi + 0x67c]
push esi
push dword [esp + 0x1c]
mov eax, dword [ecx]
call dword [eax + 0x138]
mov esi, dword [esp + 0x40]
push esi
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [esp + 0x3c]
call esi
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.00493864
mov esp, ebp
pop ebp
ret 8