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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0a54
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4c90b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x70], esi
mov dword [esi], 0
mov dword [esi + 4], 0xff
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov byte [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov word [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov byte [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0xdc], 0x1000
mov dword [esi + 0xe0], 0x1000001
mov dword [esi + 0xe4], 0
mov word [esi + 0xe8], 0
mov byte [esi + 0xea], 0
mov dword [ebp - 0x74], esi
mov dword [esi + 0xec], 0
mov dword [esi + 0xf0], 0
mov dword [esi + 0xf4], 0
mov dword [ebp - 4], 0
mov dword [esi + 0xf8], 0
mov dword [esi + 0xfc], 0
mov dword [esi + 0x100], 0
mov dword [esi + 0x104], 0
mov dword [esi + 0x108], 0
mov dword [esi + 0x10c], 0
mov dword [esi + 0x110], 0
mov dword [esi + 0x114], 0
mov dword [esi + 0x118], 0
mov dword [esi + 0x11c], 0
mov dword [esi + 0x120], 0
mov dword [esi + 0x124], 0
mov dword [esi + 0x128], 0
mov dword [esi + 0x12c], 0
mov dword [esi + 0x130], 0
mov dword [esi + 0x134], 0
mov dword [esi + 0x138], 0
mov dword [esi + 0x13c], 0
mov dword [esi + 0x140], 0
mov dword [esi + 0x144], 0
mov dword [esi + 0x148], 0
xor ecx, ecx
mov byte [ebp - 4], 7
mov eax, 0x53
mov dword [esi + 0x154], 0
mov edi, 4
mov dword [esi + 0x150], 0x53
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00487e40
push 0x14c
push 0
push eax
mov dword [esi + 0x14c], eax
call fcn.0048a4c0
mov byte [ebp - 4], 8
mov dword [esi + 0x160], 0
xor ecx, ecx
mov dword [esi + 0x15c], 0x53
mov eax, 0x53
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00487e40
push 0x14c
push 0
push eax
mov dword [esi + 0x158], eax
call fcn.0048a4c0
lea eax, [esi + 0x184]
mov dword [esi + 0x164], 0
xor ecx, ecx
mov dword [esi + 0x180], eax
mov word [eax], cx
mov dword [esi + 0x248], ecx
mov dword [esi + 0x24c], ecx
mov dword [esi + 0x250], ecx
mov eax, 0x53
mov byte [ebp - 4], 0xb
mul edi
mov dword [esi + 0x25c], ecx
mov dword [esi + 0x258], 0x53
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00487e40
push 0x14c
push 0
push eax
mov dword [esi + 0x254], eax
call fcn.0048a4c0
xor ecx, ecx
mov byte [ebp - 4], 0xc
mov eax, 0x53
mov dword [esi + 0x268], 0
mul edi
mov dword [esi + 0x264], 0x53
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00487e40
push 0x14c
push 0
push eax
mov dword [esi + 0x260], eax
call fcn.0048a4c0
add esp, 0x40
xor ecx, ecx
mov byte [ebp - 4], 0xd
mov eax, 0x53
mov dword [esi + 0x274], 0
mul edi
mov dword [esi + 0x270], 0x53
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00487e40
push 0x14c
push 0
push eax
mov dword [esi + 0x26c], eax
call fcn.0048a4c0
add esp, 0x10
mov dword [esi + 0x278], 0
mov dword [esi + 0x27c], 0
mov dword [esi + 0x280], 0
cmp dword [0x4c9ca4], 0
jne 0x405c1e
push 0
push 0x405840
push 0
push 0
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_EnumFontFamiliesW]
push 0x5c
lea eax, [ebp - 0x6c]
mov dword [esi + 0x168], 0xffa7a6aa
push 0
push eax
mov dword [esi + 0x16c], 0xff000000
mov dword [esi + 0x170], 0xff0000ff
mov dword [esi + 0x174], 0xffd3215f
mov dword [esi + 0x178], 0xffbae4ff
call fcn.0048a4c0
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
push 0x5c
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
push 1
push dword [0x4c99f8]
mov ecx, 0x4c9c9c
mov byte [ebp - 0x55], 1
call fcn.004053a0
test eax, eax
je 0x405ca3
push dword [0x4c99f8]
lea eax, [ebp - 0x50]
push 0x20
push eax
call fcn.004901dd
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [esi + 0x17c], eax
lea ecx, [esi + 0x180]
push 0xffffffffffffffff
lea eax, [ebp - 0x50]
push eax
call fcn.00404a40
mov eax, dword [ebp - 0x6c]
neg eax
cmp dword [ebp - 0x5c], 0x2bc
mov dword [esi + 0x204], eax
setge al
cmp byte [ebp - 0x57], 1
mov byte [esi + 0x208], al
sete al
cmp byte [ebp - 0x58], 1
mov byte [esi + 0x209], al
sete al
push 0x3c
mov byte [esi + 0x20a], al
lea eax, [esi + 0x20c]
push 0
push eax
call fcn.0048a4c0
add esp, 0xc
cmp dword [0x4cc58c], 0
jne 0x405d2f
push 0xdc
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov dword [0x4cc58c], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
cmp dword [0x4cc588], 0
jne 0x405d48
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x4cc588], eax
xorps xmm0, xmm0
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov eax, esi
mov dword [esi + 0xa4], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0xac], 0
mov dword [esi + 0xb0], 0
mov dword [esi + 0xc8], 0
mov dword [esi + 0xc4], 0
movups xmmword [esi + 0xb4], xmm0
movups xmmword [esi + 0xcc], xmm0
movups xmmword [esi + 0x20], xmm0
mov dword [esi + 0x98], 0xffffffff
mov dword [esi + 0x94], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00487e4e
mov esp, ebp
pop ebp
ret