Function at 0x40c6f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x56a818
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
mov eax, dword [0x5c96a4]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x74]
mov ebx, ecx
mov ecx, dword [ebx + 0x54]
mov eax, dword [ebx + 0x5c]
sub eax, ecx
cdq
sub eax, edx
mov edx, dword [edi + 4]
sar eax, 1
add eax, dword [edi]
lea esi, [edx + ecx + 0xa]
push esi
mov esi, dword [sym.imp.USER32.dll_SetRect]
add ecx, eax
push ecx
add edx, 0xa
push edx
push eax
lea eax, [esp + 0x40]
push eax
call esi
mov edx, dword [esp + 0x3c]
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
push eax
add edx, 5
mov dword [esp + 0x78], edx
mov eax, dword [esp + 0x78]
mov edx, dword [edi]
push ecx
push eax
push edx
lea ecx, [esp + 0x60]
push ecx
call esi
fild dword [esp + 0x30]
mov edx, dword [esp + 0x38]
sub edx, dword [esp + 0x30]
fstp dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
fild dword [esp + 0x34]
sub eax, dword [esp + 0x34]
mov dword [esp + 0x74], edx
mov esi, dword [esp + 0x7c]
test byte [esi + 4], 1
fstp dword [esp + 0x18]
fild dword [esp + 0x74]
mov edx, dword [ebp]
mov edx, dword [edx + 0x30]
mov ecx, ebp
fstp dword [esp + 0x74]
fld dword [esp + 0x74]
mov dword [esp + 0x74], eax
fst dword [esp + 0x28]
fild dword [esp + 0x74]
fstp dword [esp + 0x74]
fld dword [esp + 0x74]
fst dword [esp + 0x74]
fld dword [esp + 0x14]
fstp dword [esp + 0x40]
fld dword [esp + 0x18]
fstp dword [esp + 0x44]
fld dword [esp + 0x28]
fstp dword [esp + 0x48]
fld dword [esp + 0x74]
fstp dword [esp + 0x4c]
fxch st(1)
fstp dword [esp + 0x74]
fstp dword [esp + 0x28]
fldz
fst dword [esp + 0x18]
fstp dword [esp + 0x1c]
fld dword [esp + 0x74]
fstp dword [esp + 0x20]
fld dword [esp + 0x28]
fstp dword [esp + 0x24]
je 0x40c81a
mov eax, dword [ebx + 0x94]
push eax
call edx
mov eax, dword [esi + 8]
mov eax, dword [ebx + eax*4 + 0x6c]
jmp 0x40c82a
mov eax, dword [ebx + 0x8c]
push eax
call edx
mov eax, dword [esi + 8]
mov eax, dword [ebx + eax*4 + 0x64]
test eax, eax
je 0x40c844
mov esi, dword [esp + 0x78]
push eax
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x44]
call fcn.00405220
mov esi, dword [esp + 0x7c]
add esi, 0xc
push esi
lea ecx, [esp + 0x80]
call fcn.00405fa0
mov dword [esp + 0x6c], 0
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax - 0xc]
mov edx, dword [ebp]
push 0x8115
lea esi, [esp + 0x54]
push esi
push ecx
push eax
mov eax, dword [edx + 0x68]
mov ecx, ebp
call eax
mov dword [esp + 0x6c], 0xffffffff
mov eax, dword [esp + 0x7c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c8a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebx + 0xc0], 0
je 0x40c93f
push 0xff00
lea ecx, [esp + 0x2c]
call fcn.00444b63
test eax, eax
je 0x40c8c3
mov eax, dword [eax + 4]
mov edx, dword [ebp + 4]
mov esi, dword [sym.imp.USER32.dll_FrameRect]
push eax
lea ecx, [esp + 0x34]
push ecx
push edx
call esi
mov ebx, vtable.CBrush.0
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], ebx
call fcn.00403950
push 0xff00ff
lea ecx, [esp + 0x2c]
call fcn.00444b63
test eax, eax
je 0x40c8fc
mov eax, dword [eax + 4]
mov ecx, dword [ebp + 4]
push eax
lea eax, [esp + 0x54]
push eax
push ecx
call esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], ebx
call fcn.00403950
push 0xff
lea ecx, [esp + 0x1c]
call fcn.00444b63
test eax, eax
je 0x40c92a
mov eax, dword [eax + 4]
mov edx, dword [ebp + 4]
push eax
push edi
push edx
call esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
call fcn.00403950
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 0xc