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

Disassembly:
push 0xffffffffffffffff
push 0x6052b8
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.005eae6a
mov ecx, dword [0x69c108]
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 0x41d7cd
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.005eb0f5
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
call fcn.005eb0f5
mov dword [esp + 0x18], vtable.CGdiObject.0
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 4
call fcn.005f2f3e
lea ecx, [esp + 0x40]
mov dword [esp + 0x30], 0xffffffff
call fcn.005eb0f5
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.004112e0
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.005f0a65
mov ebx, dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
cmp eax, 1
jne 0x41d8a8
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
dec ecx
test ecx, ecx
jl 0x41d884
cmp byte [ecx + eax], 0xd
jne 0x41d85c
lea eax, [esp + 0x44]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.005e722e
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 5
call fcn.005eb22e
lea ecx, [esp + 0x44]
mov byte [esp + 0x3c], 3
call fcn.005eb0f5
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 0x41d884
lea ecx, [esp + 0x10]
mov esi, eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.005eb22e
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.005f0a65
cmp eax, 1
je 0x41d81a
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 0x41d8e7
sub ecx, eax
xor ebx, ebx
sub ecx, edx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ecx
jmp 0x41d8f8
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 0x41d902
inc eax
jmp 0x41d903
dec eax
lea ecx, [esp + 0x24]
mov dword [ebp + 4], eax
test ecx, ecx
je 0x41d91f
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41d91f
lea ecx, [esp + 0x24]
call fcn.005f2f3e
lea edx, [esp + 0x24]
push 0xff
push edx
mov ecx, ebp
call fcn.004112e0
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 0x41d962
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x30]
lea eax, [ecx + 6]
or ecx, 0xffffffff
cmp dword [ebp + 4], ecx
jle 0x41d978
mov dword [ebp + 4], ecx
mov dword [esp + 0x1c], edx
mov ecx, dword [esi + 0xc]
cmp ebx, edx
mov edx, dword [esi + 4]
je 0x41d99f
mov ebx, dword [esp + 0x14]
sub ecx, edx
mov edx, eax
imul edx, ebx
cmp edx, ecx
jl 0x41d9cf
mov ebx, dword [esp + 0x58]
test ebx, ebx
je 0x41d9ba
cmp edx, ecx
jle 0x41d9cb
jmp 0x41d9ba
mov ebx, dword [esp + 0x14]
sub ecx, edx
mov edx, eax
imul edx, ebx
cmp edx, ecx
jg 0x41d9ed
mov ebx, dword [esp + 0x58]
test ebx, ebx
je 0x41d9ba
cmp edx, ecx
jge 0x41d9e9
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41da07
mov ebx, dword [esp + 0x44]
jmp 0x41d8f8
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 0x41da0b
dec dword [ebp + 4]
jmp 0x41da0b
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 0x41da0b
inc dword [ebp + 4]
jmp 0x41da0b
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x24]
test eax, eax
je 0x41da24
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41da24
lea ecx, [esp + 0x24]
call fcn.005f2f3e
lea ecx, [esp + 0x24]
push 0xff
push ecx
mov ecx, ebp
call fcn.004112e0
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 0x41da77
imul edx, ebx
lea eax, [edx + eax + 6]
mov dword [esi + 0xc], eax
jmp 0x41da85
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 0x41da9a
mov ecx, dword [esp + 0x1c]
lea edx, [eax + ecx + 6]
mov dword [esi + 8], edx
jmp 0x41daa8
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 0x41dacd
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41dacd
lea ecx, [esp + 0x24]
call fcn.005f2f3e
mov esi, dword [ebp + 4]
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 2
call fcn.005eb0f5
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 1
call fcn.005eb0f5
mov dword [esp + 0x24], vtable.CGdiObject.0
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 6
call fcn.005f2f3e
lea ecx, [esp + 0x4c]
mov dword [esp + 0x3c], 0xffffffff
call fcn.005eb0f5
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