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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x599341
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 0x408e50
lea ecx, [ebx + 0x10]
push ecx
push eax
call dword [sym.imp.GDI32.dll_RectInRegion]
test eax, eax
je 0x409222
cmp dword [ebx + 0x250], edi
jne 0x408e94
lea esi, [ebx + 0x258]
mov ecx, dword [esi]
cmp ecx, edi
je 0x408e6c
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi], edi
cmp dword [ebx + 0x254], edi
mov ecx, ebx
je 0x408e84
push edi
push edi
push 0x18
call fcn.00431e76
jmp 0x40921f
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00426395
jmp 0x40921f
lea ecx, [ebx + 0x208]
mov eax, dword [ecx]
call dword [eax + 0x28]
test eax, eax
je 0x408ee5
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.00409239
test eax, eax
je 0x408ee3
push dword [ebx + 0x25c]
mov ecx, ebx
lea esi, [ebx + 0x208]
call fcn.00408b41
lea esi, [ebx + 0x258]
mov ecx, dword [esi]
test ecx, ecx
je 0x408ee0
mov eax, dword [ecx]
push 1
call dword [eax]
and dword [esi], 0
xor edi, edi
cmp dword [ebx + 0x258], edi
jne 0x409017
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.00409239
test eax, eax
je 0x40921f
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.00431a72
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.00426395
push edi
push edi
push edi
push dword [esp + 0x20]
call esi
push dword [esp + 0x48]
call fcn.00409287
mov dword [ebx + 0x258], eax
lea eax, [esp + 0x44]
call fcn.00426375
push dword [esp + 0x14]
call dword [sym.imp.GDI32.dll_DeleteDC]
lea esi, [esp + 0x48]
mov dword [esp + 0x44], vtable.CBkBitmap.0
call fcn.004217b0
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.004087cc
lea eax, [ebx + 0x1d0]
lea ebx, [esp + 0x1c]
call fcn.004088d5
mov edi, dword [esp + 0x10]
lea eax, [esp + 0xf]
push eax
lea eax, [edi + 0x198]
call fcn.004089d9
mov eax, dword [ebp + 8]
push dword [eax]
lea esi, [esp + 0x18]
call fcn.00431927
xor esi, esi
cmp dword [edi + 0x258], esi
je 0x409216
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 [0x5f0e08]
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.0042634a
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.004262db
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