Function at 0x10001294
Capabilities:
Print debug messages
Query environment variable

Disassembly:
jmp 0x1000d980
mov eax, 0x2244
call fcn.1000ef50
mov eax, dword [0x101daa88]
xor eax, esp
mov dword [esp + 0x2240], eax
fild dword [esp + 0x224c]
mov ecx, dword [esp + 0x2264]
mov eax, dword [esp + 0x2260]
add eax, ecx
fst qword [esp + 0x30]
mov dword [esp], eax
fld st(0)
push ebx
fld qword [esp + 0x226c]
mov ebx, dword [esp + 0x224c]
fmul st(1), st(0)
push ebp
fxch st(1)
push esi
push edi
fstp dword [esp + 0x2c]
fild dword [esp + 0x10]
fild dword [esp + 0x2264]
fmul st(2)
fadd st(1)
fdivrp st(3)
fxch st(2)
fadd qword [0x10039c88]
call fcn.10011760
mov edi, eax
add edi, 1
cmp dword [esp + 0x2288], 1
mov dword [esp + 0x1c], edi
jne 0x1000da0a
add edi, 1
mov dword [esp + 0x1c], edi
mov edx, edi
imul edx, dword [esp + 0x225c]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fmulp st(1)
fsubrp st(1)
call fcn.10011760
fild dword [esp + 0x1c]
mov esi, eax
push 0x400
fsub qword [0x10039c78]
lea eax, [esp + 0x54]
push eax
push str._tmp_
fmul dword [esp + 0x38]
fidiv dword [esp + 0x2274]
fstp dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
xor eax, eax
jmp 0x1000da60
mov cl, byte [esp + eax + 0x50]
mov byte [esp + eax + 0x1650], cl
add eax, 1
test cl, cl
jne 0x1000da60
lea ecx, [esp + 0x1650]
push ecx
lea edx, [esp + 0x1e54]
push str._s_ofile.log
push edx
call fcn.1000eda0
fld dword [esp + 0x1c]
add esp, 0xc
push edi
sub esp, 8
fstp qword [esp]
push ebx
push ebx
lea eax, [esp + 0x1a64]
push str._s_bldcalstr.bat___s___Length__f_in._DPAGES__d__
push eax
call fcn.1000eda0
lea ecx, [esp + 0x1a6c]
push ecx
push 0
push 0
push 0
call fcn.1000113b
add esp, 0x2c
test eax, eax
je 0x1000daec
push eax
lea edx, [esp + 0x1a54]
push str._Error_executing_banner_creation:_d_n
push edx
call fcn.1000eda0
add esp, 0xc
lea eax, [esp + 0x1a50]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [esp + 0x2268], 0x258
mov ecx, dword [0x101ef8e4]
mov edx, dword [ecx + 4]
mov eax, dword [0x101ef8e8]
mov ecx, dword [eax + 4]
mov dword [esp + 0x14], edx
mov edx, dword [0x101ef8ec]
mov eax, dword [edx + 4]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x38], eax
jne 0x1000db5c
lea ecx, [esp + 0x1650]
push ecx
lea edx, [esp + 0x1054]
push str._s_aaa.pnmz
push edx
call fcn.1000eda0
push ebx
lea eax, [esp + 0x1260]
push str._scalD600.pnmz
push eax
call fcn.1000eda0
push ebx
push str._scalabel600.pnmz
lea ecx, [esp + 0x1470]
push ecx
jmp 0x1000db97
lea edx, [esp + 0x1650]
push edx
lea eax, [esp + 0x1054]
push str._s_aaa.pnmz
push eax
call fcn.1000eda0
push ebx
lea ecx, [esp + 0x1260]
push str._scalD300.pnmz
push ecx
call fcn.1000eda0
push ebx
push str._scalabel300.pnmz
lea edx, [esp + 0x1470]
push edx
call fcn.1000eda0
add esp, 0x24
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x1258]
push edx
call fcn.10001140
call fcn.10001280
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x1464]
push edx
call fcn.10001140
call fcn.10001280
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x1070]
push edx
call fcn.10001140
add esp, 0x24
call fcn.10001280
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x2284]
mov ebx, dword [esp + 0x226c]
mov eax, ecx
imul eax, edi
lea eax, [eax + eax*2]
cmp eax, ebx
jle 0x1000dc17
lea ebx, [ecx + ecx*2]
mov ebp, dword [esp + 0x3c]
fld qword [esp + 0x40]
fmul qword [0x10039c88]
mov eax, ebp
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x28]
add eax, dword [esp + 0x2274]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fsubp st(1)
call fcn.10011760
sub esi, eax
sub esi, dword [esp + 0x30]
push ebx
sub esi, dword [esp + 0x2c]
push 0xff
sub esi, ebp
sub esi, dword [esp + 0x226c]
mov ebp, dword [esp + 0x1c]
sub esi, dword [esp + 0x2278]
push ebp
sub esi, dword [esp + 0x2280]
mov dword [esp + 0x28], eax
call fcn.1000f100
mov ecx, dword [esp + 0x30]
push ebx
push 0xff
push ecx
call fcn.1000f100
push ebx
mov ebx, dword [esp + 0x54]
push 0xff
push ebx
call fcn.1000f100
imul esi, edi
add esp, 0x24
test esi, esi
jle 0x1000dcd9
jmp 0x1000dcb0
mov edx, dword [esp + 0x2280]
mov eax, dword [0x101ef8ec]
mov ecx, dword [0x101ef8e8]
push edx
mov edx, dword [0x101ef8e4]
push eax
push ecx
push edx
call fcn.10001055
add esp, 0x10
sub esi, 1
jne 0x1000dcb0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1058]
push edx
call fcn.10001140
add esp, 0xc
cmp dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
jle 0x1000dd62
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
push edi
push ebx
push esi
push ebp
push eax
push ecx
call fcn.1000128a
add esp, 0x18
test edi, edi
jle 0x1000dd4f
mov dword [esp + 0x10], edi
mov edx, dword [esp + 0x2280]
mov eax, dword [0x101ef8ec]
mov ecx, dword [0x101ef8e8]
push edx
mov edx, dword [0x101ef8e4]
push eax
push ecx
push edx
call fcn.10001055
add esp, 0x10
sub dword [esp + 0x10], 1
jne 0x1000dd24
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
jl 0x1000dd02
jmp 0x1000dd66
mov esi, dword [esp + 0x24]
call fcn.10001280
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1258]
push edx
call fcn.10001140
add esp, 0xc
cmp dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
jle 0x1000ddee
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
push edi
push ebx
push esi
push ebp
push eax
push ecx
call fcn.1000128a
add esp, 0x18
test edi, edi
jle 0x1000dddd
mov dword [esp + 0x10], edi
mov edx, dword [esp + 0x2280]
mov eax, dword [0x101ef8ec]
mov ecx, dword [0x101ef8e8]
push edx
mov edx, dword [0x101ef8e4]
push eax
push ecx
push edx
call fcn.10001055
add esp, 0x10
sub dword [esp + 0x10], 1
jne 0x1000ddb2
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
jl 0x1000dd94
call fcn.10001280
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1458]
push edx
call fcn.10001140
add esp, 0xc
cmp dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
jle 0x1000de7c
lea esp, [esp]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
push edi
push ebx
push esi
push ebp
push eax
push ecx
call fcn.1000128a
add esp, 0x18
test edi, edi
jle 0x1000de6b
mov dword [esp + 0x10], edi
mov edi, edi
mov edx, dword [esp + 0x2280]
mov eax, dword [0x101ef8ec]
mov ecx, dword [0x101ef8e8]
push edx
mov edx, dword [0x101ef8e4]
push eax
push ecx
push edx
call fcn.10001055
add esp, 0x10
sub dword [esp + 0x10], 1
jne 0x1000de40
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
jl 0x1000de20
call fcn.10001280
mov eax, dword [esp + 0x1c]
imul eax, edi
mov dword [esp + 0x1c], eax
mov byte [ebx], 0xc8
mov byte [esi], 0xc8
fild dword [esp + 0x1c]
xor esi, esi
mov byte [ebp], 0xc8
fadd dword [esp + 0x2c]
fst qword [esp + 0x40]
fcomp qword [0x10039b80]
fnstsw ax
test ah, 0x41
jne 0x1000deeb
mov eax, dword [esp + 0x2280]
mov ecx, dword [0x101ef8ec]
mov edx, dword [0x101ef8e8]
push eax
mov eax, dword [0x101ef8e4]
push ecx
push edx
push eax
call fcn.10001055
add esi, 1
mov dword [esp + 0x24], esi
fild dword [esp + 0x24]
add esp, 0x10
fcomp qword [esp + 0x40]
fnstsw ax
test ah, 5
jnp 0x1000deb1
mov ecx, dword [esp + 0x2250]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000ef34
add esp, 0x2244
ret