Function at 0x40c840
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4477a9
mov eax, dword fs:[0]
push eax
sub esp, 0x204
mov eax, dword [0x45b4b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x210], esi
mov dword [esi + 8], eax
mov dword [esi + 4], 2
mov dword [esi + 0x34], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [ebp - 4], 0
mov dword [esi], vtable.TrLabel.0
call fcn.00402df0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x40c8df
push 0x80004005
call fcn.00402ba0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x38], eax
mov byte [ebp - 4], 1
lea ecx, [esi + 0x38]
push 0x4516a2
mov byte [esi + 0x58], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x3c], 0xffffffff
call fcn.00403f00
push 0
lea eax, [ebp - 0x208]
mov dword [esi + 0x28], 0
push eax
push 0x1f8
push 0x29
mov dword [esi + 0x5c], 0
mov dword [ebp - 0x208], 0x1f8
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov ebx, dword [sym.imp.gdiplus.dll_GdipAlloc]
push 8
mov dword [ebp - 0x210], eax
call ebx
test eax, eax
je 0x40c978
movss xmm2, dword [0x4540b0]
lea ecx, [ebp - 0x54]
sub esp, 0xc
push ecx
mov ecx, eax
call fcn.0040ceb0
jmp 0x40c97a
xor eax, eax
push 0xc
mov dword [esi + 0x44], eax
call ebx
mov edi, eax
test edi, edi
je 0x40c9be
lea eax, [ebp - 0x20c]
mov dword [edi + 8], 6
push eax
push 0xff000000
mov dword [edi], vtable.Gdiplus::SolidBrush.0
mov dword [ebp - 0x20c], 0
call dword [sym.imp.gdiplus.dll_GdipCreateSolidFill]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x20c]
mov dword [edi + 4], eax
jmp 0x40c9c0
xor edi, edi
push 0x45e988
mov dword [esi + 0x48], edi
call dword [sym.imp.gdiplus.dll_GdipStringFormatGetGenericTypographic]
mov dword [0x45e98c], eax
lea eax, [ebp - 0x20c]
push eax
push dword [0x45e988]
mov dword [ebp - 0x20c], 0
call dword [sym.imp.gdiplus.dll_GdipCloneStringFormat]
mov dword [0x45e98c], eax
test eax, eax
jne 0x40ca15
push 8
call ebx
mov edi, eax
test edi, edi
je 0x40ca15
mov ecx, dword [ebp - 0x20c]
mov eax, dword [0x45e98c]
mov dword [edi + 4], eax
mov dword [edi], ecx
jmp 0x40ca17
xor edi, edi
push 0x1000
mov dword [esi + 0x40], edi
push dword [edi]
call dword [sym.imp.gdiplus.dll_GdipSetStringFormatFlags]
test eax, eax
je 0x40ca2e
mov dword [edi + 4], eax
mov edi, dword [esi + 0x48]
push 0xff000000
push dword [edi + 4]
call dword [sym.imp.gdiplus.dll_GdipSetSolidFillColor]
test eax, eax
je 0x40ca46
mov dword [edi + 8], eax
push dword [ebp - 0x210]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042d3b0
mov esp, ebp
pop ebp
ret 0x18