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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c23b6
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
push ebx
push esi
push edi
mov eax, dword [0x4ea6c4]
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 0x467005
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 0x467005
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.0045e020
mov edx, dword [ebp + 0xc]
add esp, 0x10
push edx
mov eax, edi
push eax
mov ecx, ebx
call fcn.00442200
mov eax, dword [ebx + 0x564]
test eax, eax
je 0x466972
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 0x4668b5
lea eax, [esp + 0x90]
call fcn.00461da0
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.00461e80
mov edi, dword [esp + 0xc4]
test edi, edi
jne 0x466783
xor esi, esi
jmp 0x466796
mov esi, dword [esp + 0xa4]
imul esi, dword [esp + 0xa0]
add esi, esi
add esi, esi
call fcn.00463380
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 + 0x564]
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 0x466836
xor eax, eax
jmp 0x466849
mov eax, dword [esp + 0xa4]
imul eax, dword [esp + 0xa0]
add eax, eax
add eax, eax
call fcn.00463290
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.00461de0
jmp 0x4668e3
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x564]
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 + 0x568], 0
je 0x466972
mov ecx, dword [ebx + 0x4f4]
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 + 0x564]
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 0x466972
mov eax, ebx
call fcn.00441f80
mov eax, dword [ebx + 0x4cc]
test eax, eax
je 0x466f1e
mov ecx, dword [ebx + 0x4d0]
sub ecx, eax
sar ecx, 2
je 0x466f1e
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 + 0x4dc]
add ecx, dword [ebx + 0x4e0]
sub edx, dword [ebx + 0x4e4]
sub esi, dword [ebx + 0x4e8]
cmp dword [ebx + 0x4f4], edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], esi
je 0x466a17
mov ecx, dword [ebx + 0x4f4]
mov edx, dword [ecx]
mov eax, dword [edx + 0xd0]
call eax
test al, al
je 0x466a17
mov ecx, dword [ebx + 0x4f4]
mov edx, dword [ecx]
mov eax, dword [edx + 0xe0]
call eax
sub dword [esp + 0x40], eax
cmp dword [ebx + 0x4f8], edi
je 0x466a47
mov ecx, dword [ebx + 0x4f8]
mov edx, dword [ecx]
mov eax, dword [edx + 0xd0]
call eax
test al, al
je 0x466a47
mov ecx, dword [ebx + 0x4f8]
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 0x466c0f
xor edi, edi
jmp 0x466a70
mov ecx, dword [ebx + 0x4cc]
test ecx, ecx
je 0x466b7c
mov eax, dword [ebx + 0x4d0]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x466b7c
test ecx, ecx
je 0x466aa4
mov eax, dword [ebx + 0x4d0]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x466aa9
call fcn.004ac22f
mov ecx, dword [ebx + 0x4cc]
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 0x466b74
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 0x466b74
test byte [esi + 0x324], 8
je 0x466b0d
lea eax, [esp + 0x14]
push eax
lea esi, [esp + 0x1c]
call fcn.0044a140
add edi, 1
jmp 0x466a70
mov edx, dword [esi]
mov eax, dword [edx + 0x134]
mov ecx, esi
call eax
test al, al
jne 0x466b3d
mov edx, dword [esi]
mov eax, dword [edx + 0x144]
mov ecx, esi
call eax
test al, al
jne 0x466b3d
mov edx, dword [esi]
mov eax, dword [edx + 0x13c]
mov ecx, esi
call eax
test al, al
je 0x466b74
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 0x466b74
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 0x466a70
xor edi, edi
mov edi, edi
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x466f09
mov eax, dword [esp + 0x20]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x466f09
mov esi, dword [ecx + edi*4]
mov eax, dword [esi]
mov edx, dword [eax + 0x134]
mov ecx, esi
call edx
test al, al
jne 0x466bd0
mov eax, dword [esi]
mov edx, dword [eax + 0x144]
mov ecx, esi
call edx
test al, al
jne 0x466bd0
mov eax, dword [esi]
mov edx, dword [eax + 0x13c]
mov ecx, esi
call edx
test al, al
je 0x466c07
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 0x466c07
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 0x466b80
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.0045e020
mov dword [esp + 0x20], 0
mov ecx, dword [esp + 0x20]
add esp, 0x10
mov edx, dword [ebx + 0x4cc]
test edx, edx
je 0x466de7
mov eax, dword [ebx + 0x4d0]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x466de7
test edx, edx
je 0x466ca4
mov eax, dword [ebx + 0x4d0]
sub eax, edx
sar eax, 2
cmp ecx, eax
jb 0x466ca9
call fcn.004ac22f
mov eax, dword [ebx + 0x4cc]
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 0x466dd7
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 0x466dd7
test byte [esi + 0x324], 8
je 0x466d19
lea eax, [esp + 0x14]
push eax
lea esi, [esp + 0x1c]
call fcn.0044a140
mov ecx, dword [esp + 0x10]
add ecx, 1
mov dword [esp + 0x10], ecx
jmp 0x466c70
mov edx, dword [esi]
mov eax, dword [edx + 0x134]
mov ecx, esi
call eax
test al, al
jne 0x466d8b
mov edx, dword [esi]
mov eax, dword [edx + 0x144]
mov ecx, esi
call eax
test al, al
jne 0x466d8b
mov edx, dword [esi]
mov eax, dword [edx + 0x13c]
mov ecx, esi
call eax
test al, al
jne 0x466d8b
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 0x466dd7
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 0x466c70
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 0x466dd7
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 0x466c70
xor edx, edx
mov ecx, dword [esp + 0x1c]
test ecx, ecx
mov dword [esp + 0x10], edx
je 0x466ed3
mov eax, dword [esp + 0x20]
sub eax, ecx
sar eax, 2
cmp edx, eax
jae 0x466ed3
mov esi, dword [ecx + edx*4]
mov eax, dword [esi]
mov edx, dword [eax + 0x134]
mov ecx, esi
call edx
test al, al
jne 0x466e7b
mov eax, dword [esi]
mov edx, dword [eax + 0x144]
mov ecx, esi
call edx
test al, al
jne 0x466e7b
mov eax, dword [esi]
mov edx, dword [eax + 0x13c]
mov ecx, esi
call edx
test al, al
jne 0x466e7b
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 0x466ec7
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 0x466de9
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 0x466ec7
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 0x466de9
mov eax, dword [esp + 0x58]
test eax, eax
je 0x466ef6
mov esi, dword [esp + 0x60]
test esi, esi
je 0x466ef6
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 0x466f09
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
mov byte [esp + 0xd8], 0
je 0x466f1e
push ecx
call fcn.004abbe4
add esp, 4
cmp dword [ebx + 0x4f4], 0
je 0x466f76
mov ecx, dword [ebx + 0x4f4]
mov edx, dword [ecx]
mov eax, dword [edx + 0xd0]
call eax
test al, al
je 0x466f76
mov ecx, dword [ebx + 0x4f4]
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 0x466f79
mov ecx, dword [ebx + 0x4f4]
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
mov edx, dword [edx + 0xa4]
push esi
push eax
call edx
jmp 0x466f79
mov esi, dword [ebp + 0xc]
cmp dword [ebx + 0x4f8], 0
je 0x466fce
mov ecx, dword [ebx + 0x4f8]
mov eax, dword [ecx]
mov edx, dword [eax + 0xd0]
call edx
test al, al
je 0x466fce
mov ecx, dword [ebx + 0x4f8]
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 0x466fce
mov ebx, dword [ebx + 0x4f8]
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 0x466ff3
mov esi, dword [esp + 0x8c]
test esi, esi
je 0x466ff3
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 0x467005
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