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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d016d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
mov ebx, ecx
mov dword [esp + 0x10], ebx
je 0x40aea7
lea ecx, [ebx + 0x10]
push ecx
push eax
call dword [sym.imp.GDI32.dll_RectInRegion]
test eax, eax
je 0x40b279
cmp dword [ebx + 0x250], edi
jne 0x40aeeb
lea esi, [ebx + 0x258]
mov ecx, dword [esi]
cmp ecx, edi
je 0x40aec3
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi], edi
cmp dword [ebx + 0x254], edi
mov ecx, ebx
je 0x40aedb
push edi
push edi
push 0x18
call fcn.00433773
jmp 0x40b276
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004280d5
jmp 0x40b276
lea ecx, [ebx + 0x208]
mov eax, dword [ecx]
call dword [eax + 0x28]
test eax, eax
je 0x40af3c
sub esp, 0x10
mov edi, esp
push dword [ebp + 0xc]
lea esi, [ebx + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0040b290
test eax, eax
je 0x40af3a
push dword [ebx + 0x25c]
mov ecx, ebx
lea esi, [ebx + 0x208]
call fcn.0040ab98
lea esi, [ebx + 0x258]
mov ecx, dword [esi]
test ecx, ecx
je 0x40af37
mov eax, dword [ecx]
push 1
call dword [eax]
and dword [esi], 0
xor edi, edi
cmp dword [ebx + 0x258], edi
jne 0x40b06e
sub esp, 0x10
mov edi, esp
push dword [ebp + 0xc]
lea esi, [ebx + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0040b290
test eax, eax
je 0x40b276
mov eax, dword [ebx]
xor edi, edi
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call dword [eax + 0x7c]
push 1
push 1
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov dword [esp + 0x14], edi
mov dword [esp + 0xe4], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], vtable.CBkBitmap.0
mov dword [esp + 0x54], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov eax, dword [ebp + 8]
mov byte [esp + 0xe4], 1
push dword [eax]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
lea esi, [esp + 0x44]
push eax
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
push eax
call fcn.0043336f
push dword [esp + 0x48]
push dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [esp + 0xd0]
push eax
push dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_GetWindowOrgEx]
mov esi, dword [sym.imp.GDI32.dll_SetWindowOrgEx]
push edi
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x20]
call esi
push dword [ebp + 0xc]
lea eax, [esp + 0x18]
push eax
mov ecx, ebx
call fcn.004280d5
push edi
push edi
push edi
push dword [esp + 0x20]
call esi
push dword [esp + 0x48]
call fcn.0040b2de
mov dword [ebx + 0x258], eax
lea eax, [esp + 0x44]
call fcn.004280b5
push dword [esp + 0x14]
call dword [sym.imp.GDI32.dll_DeleteDC]
lea esi, [esp + 0x48]
mov dword [esp + 0x44], vtable.CBkBitmap.0
call fcn.0043379e
or dword [esp + 0xe4], 0xffffffff
mov eax, dword [ebx]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebx
mov byte [esp + 0x13], 0xff
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call dword [eax + 0x7c]
push 1
push 1
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
fild dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
fstp dword [esp + 0x1c]
fild dword [esp + 0x30]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
fstp dword [esp + 0x20]
fild dword [esp + 0x14]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push eax
fstp dword [esp + 0x28]
lea eax, [ebx + 0x160]
fild dword [esp + 0x18]
fstp dword [esp + 0x2c]
call fcn.0040a823
lea eax, [ebx + 0x1d0]
lea ebx, [esp + 0x1c]
call fcn.0040a951
mov edi, dword [esp + 0x10]
lea eax, [esp + 0xf]
push eax
lea eax, [edi + 0x198]
call fcn.0040aa55
mov eax, dword [ebp + 8]
push dword [eax]
lea esi, [esp + 0x18]
call fcn.00433224
xor esi, esi
cmp dword [edi + 0x258], esi
je 0x40b26d
lea eax, [esp + 0x58]
push eax
mov eax, dword [ebp + 0xc]
push dword [eax]
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
call dword [sym.imp.GDI32.dll_GetRgnBox]
fld1
movzx eax, byte [esp + 0xf]
fst dword [esp + 0x68]
fldz
mov dword [esp + 0x10], eax
fst dword [esp + 0x6c]
lea eax, [esp + 0x3c]
fst dword [esp + 0x70]
push eax
fst dword [esp + 0x78]
mov dword [esp + 0x40], esi
fst dword [esp + 0x7c]
fst dword [esp + 0x80]
fst dword [esp + 0x88]
fst dword [esp + 0x8c]
fst dword [esp + 0x90]
fst dword [esp + 0x94]
fst dword [esp + 0x98]
fst dword [esp + 0xa0]
fst dword [esp + 0xa4]
fst dword [esp + 0xa8]
fst dword [esp + 0xac]
fst dword [esp + 0xb0]
fst dword [esp + 0xb8]
fst dword [esp + 0xbc]
fst dword [esp + 0xc0]
fst dword [esp + 0xc4]
fstp dword [esp + 0xc8]
fst dword [esp + 0x84]
fst dword [esp + 0x9c]
fstp dword [esp + 0xcc]
fild dword [esp + 0x14]
fdiv qword [0x4ed5f8]
fstp dword [esp + 0xb4]
call sub.gdiplus.dll_GdipCreateImageAttributes
mov dword [esp + 0x40], eax
push esi
lea eax, [esp + 0x6c]
push eax
lea esi, [esp + 0x44]
call fcn.0042808a
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
mov edi, dword [edi + 0x258]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
fild dword [esp + 0x10]
sub eax, dword [esp + 0x2c]
sub esp, 0x10
fstp dword [esp + 0xc]
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
mov ecx, esi
mov eax, ebx
lea esi, [esp + 0x24]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
call fcn.0042801b
push dword [esp + 0x3c]
call sub.gdiplus.dll_GdipDisposeImageAttributes
push dword [esp + 0x14]
call sub.gdiplus.dll_GdipDeleteGraphics
xor eax, eax
inc eax
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8