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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x482986
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
push ebx
push esi
push edi
mov eax, dword [0x4a02b4]
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 0x42af55
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 0x42af55
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.004603b0
mov edx, dword [ebp + 0xc]
add esp, 0x10
push edx
mov eax, edi
push eax
mov ecx, ebx
call fcn.00431660
mov eax, dword [ebx + 0x564]
test eax, eax
je 0x42a8c2
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 0x42a805
lea eax, [esp + 0x90]
call fcn.00438490
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.00438570
mov edi, dword [esp + 0xc4]
test edi, edi
jne 0x42a6d3
xor esi, esi
jmp 0x42a6e6
mov esi, dword [esp + 0xa4]
imul esi, dword [esp + 0xa0]
add esi, esi
add esi, esi
call fcn.00439960
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 0x42a786
xor eax, eax
jmp 0x42a799
mov eax, dword [esp + 0xa4]
imul eax, dword [esp + 0xa0]
add eax, eax
add eax, eax
call fcn.00439870
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.004384d0
jmp 0x42a833
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 0x42a8c2
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 0x42a8c2
mov eax, ebx
call fcn.004313d0
mov eax, dword [ebx + 0x4cc]
test eax, eax
je 0x42ae6e
mov ecx, dword [ebx + 0x4d0]
sub ecx, eax
sar ecx, 2
je 0x42ae6e
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 0x42a967
mov ecx, dword [ebx + 0x4f4]
mov edx, dword [ecx]
mov eax, dword [edx + 0xd0]
call eax
test al, al
je 0x42a967
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 0x42a997
mov ecx, dword [ebx + 0x4f8]
mov edx, dword [ecx]
mov eax, dword [edx + 0xd0]
call eax
test al, al
je 0x42a997
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 0x42ab5f
xor edi, edi
jmp 0x42a9c0
mov ecx, dword [ebx + 0x4cc]
test ecx, ecx
je 0x42aacc
mov eax, dword [ebx + 0x4d0]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x42aacc
test ecx, ecx
je 0x42a9f4
mov eax, dword [ebx + 0x4d0]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x42a9f9
call fcn.0046908b
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 0x42aac4
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 0x42aac4
test byte [esi + 0x324], 8
je 0x42aa5d
lea eax, [esp + 0x14]
push eax
lea esi, [esp + 0x1c]
call fcn.0041a120
add edi, 1
jmp 0x42a9c0
mov edx, dword [esi]
mov eax, dword [edx + 0x134]
mov ecx, esi
call eax
test al, al
jne 0x42aa8d
mov edx, dword [esi]
mov eax, dword [edx + 0x144]
mov ecx, esi
call eax
test al, al
jne 0x42aa8d
mov edx, dword [esi]
mov eax, dword [edx + 0x13c]
mov ecx, esi
call eax
test al, al
je 0x42aac4
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 0x42aac4
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 0x42a9c0
xor edi, edi
mov edi, edi
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x42ae59
mov eax, dword [esp + 0x20]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x42ae59
mov esi, dword [ecx + edi*4]
mov eax, dword [esi]
mov edx, dword [eax + 0x134]
mov ecx, esi
call edx
test al, al
jne 0x42ab20
mov eax, dword [esi]
mov edx, dword [eax + 0x144]
mov ecx, esi
call edx
test al, al
jne 0x42ab20
mov eax, dword [esi]
mov edx, dword [eax + 0x13c]
mov ecx, esi
call edx
test al, al
je 0x42ab57
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 0x42ab57
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 0x42aad0
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.004603b0
mov dword [esp + 0x20], 0
mov ecx, dword [esp + 0x20]
add esp, 0x10
mov edx, dword [ebx + 0x4cc]
test edx, edx
je 0x42ad37
mov eax, dword [ebx + 0x4d0]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x42ad37
test edx, edx
je 0x42abf4
mov eax, dword [ebx + 0x4d0]
sub eax, edx
sar eax, 2
cmp ecx, eax
jb 0x42abf9
call fcn.0046908b
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 0x42ad27
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 0x42ad27
test byte [esi + 0x324], 8
je 0x42ac69
lea eax, [esp + 0x14]
push eax
lea esi, [esp + 0x1c]
call fcn.0041a120
mov ecx, dword [esp + 0x10]
add ecx, 1
mov dword [esp + 0x10], ecx
jmp 0x42abc0
mov edx, dword [esi]
mov eax, dword [edx + 0x134]
mov ecx, esi
call eax
test al, al
jne 0x42acdb
mov edx, dword [esi]
mov eax, dword [edx + 0x144]
mov ecx, esi
call eax
test al, al
jne 0x42acdb
mov edx, dword [esi]
mov eax, dword [edx + 0x13c]
mov ecx, esi
call eax
test al, al
jne 0x42acdb
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 0x42ad27
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 0x42abc0
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 0x42ad27
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 0x42abc0
xor edx, edx
mov ecx, dword [esp + 0x1c]
test ecx, ecx
mov dword [esp + 0x10], edx
je 0x42ae23
mov eax, dword [esp + 0x20]
sub eax, ecx
sar eax, 2
cmp edx, eax
jae 0x42ae23
mov esi, dword [ecx + edx*4]
mov eax, dword [esi]
mov edx, dword [eax + 0x134]
mov ecx, esi
call edx
test al, al
jne 0x42adcb
mov eax, dword [esi]
mov edx, dword [eax + 0x144]
mov ecx, esi
call edx
test al, al
jne 0x42adcb
mov eax, dword [esi]
mov edx, dword [eax + 0x13c]
mov ecx, esi
call edx
test al, al
jne 0x42adcb
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 0x42ae17
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 0x42ad39
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 0x42ae17
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 0x42ad39
mov eax, dword [esp + 0x58]
test eax, eax
je 0x42ae46
mov esi, dword [esp + 0x60]
test esi, esi
je 0x42ae46
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 0x42ae59
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
mov byte [esp + 0xd8], 0
je 0x42ae6e
push ecx
call fcn.00468cbd
add esp, 4
cmp dword [ebx + 0x4f4], 0
je 0x42aec6
mov ecx, dword [ebx + 0x4f4]
mov edx, dword [ecx]
mov eax, dword [edx + 0xd0]
call eax
test al, al
je 0x42aec6
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 0x42aec9
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 0x42aec9
mov esi, dword [ebp + 0xc]
cmp dword [ebx + 0x4f8], 0
je 0x42af1e
mov ecx, dword [ebx + 0x4f8]
mov eax, dword [ecx]
mov edx, dword [eax + 0xd0]
call edx
test al, al
je 0x42af1e
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 0x42af1e
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 0x42af43
mov esi, dword [esp + 0x8c]
test esi, esi
je 0x42af43
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 0x42af55
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