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

Disassembly:
push 0xffffffffffffffff
push 0x431c1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xac
push esi
mov esi, ecx
push edi
mov dword [esp + 0x30], esi
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x407520
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0xa4]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x10]
call fcn.00403b90
mov edi, vtable.CRgn.0
mov dword [esp + 0x10], edi
mov eax, dword [esi + 0x78]
lea edx, [esp + 0x8c]
push edx
push 0x18
mov eax, dword [eax + 4]
mov dword [esp + 0xc4], 0
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x90]
push 1
push ecx
push edx
push 0
push 0
mov ecx, esi
call fcn.00425bb3
lea ecx, [esp + 0x10]
mov dword [esp + 0xbc], 0xffffffff
mov dword [esp + 0x10], edi
call fcn.00403bc0
pop edi
pop esi
mov ecx, dword [esp + 0xac]
mov dword fs:[0], ecx
add esp, 0xb8
ret
mov ecx, dword [esi + 0x1c]
push ebx
lea eax, [esp + 0x68]
push ebp
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x10]
call fcn.00403b90
mov ebp, vtable.CRgn.0
mov dword [esp + 0x10], ebp
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
mov ebx, dword [sym.imp.GDI32.dll_CreateRectRgn]
push edx
mov edx, dword [esp + 0x70]
push eax
push ecx
push edx
mov dword [esp + 0xd4], 1
call ebx
push eax
lea ecx, [esp + 0x14]
call fcn.00429140
mov ecx, dword [esi + 0x1c]
mov edi, dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [esp + 0x3c]
push eax
push ecx
call edi
lea edx, [esp + 0x3c]
mov ecx, esi
push edx
call fcn.00428e5c
lea ecx, [esp + 0x28]
call fcn.00403b90
mov dword [esp + 0x28], ebp
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x40]
push ecx
push edx
push eax
mov byte [esp + 0xd4], 2
call ebx
push eax
lea ecx, [esp + 0x2c]
call fcn.00429140
mov ebp, dword [esp + 0x2c]
lea eax, [esp + 0x28]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
neg eax
sbb eax, eax
push 3
and eax, ebp
neg ecx
sbb ecx, ecx
push eax
and ecx, edx
push ecx
push edx
call dword [sym.imp.GDI32.dll_CombineRgn]
lea ecx, [esp + 0x5c]
call fcn.004286d8
push 0
mov byte [esp + 0xc8], 3
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x60]
call fcn.0042878f
mov eax, dword [esi + 0x78]
test eax, eax
je 0x40761a
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x60]
push eax
push ecx
call fcn.004288d0
mov eax, dword [esi + 0x78]
lea edx, [esp + 0x7c]
push edx
push 0x18
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x4c]
push ecx
push edx
call edi
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x80]
sub eax, edi
cmp ecx, eax
mov dword [esp + 0x20], ecx
jl 0x407661
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x50]
mov ebp, dword [esp + 0x84]
sub eax, edx
cmp ebp, eax
jge 0x40767c
mov dword [esp + 0x24], ebp
jmp 0x407682
mov dword [esp + 0x24], eax
mov ebp, eax
mov eax, dword [esp + 0x20]
push 1
push ebp
push eax
push 0
push 0
mov ecx, esi
call fcn.00425bb3
xor edi, edi
test ebp, ebp
jle 0x4077f2
mov eax, dword [esp + 0x20]
xor ebp, ebp
xor esi, esi
test eax, eax
jle 0x4077e1
mov ecx, dword [esp + 0x60]
push edi
push esi
push ecx
call dword [sym.imp.GDI32.dll_GetPixel]
mov edx, dword [esp + 0x38]
cmp eax, dword [edx + 0x68]
jne 0x407757
cmp ebp, esi
jne 0x4076d3
inc ebp
jmp 0x407757
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], vtable.CRgn.0
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov byte [esp + 0xc4], 4
lea ecx, [edi + eax + 1]
lea ebx, [esi + edx]
add eax, edi
push ecx
add edx, ebp
push ebx
mov ebx, dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
push edx
call ebx
push eax
lea ecx, [esp + 0x1c]
call fcn.00429140
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
neg eax
sbb eax, eax
push 2
and eax, ebp
neg ecx
sbb ecx, ecx
push eax
and ecx, edx
push ecx
push edx
call dword [sym.imp.GDI32.dll_CombineRgn]
lea ebp, [esi + 1]
mov dword [esp + 0x18], vtable.CGdiObject.0
lea ecx, [esp + 0x18]
mov byte [esp + 0xc4], 5
call fcn.00429197
mov eax, dword [esp + 0x20]
inc esi
cmp esi, eax
jl 0x4076af
cmp ebp, esi
je 0x4077e1
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], vtable.CRgn.0
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
add eax, edi
add esi, edx
add ebp, edx
mov byte [esp + 0xc4], 6
lea ecx, [eax + 1]
push ecx
push esi
push eax
push ebp
call ebx
push eax
lea ecx, [esp + 0x34]
call fcn.00429140
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x30]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
neg eax
sbb eax, eax
push 2
and eax, esi
neg ecx
sbb ecx, ecx
push eax
and ecx, edx
push ecx
push edx
call dword [sym.imp.GDI32.dll_CombineRgn]
mov dword [esp + 0x30], vtable.CGdiObject.0
lea ecx, [esp + 0x30]
mov byte [esp + 0xc4], 7
call fcn.00429197
mov eax, dword [esp + 0x24]
inc edi
cmp edi, eax
jl 0x40769f
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x14]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
push 1
neg eax
sbb eax, eax
and eax, edi
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowRgn]
lea ecx, [esp + 0x5c]
mov byte [esp + 0xc4], 2
call fcn.0042880d
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x28], esi
lea ecx, [esp + 0x28]
mov byte [esp + 0xc4], 8
call fcn.00429197
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x10]
mov dword [esp + 0xc4], 9
call fcn.00429197
mov ecx, dword [esp + 0xbc]
pop ebp
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0xb8
ret