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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x472d78
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push esi
push edi
mov eax, dword [0x48d034]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx]
mov edx, dword [eax + 0xc0]
call edx
test al, al
je 0x450f6b
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [ebx + 0x350]
push eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esp + 0x24]
xor esi, esi
push ecx
mov dword [esp + 0x28], esi
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x450f6b
xor eax, eax
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov edi, dword [ebp + 8]
mov dword [esp + 0x90], esi
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 8], edx
lea esi, [esp + 0x78]
mov dword [eax + 0xc], ecx
call fcn.004543f0
mov esi, dword [ebp + 0xc]
add esp, 0x10
push esi
push edi
mov ecx, ebx
call fcn.004339f0
mov eax, dword [ebx + 0x3bc]
xor ecx, ecx
cmp eax, ecx
je 0x450e98
mov edx, dword [ebx + 0x3c0]
sub edx, eax
sar edx, 2
je 0x450e98
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov byte [esp + 0x90], 1
mov esi, dword [ebx + 0x35c]
sub esi, dword [ebx + 0x3d8]
mov eax, dword [ebx + 0x350]
mov ecx, dword [ebx + 0x354]
mov edx, dword [ebx + 0x358]
add eax, dword [ebx + 0x3cc]
add ecx, dword [ebx + 0x3d0]
sub edx, dword [ebx + 0x3d4]
mov dword [esp + 0x48], esi
xor esi, esi
cmp dword [ebx + 0x3e4], esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
je 0x45099f
mov ecx, dword [ebx + 0x3e4]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc0]
call edx
test al, al
je 0x45099f
mov ecx, dword [ebx + 0x3e4]
mov eax, dword [ecx]
mov edx, dword [eax + 0xd0]
call edx
sub dword [esp + 0x44], eax
cmp dword [ebx + 0x3e8], esi
je 0x4509cf
mov ecx, dword [ebx + 0x3e8]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc0]
call edx
test al, al
je 0x4509cf
mov ecx, dword [ebx + 0x3e8]
mov eax, dword [ecx]
mov edx, dword [eax + 0xd8]
call edx
sub dword [esp + 0x48], eax
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x3c]
push eax
push ecx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
jne 0x450b92
mov ecx, dword [ebx + 0x3bc]
test ecx, ecx
mov dword [esp + 0x14], esi
je 0x450b01
mov eax, dword [ebx + 0x3c0]
sub eax, ecx
sar eax, 2
cmp esi, eax
jae 0x450b01
test ecx, ecx
je 0x450a23
mov eax, dword [ebx + 0x3c0]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x450a28
call fcn.0045cf3a
mov eax, dword [ebx + 0x3bc]
mov esi, dword [eax + esi*4]
mov edx, dword [esi]
mov eax, dword [edx + 0xc0]
mov ecx, esi
mov dword [esp + 0x18], esi
call eax
test al, al
je 0x450af5
mov edx, dword [esi]
mov eax, dword [edx + 0xb0]
mov ecx, esi
call eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [sym.imp.USER32.dll_IntersectRect]
push eax
push ecx
lea edx, [esp + 0x24]
push edx
call edi
test eax, eax
je 0x450af5
test byte [esi + 0x284], 8
je 0x450a92
lea eax, [esp + 0x18]
push eax
lea esi, [esp + 0x30]
call fcn.00429290
mov esi, dword [esp + 0x14]
add esi, 1
jmp 0x4509eb
mov edx, dword [esi]
mov eax, dword [edx + 0x11c]
mov ecx, esi
call eax
test al, al
jne 0x450ac2
mov edx, dword [esi]
mov eax, dword [edx + 0x12c]
mov ecx, esi
call eax
test al, al
jne 0x450ac2
mov edx, dword [esi]
mov eax, dword [edx + 0x124]
mov ecx, esi
call eax
test al, al
je 0x450af5
mov edx, dword [esi]
mov eax, dword [edx + 0xb0]
mov ecx, esi
call eax
push eax
lea eax, [ebx + 0x350]
push eax
lea ecx, [esp + 0x24]
push ecx
call edi
test eax, eax
je 0x450af5
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [esi]
mov edx, dword [edx + 0x98]
push eax
push ecx
mov ecx, esi
call edx
mov esi, dword [esp + 0x14]
add esi, 1
jmp 0x4509eb
xor edi, edi
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x450e7d
mov eax, dword [esp + 0x34]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x450e7d
mov esi, dword [ecx + edi*4]
mov eax, dword [esi]
mov edx, dword [eax + 0x11c]
mov ecx, esi
call edx
test al, al
jne 0x450b53
mov eax, dword [esi]
mov edx, dword [eax + 0x12c]
mov ecx, esi
call edx
test al, al
jne 0x450b53
mov eax, dword [esi]
mov edx, dword [eax + 0x124]
mov ecx, esi
call edx
test al, al
je 0x450b8a
mov eax, dword [esi]
mov edx, dword [eax + 0xb0]
mov ecx, esi
call edx
push eax
lea eax, [ebx + 0x350]
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x450b8a
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [esi]
mov edx, dword [edx + 0x98]
push eax
push ecx
mov ecx, esi
call edx
add edi, 1
jmp 0x450b03
xor eax, eax
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov byte [esp + 0x90], 2
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x38]
mov dword [eax + 8], ecx
lea esi, [esp + 0x5c]
mov dword [eax + 0xc], edx
call fcn.004543f0
add esp, 0x10
xor esi, esi
mov ecx, dword [ebx + 0x3bc]
test ecx, ecx
mov dword [esp + 0x14], esi
je 0x450d55
mov eax, dword [ebx + 0x3c0]
sub eax, ecx
sar eax, 2
cmp esi, eax
jae 0x450d55
test ecx, ecx
je 0x450c1e
mov eax, dword [ebx + 0x3c0]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x450c23
call fcn.0045cf3a
mov eax, dword [ebx + 0x3bc]
mov esi, dword [eax + esi*4]
mov edx, dword [esi]
mov eax, dword [edx + 0xc0]
mov ecx, esi
mov dword [esp + 0x18], esi
call eax
test al, al
je 0x450d49
mov edx, dword [esi]
mov eax, dword [edx + 0xb0]
mov ecx, esi
call eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [sym.imp.USER32.dll_IntersectRect]
push eax
push ecx
lea edx, [esp + 0x24]
push edx
call edi
test eax, eax
je 0x450d49
test byte [esi + 0x284], 8
je 0x450c8d
lea eax, [esp + 0x18]
push eax
lea esi, [esp + 0x30]
call fcn.00429290
mov esi, dword [esp + 0x14]
add esi, 1
jmp 0x450be6
mov edx, dword [esi]
mov eax, dword [edx + 0x11c]
mov ecx, esi
call eax
test al, al
jne 0x450cfa
mov edx, dword [esi]
mov eax, dword [edx + 0x12c]
mov ecx, esi
call eax
test al, al
jne 0x450cfa
mov edx, dword [esi]
mov eax, dword [edx + 0x124]
mov ecx, esi
call eax
test al, al
jne 0x450cfa
mov edx, dword [esi]
mov eax, dword [edx + 0xb0]
mov ecx, esi
call eax
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x24]
push edx
call edi
test eax, eax
je 0x450d49
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi]
mov edx, dword [ebp + 8]
mov eax, dword [eax + 0x98]
push ecx
push edx
mov ecx, esi
call eax
mov esi, dword [esp + 0x14]
add esi, 1
jmp 0x450be6
mov edx, dword [esi]
mov eax, dword [edx + 0xb0]
mov ecx, esi
call eax
push eax
lea eax, [ebx + 0x350]
push eax
lea ecx, [esp + 0x24]
push ecx
call edi
test eax, eax
je 0x450d49
mov edx, dword [esp + 0x64]
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.GDI32.dll_SelectClipRgn]
push edx
push eax
call edi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [esi]
mov edx, dword [edx + 0x98]
push eax
push ecx
mov ecx, esi
call edx
mov eax, dword [esp + 0x60]
mov ecx, dword [ebp + 8]
push eax
push ecx
call edi
mov esi, dword [esp + 0x14]
add esi, 1
jmp 0x450be6
xor edi, edi
mov ecx, dword [esp + 0x30]
test ecx, ecx
mov dword [esp + 0x14], edi
je 0x450e47
mov eax, dword [esp + 0x34]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x450e47
mov esi, dword [ecx + edi*4]
mov edx, dword [esi]
mov eax, dword [edx + 0x11c]
mov ecx, esi
call eax
test al, al
jne 0x450de8
mov edx, dword [esi]
mov eax, dword [edx + 0x12c]
mov ecx, esi
call eax
test al, al
jne 0x450de8
mov edx, dword [esi]
mov eax, dword [edx + 0x124]
mov ecx, esi
call eax
test al, al
jne 0x450de8
mov edx, dword [esi]
mov eax, dword [edx + 0xb0]
mov ecx, esi
call eax
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x450e3f
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi]
mov edx, dword [ebp + 8]
mov eax, dword [eax + 0x98]
push ecx
push edx
mov ecx, esi
call eax
add edi, 1
jmp 0x450d57
mov edx, dword [esi]
mov eax, dword [edx + 0xb0]
mov ecx, esi
call eax
push eax
lea eax, [ebx + 0x350]
push eax
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x450e3f
mov edx, dword [esp + 0x64]
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.GDI32.dll_SelectClipRgn]
push edx
push eax
call edi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [esi]
mov edx, dword [edx + 0x98]
push eax
push ecx
mov ecx, esi
call edx
mov eax, dword [esp + 0x60]
mov ecx, dword [ebp + 8]
push eax
push ecx
call edi
mov edi, dword [esp + 0x14]
add edi, 1
jmp 0x450d57
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x450e6a
mov esi, dword [esp + 0x64]
test esi, esi
je 0x450e6a
push esi
push eax
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x60]
test eax, eax
je 0x450e7d
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x30]
test ecx, ecx
mov byte [esp + 0x90], 0
je 0x450e92
push ecx
call fcn.0045ca7a
add esp, 4
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
cmp dword [ebx + 0x3e4], 0
je 0x450ee8
mov ecx, dword [ebx + 0x3e4]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc0]
call eax
test al, al
je 0x450ee8
mov ecx, dword [ebx + 0x3e4]
mov edx, dword [ecx]
mov eax, dword [edx + 0xb0]
call eax
push eax
push esi
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x450ee8
mov ecx, dword [ebx + 0x3e4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x98]
push esi
push edi
call eax
cmp dword [ebx + 0x3e8], 0
je 0x450f3a
mov ecx, dword [ebx + 0x3e8]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc0]
call eax
test al, al
je 0x450f3a
mov ecx, dword [ebx + 0x3e8]
mov edx, dword [ecx]
mov eax, dword [edx + 0xb0]
call eax
push eax
push esi
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x450f3a
mov ebx, dword [ebx + 0x3e8]
mov edx, dword [ebx]
mov eax, dword [edx + 0x98]
push esi
push edi
mov ecx, ebx
call eax
mov eax, dword [esp + 0x78]
test eax, eax
je 0x450f5c
mov esi, dword [esp + 0x80]
test esi, esi
je 0x450f5c
push esi
push eax
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x450f6b
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
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