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

Disassembly:
push 0xffffffffffffffff
push 0x5b01b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
xor esi, esi
mov dword [esp + 0x18], vtable.CFont.0
mov dword [esp + 0x30], esi
mov dword [esp + 0x1c], esi
lea eax, [esp + 0x40]
lea ecx, [esp + 0xc]
push eax
mov byte [esp + 0x34], 1
mov dword [esp + 0x14], 1
call fcn.005985d4
mov ecx, dword [0x633828]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x40]
mov byte [esp + 0x30], 3
mov dword [esp + 8], esi
cmp dword [edx - 8], esi
jne 0x41c8ad
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x30], 2
mov ecx, dword [eax]
mov edx, dword [eax + 4]
add ecx, 5
add edx, 5
mov dword [eax + 8], ecx
lea ecx, [esp + 4]
mov dword [eax + 0xc], edx
call fcn.0059885f
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
call fcn.0059885f
mov dword [esp + 0x18], vtable.CGdiObject.0
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 4
call fcn.005a0447
lea ecx, [esp + 0x40]
mov dword [esp + 0x30], 0xffffffff
call fcn.0059885f
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
push ebx
push ebp
mov ebp, dword [esp + 0x40]
push edi
lea eax, [esp + 0x24]
push 0xff
push eax
mov ecx, ebp
call fcn.004105f0
mov edi, dword [esp + 0x54]
lea eax, [esp + 0x24]
push eax
mov ecx, edi
mov edx, dword [edi]
call dword [edx + 0x28]
mov ecx, dword [esp + 0x4c]
push 0xa
push esi
lea edx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x64], eax
call fcn.0059e02a
mov ebx, dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
cmp eax, 1
jne 0x41c988
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
dec ecx
test ecx, ecx
jl 0x41c964
cmp byte [ecx + eax], 0xd
jne 0x41c93c
lea eax, [esp + 0x44]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.0059542e
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 5
call fcn.00598998
lea ecx, [esp + 0x44]
mov byte [esp + 0x3c], 3
call fcn.0059885f
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
lea edx, [esp + 0x2c]
push edx
push ecx
push eax
mov eax, dword [edi + 8]
push eax
call ebx
mov eax, dword [esp + 0x2c]
cmp esi, eax
jge 0x41c964
lea ecx, [esp + 0x10]
mov esi, eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00598998
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x4c]
inc eax
push 0xa
mov dword [esp + 0x18], eax
push eax
lea eax, [esp + 0x18]
push edx
push eax
call fcn.0059e02a
cmp eax, 1
je 0x41c8fa
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x2c]
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [edi + 4]
push eax
call ebx
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x48]
imul eax, dword [esp + 0x14]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
mov ebx, ecx
sub ebx, edx
cmp eax, ebx
jge 0x41c9c7
sub ecx, eax
xor ebx, ebx
sub ecx, edx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ecx
jmp 0x41c9d8
sub eax, ecx
mov ebx, 1
add eax, edx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 4]
test ebx, ebx
je 0x41c9e2
inc eax
jmp 0x41c9e3
dec eax
lea ecx, [esp + 0x24]
mov dword [ebp + 4], eax
test ecx, ecx
je 0x41c9ff
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41c9ff
lea ecx, [esp + 0x24]
call fcn.005a0447
lea edx, [esp + 0x24]
push 0xff
push edx
mov ecx, ebp
call fcn.004105f0
mov eax, dword [edi]
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
call dword [eax + 0x28]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x2c]
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [esp + 0x2c]
xor edx, edx
cmp eax, edx
jge 0x41ca42
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x30]
lea eax, [ecx + 6]
or ecx, 0xffffffff
cmp dword [ebp + 4], ecx
jle 0x41ca58
mov dword [ebp + 4], ecx
mov dword [esp + 0x1c], edx
mov ecx, dword [esi + 0xc]
cmp ebx, edx
mov edx, dword [esi + 4]
je 0x41ca7f
mov ebx, dword [esp + 0x14]
sub ecx, edx
mov edx, eax
imul edx, ebx
cmp edx, ecx
jl 0x41caaf
mov ebx, dword [esp + 0x58]
test ebx, ebx
je 0x41ca9a
cmp edx, ecx
jle 0x41caab
jmp 0x41ca9a
mov ebx, dword [esp + 0x14]
sub ecx, edx
mov edx, eax
imul edx, ebx
cmp edx, ecx
jg 0x41cacd
mov ebx, dword [esp + 0x58]
test ebx, ebx
je 0x41ca9a
cmp edx, ecx
jge 0x41cac9
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41cae7
mov ebx, dword [esp + 0x44]
jmp 0x41c9d8
mov ebx, dword [esp + 0x14]
imul eax, ebx
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 4]
sub edx, eax
mov eax, dword [esp + 0x48]
sub edx, ecx
cmp edx, eax
jle 0x41caeb
dec dword [ebp + 4]
jmp 0x41caeb
mov ebx, dword [esp + 0x14]
imul eax, ebx
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
sub eax, ecx
mov ecx, dword [esp + 0x48]
add eax, edx
cmp eax, ecx
jle 0x41caeb
inc dword [ebp + 4]
jmp 0x41caeb
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x24]
test eax, eax
je 0x41cb04
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41cb04
lea ecx, [esp + 0x24]
call fcn.005a0447
lea ecx, [esp + 0x24]
push 0xff
push ecx
mov ecx, ebp
call fcn.004105f0
mov edx, dword [edi]
lea eax, [esp + 0x24]
push eax
mov ecx, edi
call dword [edx + 0x28]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0x50]
mov eax, dword [esi + 4]
mov edx, dword [ecx + 4]
cmp eax, edx
mov edx, dword [esp + 0x20]
jne 0x41cb57
imul edx, ebx
lea eax, [edx + eax + 6]
mov dword [esi + 0xc], eax
jmp 0x41cb65
imul edx, ebx
mov eax, dword [esi + 0xc]
sub eax, edx
sub eax, 6
mov dword [esi + 4], eax
mov eax, dword [esi]
mov edx, dword [ecx]
cmp eax, edx
jne 0x41cb7a
mov ecx, dword [esp + 0x1c]
lea edx, [eax + ecx + 6]
mov dword [esi + 8], edx
jmp 0x41cb88
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x1c]
sub eax, edx
sub eax, 6
mov dword [esi], eax
mov eax, dword [esp + 0x54]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x28]
lea ecx, [esp + 0x24]
test ecx, ecx
je 0x41cbad
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41cbad
lea ecx, [esp + 0x24]
call fcn.005a0447
mov esi, dword [ebp + 4]
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 2
call fcn.0059885f
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 1
call fcn.0059885f
mov dword [esp + 0x24], vtable.CGdiObject.0
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 6
call fcn.005a0447
lea ecx, [esp + 0x4c]
mov dword [esp + 0x3c], 0xffffffff
call fcn.0059885f
mov ecx, dword [esp + 0x34]
pop edi
pop ebp
mov eax, esi
pop ebx
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret