Function at 0x418e46
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4785d7
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x493040]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
push edi
mov eax, dword [0x493040]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x24]
push eax
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fild dword [esp + 0x14]
fld st(0)
fmulp st(1)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
call fcn.00475910
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
call fcn.004757e0
add eax, 0x400
mov dword [ebx + 0xf0], eax
lea eax, [ebx + 0x18]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebx + 0xc]
mov dword [esp + 0x20], eax
call esi
and dword [esp + 0x1c], 0
mov dword [esp + 0x14], eax
xor eax, eax
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
push 1
push 0x480b9c
push dword [ebx + 0xc]
call dword [sym.imp.GDI32.dll_GetTextExtentPointA]
push dword [esp + 0x14]
push dword [ebx + 0xc]
call esi
push dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_DeleteObject]
lea eax, [ebx + 0xcc]
push eax
lea eax, [esp + 0x70]
push eax
call fcn.004068f5
pop ecx
pop ecx
and dword [esp + 0xd0], 0
cmp dword [esp + 0x84], 0x10
mov eax, dword [esp + 0x70]
jae 0x418f65
lea eax, [esp + 0x70]
push eax
push 0x480ba0
call fcn.00421281
movzx esi, byte [ebx + 0x9d]
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
pop ecx
pop ecx
push 0x10
pop eax
sub eax, esi
add edx, 0x40
xor esi, esi
cmp eax, esi
lea ecx, [edi + 0x40]
mov dword [ebx + 0xfc], ecx
mov dword [ebx + 0x100], edx
jle 0x418fb1
shl eax, 4
add ecx, eax
add edx, eax
mov dword [ebx + 0xfc], ecx
mov dword [ebx + 0x100], edx
mov ecx, dword [ebx + 0xf0]
mov eax, ecx
neg eax
cmp word [ebx + 0x9e], si
jl 0x418fe0
mov dword [ebx + 0x108], eax
mov eax, ecx
cdq
idiv edi
mov dword [ebx + 0x104], esi
mov dword [ebx + 0xf8], eax
lea eax, [ecx + ecx]
jmp 0x418ffa
mov dword [ebx + 0x104], eax
lea eax, [ecx + ecx]
cdq
idiv edi
mov dword [ebx + 0x108], esi
mov dword [ebx + 0xf8], eax
mov eax, ecx
cdq
idiv dword [ebx + 0x100]
push esi
lea ecx, [esp + 0x54]
mov dword [esp + 0x6c], 0xf
mov dword [ebx + 0xf4], eax
call fcn.004034a3
mov byte [esp + 0xd0], 1
mov eax, dword [ebx + 0xfc]
cdq
idiv dword [esp + 0x1c]
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x14], eax
lea edi, [ecx + eax]
mov eax, dword [esp + 0x64]
cmp eax, dword [ebx + 0xf8]
jae 0x419080
jmp 0x41904a
xor esi, esi
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x74]
lea esi, [esp + 0x58]
call fcn.0040dec4
mov esi, dword [esp + 0x14]
test esi, esi
jle 0x419074
push 0x480738
lea eax, [esp + 0x54]
push eax
call fcn.00412f83
dec esi
jne 0x419062
mov eax, dword [esp + 0x64]
cmp eax, dword [ebx + 0xf8]
jb 0x419048
imul edi, edi, 3
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x18], edi
call fcn.0040d99f
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x8c]
mov byte [esp + 0xd4], 2
call fcn.004016c1
pop ecx
lea eax, [esp + 0x88]
push eax
lea esi, [esp + 0xa8]
mov byte [esp + 0xd4], 3
call fcn.00402cdc
mov byte [esp + 0xd0], 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0046a301
lea esi, [ebx + 0x10c]
pop ecx
mov edi, esi
call fcn.0040e5e5
xor edi, edi
cmp dword [ebx + 0xf4], edi
mov dword [esp + 0x18], edi
jle 0x419157
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x34]
push eax
push ecx
lea eax, [esp + 0x90]
push eax
lea edi, [esp + 0x40]
call fcn.0040e05d
call fcn.0046a313
cdq
idiv dword [esp + 0x14]
add edx, 5
je 0x41912f
push edx
lea eax, [esp + 0x8c]
push eax
call fcn.00418db2
mov eax, dword [esi + 0x14]
mov ecx, dword [esi]
push eax
push ecx
lea eax, [esp + 0x90]
push eax
mov edi, esi
call fcn.0040e05d
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
cmp eax, dword [ebx + 0xf4]
jl 0x4190f7
xor edi, edi
xor ebx, ebx
push edi
inc ebx
push ebx
lea esi, [esp + 0xac]
call fcn.0040144b
push edi
push ebx
lea esi, [esp + 0x90]
call fcn.0040144b
lea eax, [esp + 0x34]
call fcn.0040d9dc
push edi
push ebx
lea ecx, [esp + 0x58]
call fcn.00403022
push edi
push ebx
lea ecx, [esp + 0x74]
call fcn.00403022
mov eax, ebx
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.0045d55f
mov esp, ebp
pop ebp
ret 4