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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x519418
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x78]
xor ebx, ebx
cmp eax, ebx
push edi
jne 0x404e17
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], vtable.CRgn.0
mov dword [esp + 0x94], ebx
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x28]
sub eax, ecx
mov ecx, dword [esp + 0x30]
push eax
sub ecx, edi
push ecx
push ebx
push ebx
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x1c]
call fcn.004ffb1f
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0x1c]
push 1
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowRgn]
mov dword [esp + 0x94], 0xffffffff
mov dword [esp + 0x18], vtable.CGdiObject.0
lea ecx, [esp + 0x18]
jmp 0x405076
mov edx, dword [esi + 0x1c]
mov edi, dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0x40]
push ecx
push edx
call edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], vtable.CRgn.0
push ebx
push ebx
push ebx
push ebx
mov dword [esp + 0xa4], 1
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x24]
call fcn.004ffb1f
lea ecx, [esp + 0x60]
call fcn.004ff3c6
push ebx
mov byte [esp + 0x98], 2
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x64]
call fcn.004ff822
mov eax, dword [esi + 0x94]
cmp eax, ebx
jne 0x404e83
xor eax, eax
jmp 0x404e86
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x68]
push eax
call fcn.004ffba8
mov eax, dword [esi + 0x94]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x70]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x50]
push eax
push ecx
call edi
mov eax, dword [esp + 0x58]
mov edi, dword [esp + 0x50]
mov ecx, dword [esp + 0x74]
sub eax, edi
cmp ecx, eax
mov dword [esp + 0x14], ecx
jl 0x404ecd
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0x54]
mov ecx, dword [esp + 0x78]
sub eax, edi
cmp ecx, eax
mov dword [esp + 0x10], ecx
jl 0x404ee7
mov dword [esp + 0x10], eax
mov al, byte [esi + 0x70]
test al, al
je 0x404efb
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0x74]
add eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x40503d
mov eax, dword [esp + 0x14]
xor edi, edi
xor esi, esi
test eax, eax
jle 0x40502d
mov eax, dword [esp + 0x64]
push ebx
push esi
push eax
call dword [sym.imp.GDI32.dll_GetPixel]
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x84]
jne 0x404fb3
cmp edi, esi
jne 0x404f3a
inc edi
jmp 0x404fb3
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], vtable.CRgn.0
mov byte [esp + 0x94], 3
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
lea ecx, [eax + ebx + 1]
push ecx
add eax, ebx
add edx, esi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x1c]
push edx
add edi, eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x2c]
call fcn.004ffb1f
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
push 2
push edx
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
mov byte [esp + 0x94], 2
lea ecx, [esp + 0x28]
lea edi, [esi + 1]
mov dword [esp + 0x28], vtable.CGdiObject.0
call fcn.004ffb76
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
jl 0x404f17
cmp edi, esi
je 0x40502d
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], vtable.CRgn.0
mov byte [esp + 0x94], 4
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
add eax, ebx
lea ecx, [eax + 1]
push ecx
add esi, edx
push esi
add edi, edx
push eax
push edi
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x3c]
call fcn.004ffb1f
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x24]
push 2
push ecx
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
mov byte [esp + 0x94], 2
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], vtable.CGdiObject.0
call fcn.004ffb76
mov eax, dword [esp + 0x10]
inc ebx
cmp ebx, eax
jl 0x404f07
mov esi, dword [ebp + 8]
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 0x1c]
push 1
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowRgn]
lea ecx, [esp + 0x60]
mov byte [esp + 0x94], 1
call fcn.004ff8a0
mov dword [esp + 0x94], 0xffffffff
mov dword [esp + 0x20], vtable.CGdiObject.0
lea ecx, [esp + 0x20]
call fcn.004ffb76
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4