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

Disassembly:
push 0xffffffffffffffff
push 0x10149a1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
push ebp
mov ebp, dword [esp + 0x94]
push esi
push edi
mov edi, dword [esp + 0xac]
cmp di, 1
sete al
mov esi, ecx
mov dword [esp + 0x14], esi
push eax
push ebp
push edi
call fcn.10097ae0
push 0x1a
mov dword [esp + 0x98], 0
mov dword [esi], vtable.ScScript::TextViewImpl.0
mov word [esi + 0x4e], di
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov di, word [esp + 0xa4]
mov dword [esi + 0x54], eax
add esp, 4
mov ecx, ebp
mov word [eax + 0x14], di
call fcn.10094360
mov ecx, dword [esi + 0x54]
mov dword [ecx + 4], eax
mov edx, dword [esi + 0x54]
mov eax, dword [edx + 4]
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ecx, dword [esi + 0x54]
mov dword [ecx], eax
mov edx, dword [esi + 0x54]
mov dword [edx + 8], esi
mov ecx, dword [esi + 0x54]
mov edx, dword [ecx + 4]
movsx eax, di
push eax
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [esi + 0x54]
mov ebx, dword [sym.imp.USER32.dll_SetWindowLongA]
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0x54]
mov edx, dword [eax + 0xc]
push eax
push 0xffffffffffffffeb
push edx
call ebx
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
push 0x48
mov ebp, eax
push 0x5a
push ebp
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 0xa
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edi, eax
neg edi
cmp edi, 0x10
jge 0x100972ae
mov edi, 0x10
push 0x3c
lea edx, [esp + 0x54]
push 0
push edx
call sub.MSVCR80.dll_memset
mov ecx, dword [str.Lucida_Console]
mov edx, dword [0x1015b090]
neg edi
movsx eax, di
mov edi, dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov dword [esp + 0x5c], eax
mov eax, dword [0x1015b094]
mov dword [esp + 0x80], eax
add esp, 0xc
mov dword [esp + 0x6c], ecx
mov cx, word [0x1015b098]
mov dword [esp + 0x70], edx
mov dl, byte [0x1015b09a]
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x64], 0x190
mov byte [esp + 0x6b], 1
mov byte [esp + 0x6c], 0
mov byte [esp + 0x6d], 0
mov byte [esp + 0x6e], 0
mov byte [esp + 0x6f], 0x30
mov word [esp + 0x7c], cx
mov byte [esp + 0x7e], dl
call edi
mov ecx, dword [esi + 0x54]
mov dword [ecx + 0x16], eax
mov edx, dword [esi + 0x54]
cmp dword [edx + 0x16], 0
jne 0x10097365
mov eax, dword [str.Courier_New]
mov ecx, dword [0x1015b084]
mov edx, dword [0x1015b088]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
call edi
mov ecx, dword [esi + 0x54]
mov dword [ecx + 0x16], eax
mov edx, dword [esi + 0x54]
mov eax, dword [edx + 0x16]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebp
call edi
lea ecx, [esp + 0x18]
push ecx
push 1
push 0x1015b07c
push ebp
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov edx, dword [esp + 0x10]
push edx
push ebp
call edi
movsx eax, word [esp + 0x18]
movsx ecx, word [esp + 0x1c]
mov edx, dword [esi + 0x54]
mov dword [esi + 0x46], eax
mov dword [esi + 0x4a], ecx
mov eax, dword [edx + 0xc]
push ebp
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [esi + 0x54]
mov eax, dword [edx + 0xc]
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
fild dword [esp + 0x2c]
sub esp, 0x20
lea ecx, [esp + 0x50]
fstp qword [esp + 0x18]
fild dword [esp + 0x48]
fstp qword [esp + 0x10]
fild dword [esp + 0x44]
fstp qword [esp + 8]
fild dword [esp + 0x40]
fstp qword [esp]
call fcn.100b59c0
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call fcn.100983d0
mov edx, dword [esi + 0x54]
mov eax, dword [edx + 0xc]
push 0x100970a0
push 0xfffffffffffffffc
push eax
call ebx
mov ecx, dword [esi + 0x54]
mov dword [ecx + 0x10], eax
mov ecx, dword [esp + 0x8c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x88
ret 0x14