Function at 0x403f90
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5cbac8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x613ad0]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x613ad0]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x94]
mov eax, dword [esp + 0x90]
mov edx, dword [edi]
mov ebp, dword [esp + 0x8c]
mov esi, ecx
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x20], ecx
mov ecx, dword [edi + 8]
mov dword [esp + 0x24], edx
mov edx, dword [edi + 0xc]
xor ebx, ebx
cmp dword [esi + 0xe8], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
jne 0x4041ee
push 0x138
call fcn.0057def7
add esp, 4
cmp eax, ebx
mov dword [esi + 0xe8], eax
je 0x404513
mov dword [eax], ebx
mov eax, dword [esi + 0xe8]
mov dword [eax + 4], ebx
mov ecx, dword [esi + 0xe8]
mov eax, 0x64
mov dword [ecx + 8], eax
mov edx, dword [esi + 0xe8]
mov dword [edx + 0xc], eax
mov eax, dword [esi + 0xe8]
mov dword [eax + 0x10], 0x186a0
mov edx, dword [esi + 0xe8]
mov ecx, 1
mov dword [edx + 0x14], ecx
mov eax, dword [esi + 0xe8]
mov dword [eax + 0x18], ebx
mov edx, dword [esi + 0xe8]
mov dword [edx + 0x1c], ebx
mov eax, dword [esi + 0xe8]
mov dword [eax + 0x20], ecx
mov edx, dword [esi + 0xe8]
mov dword [edx + 0x24], ebx
mov eax, dword [esi + 0xe8]
mov dword [eax + 0x28], ebx
mov edx, dword [esi + 0xe8]
mov dword [edx + 0x2c], ebx
mov eax, dword [esi + 0xe8]
mov dword [eax + 0x30], ebx
mov edx, dword [esi + 0xe8]
mov dword [edx + 0x34], ebx
mov eax, dword [esi + 0xe8]
mov dword [eax + 0x38], ebx
mov edx, dword [esi + 0xe8]
mov dword [edx + 0x3c], ebx
mov eax, dword [esi + 0xe8]
mov dword [eax + 0x40], ecx
mov edx, dword [esi + 0xe8]
mov dword [edx + 0x44], ecx
mov eax, dword [esi + 0xe8]
mov dword [eax + 0x118], ebx
mov edx, dword [esi + 0xe8]
mov dword [edx + 0x48], ecx
mov eax, dword [esi + 0xe8]
mov byte [eax + 0x4c], 0x42
mov edx, dword [esi + 0xe8]
mov dword [edx + 0xd0], ebx
mov eax, dword [esi + 0xe8]
mov dword [eax + 0xd4], ebx
mov edx, dword [esi + 0xe8]
mov byte [edx + 0xd8], 0xd
mov eax, dword [esi + 0xe8]
mov dword [eax + 0xdc], 3
mov eax, dword [0x61531c]
mov edx, dword [esi + 0xe8]
mov dword [edx + 0xe0], eax
mov eax, dword [0x6152f8]
cmp eax, ebx
je 0x404148
mov eax, dword [eax + 0x20]
jmp 0x40414a
xor eax, eax
mov edx, dword [esi + 0xe8]
mov dword [edx + 0xe4], eax
mov eax, dword [esi + 0xe8]
mov dword [eax + 0xe8], ebx
mov edx, dword [esi + 0xe8]
mov dword [edx + 0xec], 0x1000
mov eax, dword [esi + 0xe8]
mov dword [eax + 0x10c], 7
mov edx, dword [esi + 0xe8]
mov dword [edx + 0x110], ebx
mov eax, dword [esi + 0xe8]
mov edx, dword [str.Arial]
mov dword [eax + 0xf0], edx
mov dx, word [0x5d8698]
add eax, 0xf0
mov word [eax + 4], dx
mov eax, dword [esi + 0xe8]
push 0x4300004
mov dword [eax + 0x12c], ebx
mov edx, dword [esi + 0xe8]
push ecx
push ebx
mov dword [edx + 0x130], ebx
call sym.LectoraViewer.exe__TerSetFlags_12
push 0x92002
push 1
push ebx
call sym.LectoraViewer.exe__TerSetFlags2_12
push 0x24002080
push 1
push ebx
call sym.LectoraViewer.exe__TerSetFlags3_12
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4041f3
mov ecx, dword [esi + 0xe8]
mov dword [ecx + 0xd0], ebp
sub eax, edx
mov edx, dword [esi + 0xe8]
mov dword [edx + 0xd4], eax
mov ecx, dword [edi + 8]
sub ecx, dword [edi]
mov edx, dword [esi + 0xe8]
mov dword [edx + 8], ecx
mov ecx, dword [edi + 0xc]
sub ecx, dword [edi + 4]
mov edx, dword [esi + 0xe8]
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 0xe8]
push ecx
push edi
push eax
push ebp
push edx
call sym.LectoraViewer.exe__TerGetOptimalWindowRect_20
cmp eax, ebx
je 0x404513
mov ebp, dword [esp + 0x18]
cmp ebp, ebx
je 0x404513
cmp dword [esp + 0x9c], ebx
je 0x4042a3
mov eax, dword [esi + 0xe8]
mov ecx, dword [eax + 0xe8]
push ebx
push 0x265
push 0x111
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp]
mov edx, dword [esi + 0xe8]
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
mov eax, dword [edx + 0xe8]
push eax
call sym.LectoraViewer.exe__TerInsertTextU_20
jmp 0x40442c
mov ecx, dword [esi + 0xe8]
mov edx, dword [ecx + 0xe8]
push 0xffffffffffffffff
push ebx
push 0xb1
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 0xe8]
mov ecx, dword [eax + 0xe8]
push ebx
push ebx
push ebx
push ecx
call sym.LectoraViewer.exe__TerGetLine_16
xor ecx, ecx
mov ebp, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0057df22
add esp, 4
mov ebp, eax
mov eax, dword [esi + 0xe8]
mov ecx, dword [eax + 0xe8]
push ebp
push ebx
push ebx
push ecx
call sym.LectoraViewer.exe__TerGetLine_16
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x20], ebx
movzx edx, word [ebp]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esi + 0xe8]
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [eax + 0xe8]
push edx
push ecx
call sym.LectoraViewer.exe__TerGetFontInfo_20
cmp dword [esp + 0x1c], ebx
je 0x4043f2
cmp eax, ebx
je 0x4043f2
movzx ecx, word [ebp]
lea edx, [esp + 0x38]
push edx
mov edx, dword [esi + 0xe8]
lea eax, [esp + 0x38]
push eax
mov eax, dword [edx + 0xe8]
push ecx
push eax
call sym.LectoraViewer.exe__TerGetTextColor_16
mov edx, dword [esi + 0xe8]
mov eax, dword [edx + 0xe8]
push ebx
lea ecx, [esp + 0x58]
push ecx
push eax
call sym.LectoraViewer.exe__SetTerFont_12
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 0xe8]
mov eax, dword [edx + 0xe8]
push ebx
push ecx
push eax
call sym.LectoraViewer.exe__SetTerPointSize_12
mov ecx, dword [esp + 0x34]
mov edx, dword [esi + 0xe8]
mov eax, dword [edx + 0xe8]
push ebx
push ecx
push eax
call sym.LectoraViewer.exe__SetTerColor_12
mov ecx, dword [esp + 0x38]
mov edx, dword [esi + 0xe8]
mov eax, dword [edx + 0xe8]
push ebx
push ecx
push eax
call sym.LectoraViewer.exe__SetTerBkColor_12
mov ecx, dword [esi + 0xe8]
mov edx, dword [ecx + 0xe8]
push ebx
push ebx
push 7
push edx
call sym.LectoraViewer.exe__SetTerCharStyle_16
mov eax, dword [esp + 0x3c]
mov ecx, dword [esi + 0xe8]
mov edx, dword [ecx + 0xe8]
push ebx
push 1
push eax
push edx
call sym.LectoraViewer.exe__SetTerCharStyle_16
push ebp
call fcn.0057df27
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov ecx, dword [esi + 0xe8]
mov edx, dword [ecx + 0xe8]
add esp, 4
push eax
push edx
call sym.LectoraViewer.exe__TerReplaceSelU_8
mov eax, dword [esi + 0xe8]
mov ecx, dword [eax + 0xe8]
push 1
push ecx
call sym.LectoraViewer.exe__DeselectTerText_8
mov ebp, dword [esp + 0x18]
mov eax, dword [esi + 0xe8]
mov ecx, dword [eax + 0xe8]
push ebx
lea edx, [esp + 0x18]
push edx
push ecx
call sym.LectoraViewer.exe__GetTerBuffer_12
push eax
lea ecx, [esp + 0x44]
call fcn.004429b0
lea ecx, [esp + 0x40]
mov dword [esp + 0x84], ebx
call fcn.00442dc0
push eax
mov ecx, ebp
call fcn.00403db0
lea ecx, [esp + 0x40]
call fcn.00442560
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x44]
cmp eax, ebx
jne 0x404480
mov eax, dword [0x60f8d4]
mov edx, dword [esi + 0xe8]
mov dword [edx + 0xd0], eax
mov eax, dword [esi + 0xe8]
mov ecx, dword [esp + 0x14]
mov dword [eax + 0xd4], ecx
mov edx, dword [esp + 0x2c]
sub edx, dword [esp + 0x24]
mov eax, dword [esi + 0xe8]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x28]
mov edx, dword [esi + 0xe8]
mov dword [edx + 0xc], ecx
mov eax, dword [esp + 0x44]
cmp eax, ebx
jne 0x4044cb
mov eax, dword [0x60f8d4]
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x28]
push edx
mov edx, dword [esi + 0xe8]
push ecx
push eax
push edx
call sym.LectoraViewer.exe__TerGetOptimalWindowRect_20
mov eax, dword [esp + 0x2c]
cmp dword [edi + 8], eax
jge 0x4044f3
mov dword [edi + 8], eax
mov eax, dword [esp + 0x30]
cmp dword [edi + 0xc], eax
jge 0x4044ff
mov dword [edi + 0xc], eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x84], 0xffffffff
call fcn.00442b40
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.005aac48
add esp, 0x74
ret 0x14