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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50c786
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
push ebx
push esi
push edi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx]
mov edx, dword [eax + 0xd0]
call edx
test al, al
je 0x48d055
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [ebx + 0x3f0]
push eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x48d055
xor eax, eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov edi, dword [ebp + 8]
mov dword [esp + 0xd8], eax
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 8], edx
lea esi, [esp + 0x84]
mov dword [eax + 0xc], ecx
call fcn.004c8500
mov edx, dword [ebp + 0xc]
add esp, 0x10
push edx
mov eax, edi
push eax
mov ecx, ebx
call fcn.00493860
mov eax, dword [ebx + 0x568]
test eax, eax
je 0x48c9c2
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x1c], ecx
mov edx, dword [eax + 0x38]
mov dword [esp + 0x24], edx
mov ecx, dword [eax + 0x2c]
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 0x34]
mov eax, dword [ebx]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 0x128]
mov ecx, ebx
call edx
cmp byte [eax + 0x32], 0
je 0x48c905
lea eax, [esp + 0x90]
call fcn.0049b100
mov byte [esp + 0xd8], 1
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x98]
mov dword [esp + 0x40], ecx
push eax
mov ecx, edi
call fcn.0049b1e0
mov edi, dword [esp + 0xc4]
test edi, edi
jne 0x48c7d3
xor esi, esi
jmp 0x48c7e6
mov esi, dword [esp + 0xa4]
imul esi, dword [esp + 0xa0]
add esi, esi
add esi, esi
call fcn.0049c640
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x50], ecx
sub ecx, eax
mov dword [esp + 0x50], ecx
xor ecx, ecx
mov dword [esp + 0x48], eax
sub esi, edx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], ecx
mov ecx, dword [ebp + 0xc]
mov edi, dword [ecx + 4]
push 0
mov dword [esp + 0x6c], edi
mov edi, dword [ecx + 8]
sub dword [esp + 0x6c], edx
mov dword [esp + 0x58], esi
mov esi, dword [ecx]
mov ecx, dword [ecx + 0xc]
push 0
push 0
mov dword [esp + 0x7c], ecx
sub dword [esp + 0x7c], edx
mov edx, dword [ebx + 0x568]
sub esi, eax
sub edi, eax
mov dword [esp + 0x70], esi
mov dword [esp + 0x78], edi
mov ecx, dword [edx + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
lea edx, [esp + 0x70]
push edx
push 0
lea edx, [esp + 0x5c]
push edx
mov edx, dword [esp + 0xa8]
push 0
push edx
push 0
push 0
push 0
push 1
call eax
mov edi, dword [esp + 0xc4]
test edi, edi
jne 0x48c886
xor eax, eax
jmp 0x48c899
mov eax, dword [esp + 0xa4]
imul eax, dword [esp + 0xa0]
add eax, eax
add eax, eax
call fcn.0049c550
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x14]
mov byte [esp + 0x10], 0
mov byte [esp + 0x11], 0
mov byte [esp + 0x12], 0xff
mov byte [esp + 0x13], 1
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x94]
push edx
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x28]
push 0
push 0
push ecx
mov ecx, dword [esp + 0x30]
sub edx, eax
push edx
mov edx, dword [esp + 0x3c]
sub edx, ecx
push edx
push eax
mov eax, dword [ebp + 8]
push ecx
push eax
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
lea esi, [esp + 0x90]
mov byte [esp + 0xd8], 0
call fcn.0049b140
jmp 0x48c933
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x568]
mov ecx, dword [ecx + 0xc]
mov edx, dword [ecx]
push 0
mov edx, dword [edx + 0x10]
push 0
push 0
push eax
push 0
lea eax, [esp + 0x2c]
push eax
push 0
mov eax, edi
push eax
push 0
push 0
push 0
push 1
call edx
cmp byte [ebx + 0x56c], 0
je 0x48c9c2
mov ecx, dword [ebx + 0x4f8]
mov eax, dword [ecx]
mov edx, dword [eax + 0xe0]
call edx
mov ecx, dword [esp + 0x20]
sub ecx, dword [esp + 0x18]
mov edx, dword [ebx + 0x568]
add eax, ecx
mov dword [esp + 0x14], eax
or eax, 0xffffffff
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov eax, dword [ebx]
mov dword [esp + 0x10], 0
mov esi, dword [edx + 0xc]
mov edx, dword [eax + 0x128]
mov ecx, ebx
call edx
mov eax, dword [eax + 0x17c]
mov edx, dword [esi]
mov edx, dword [edx + 0x44]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x40]
push ecx
push 1
push 0
push 0
push eax
push 1
mov ecx, esi
call edx
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
cmp dword [esp + 0x10], eax
jg 0x48c9c2
mov eax, ebx
call fcn.004935b0
mov eax, dword [ebx + 0x4d0]
test eax, eax
je 0x48cf6e
mov ecx, dword [ebx + 0x4d4]
sub ecx, eax
sar ecx, 2
je 0x48cf6e
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov byte [esp + 0xd8], 2
mov eax, dword [ebx + 0x3f0]
mov ecx, dword [ebx + 0x3f4]
mov edx, dword [ebx + 0x3f8]
mov esi, dword [ebx + 0x3fc]
add eax, dword [ebx + 0x4e0]
add ecx, dword [ebx + 0x4e4]
sub edx, dword [ebx + 0x4e8]
sub esi, dword [ebx + 0x4ec]
cmp dword [ebx + 0x4f8], edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], esi
je 0x48ca67
mov ecx, dword [ebx + 0x4f8]
mov edx, dword [ecx]
mov eax, dword [edx + 0xd0]
call eax
test al, al
je 0x48ca67
mov ecx, dword [ebx + 0x4f8]
mov edx, dword [ecx]
mov eax, dword [edx + 0xe0]
call eax
sub dword [esp + 0x40], eax
cmp dword [ebx + 0x4fc], edi
je 0x48ca97
mov ecx, dword [ebx + 0x4fc]
mov edx, dword [ecx]
mov eax, dword [edx + 0xd0]
call eax
test al, al
je 0x48ca97
mov ecx, dword [ebx + 0x4fc]
mov edx, dword [ecx]
mov eax, dword [edx + 0xe8]
call eax
sub dword [esp + 0x44], eax
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x38]
push ecx
push edx
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
jne 0x48cc5f
xor edi, edi
jmp 0x48cac0
mov ecx, dword [ebx + 0x4d0]
test ecx, ecx
je 0x48cbcc
mov eax, dword [ebx + 0x4d4]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x48cbcc
test ecx, ecx
je 0x48caf4
mov eax, dword [ebx + 0x4d4]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x48caf9
call fcn.004e89bf
mov ecx, dword [ebx + 0x4d0]
mov esi, dword [ecx + edi*4]
mov edx, dword [esi]
mov eax, dword [edx + 0xd0]
mov ecx, esi
mov dword [esp + 0x14], esi
call eax
test al, al
je 0x48cbc4
mov edx, dword [esi]
mov eax, dword [edx + 0xc0]
mov ecx, esi
call eax
mov ecx, dword [ebp + 0xc]
push eax
push ecx
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x48cbc4
test byte [esi + 0x324], 8
je 0x48cb5d
lea eax, [esp + 0x14]
push eax
lea esi, [esp + 0x1c]
call fcn.00406c70
add edi, 1
jmp 0x48cac0
mov edx, dword [esi]
mov eax, dword [edx + 0x134]
mov ecx, esi
call eax
test al, al
jne 0x48cb8d
mov edx, dword [esi]
mov eax, dword [edx + 0x144]
mov ecx, esi
call eax
test al, al
jne 0x48cb8d
mov edx, dword [esi]
mov eax, dword [edx + 0x13c]
mov ecx, esi
call eax
test al, al
je 0x48cbc4
mov edx, dword [esi]
mov eax, dword [edx + 0xc0]
mov ecx, esi
call eax
push eax
lea eax, [ebx + 0x3f0]
push eax
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x48cbc4
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [esi]
mov edx, dword [edx + 0xa4]
push eax
push ecx
mov ecx, esi
call edx
add edi, 1
jmp 0x48cac0
xor edi, edi
mov edi, edi
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x48cf59
mov eax, dword [esp + 0x20]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x48cf59
mov esi, dword [ecx + edi*4]
mov eax, dword [esi]
mov edx, dword [eax + 0x134]
mov ecx, esi
call edx
test al, al
jne 0x48cc20
mov eax, dword [esi]
mov edx, dword [eax + 0x144]
mov ecx, esi
call edx
test al, al
jne 0x48cc20
mov eax, dword [esi]
mov edx, dword [eax + 0x13c]
mov ecx, esi
call edx
test al, al
je 0x48cc57
mov eax, dword [esi]
mov edx, dword [eax + 0xc0]
mov ecx, esi
call edx
push eax
lea eax, [ebx + 0x3f0]
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x48cc57
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [esi]
mov edx, dword [edx + 0xa4]
push eax
push ecx
mov ecx, esi
call edx
add edi, 1
jmp 0x48cbd0
xor eax, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov edi, dword [ebp + 8]
mov byte [esp + 0xd8], 3
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x44]
mov dword [eax + 8], ecx
lea esi, [esp + 0x58]
mov dword [eax + 0xc], edx
call fcn.004c8500
mov dword [esp + 0x20], 0
mov ecx, dword [esp + 0x20]
add esp, 0x10
mov edx, dword [ebx + 0x4d0]
test edx, edx
je 0x48ce37
mov eax, dword [ebx + 0x4d4]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x48ce37
test edx, edx
je 0x48ccf4
mov eax, dword [ebx + 0x4d4]
sub eax, edx
sar eax, 2
cmp ecx, eax
jb 0x48ccf9
call fcn.004e89bf
mov eax, dword [ebx + 0x4d0]
mov ecx, dword [esp + 0x10]
mov esi, dword [eax + ecx*4]
mov edx, dword [esi]
mov eax, dword [edx + 0xd0]
mov ecx, esi
mov dword [esp + 0x14], esi
call eax
test al, al
je 0x48ce27
mov edx, dword [esi]
mov eax, dword [edx + 0xc0]
mov ecx, esi
call eax
mov ecx, dword [ebp + 0xc]
push eax
push ecx
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x48ce27
test byte [esi + 0x324], 8
je 0x48cd69
lea eax, [esp + 0x14]
push eax
lea esi, [esp + 0x1c]
call fcn.00406c70
mov ecx, dword [esp + 0x10]
add ecx, 1
mov dword [esp + 0x10], ecx
jmp 0x48ccc0
mov edx, dword [esi]
mov eax, dword [edx + 0x134]
mov ecx, esi
call eax
test al, al
jne 0x48cddb
mov edx, dword [esi]
mov eax, dword [edx + 0x144]
mov ecx, esi
call eax
test al, al
jne 0x48cddb
mov edx, dword [esi]
mov eax, dword [edx + 0x13c]
mov ecx, esi
call eax
test al, al
jne 0x48cddb
mov edx, dword [esi]
mov eax, dword [edx + 0xc0]
mov ecx, esi
call eax
push eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x48ce27
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi]
mov edx, dword [eax + 0xa4]
push ecx
push edi
mov ecx, esi
call edx
mov ecx, dword [esp + 0x10]
add ecx, 1
mov dword [esp + 0x10], ecx
jmp 0x48ccc0
mov eax, dword [esi]
mov edx, dword [eax + 0xc0]
mov ecx, esi
call edx
push eax
lea eax, [ebx + 0x3f0]
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x48ce27
mov ecx, dword [esp + 0x60]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov eax, dword [ebp + 0xc]
mov edx, dword [esi]
mov edx, dword [edx + 0xa4]
push eax
push edi
mov ecx, esi
call edx
mov eax, dword [esp + 0x5c]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov ecx, dword [esp + 0x10]
add ecx, 1
mov dword [esp + 0x10], ecx
jmp 0x48ccc0
xor edx, edx
mov ecx, dword [esp + 0x1c]
test ecx, ecx
mov dword [esp + 0x10], edx
je 0x48cf23
mov eax, dword [esp + 0x20]
sub eax, ecx
sar eax, 2
cmp edx, eax
jae 0x48cf23
mov esi, dword [ecx + edx*4]
mov eax, dword [esi]
mov edx, dword [eax + 0x134]
mov ecx, esi
call edx
test al, al
jne 0x48cecb
mov eax, dword [esi]
mov edx, dword [eax + 0x144]
mov ecx, esi
call edx
test al, al
jne 0x48cecb
mov eax, dword [esi]
mov edx, dword [eax + 0x13c]
mov ecx, esi
call edx
test al, al
jne 0x48cecb
mov eax, dword [esi]
mov edx, dword [eax + 0xc0]
mov ecx, esi
call edx
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x48cf17
mov eax, dword [ebp + 0xc]
mov edx, dword [esi]
mov edx, dword [edx + 0xa4]
push eax
push edi
mov ecx, esi
call edx
mov edx, dword [esp + 0x10]
add edx, 1
jmp 0x48ce39
mov eax, dword [esi]
mov edx, dword [eax + 0xc0]
mov ecx, esi
call edx
push eax
lea eax, [ebx + 0x3f0]
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x48cf17
mov ecx, dword [esp + 0x60]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov eax, dword [ebp + 0xc]
mov edx, dword [esi]
mov edx, dword [edx + 0xa4]
push eax
push edi
mov ecx, esi
call edx
mov eax, dword [esp + 0x5c]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov edx, dword [esp + 0x10]
add edx, 1
jmp 0x48ce39
mov eax, dword [esp + 0x58]
test eax, eax
je 0x48cf46
mov esi, dword [esp + 0x60]
test esi, esi
je 0x48cf46
push esi
push eax
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x48cf59
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
mov byte [esp + 0xd8], 0
je 0x48cf6e
push ecx
call fcn.004e7d7e
add esp, 4
cmp dword [ebx + 0x4f8], 0
je 0x48cfc6
mov ecx, dword [ebx + 0x4f8]
mov edx, dword [ecx]
mov eax, dword [edx + 0xd0]
call eax
test al, al
je 0x48cfc6
mov ecx, dword [ebx + 0x4f8]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc0]
call eax
mov esi, dword [ebp + 0xc]
push eax
push esi
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x48cfc9
mov ecx, dword [ebx + 0x4f8]
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
mov edx, dword [edx + 0xa4]
push esi
push eax
call edx
jmp 0x48cfc9
mov esi, dword [ebp + 0xc]
cmp dword [ebx + 0x4fc], 0
je 0x48d01e
mov ecx, dword [ebx + 0x4fc]
mov eax, dword [ecx]
mov edx, dword [eax + 0xd0]
call edx
test al, al
je 0x48d01e
mov ecx, dword [ebx + 0x4fc]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc0]
call edx
push eax
push esi
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x48d01e
mov ebx, dword [ebx + 0x4fc]
mov edx, dword [ebx]
mov eax, dword [ebp + 8]
mov edx, dword [edx + 0xa4]
push esi
push eax
mov ecx, ebx
call edx
mov eax, dword [esp + 0x84]
test eax, eax
je 0x48d043
mov esi, dword [esp + 0x8c]
test esi, esi
je 0x48d043
push esi
push eax
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x88]
test eax, eax
je 0x48d055
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8