Function at 0x9fe5d0
Capabilities:
Accept command line arguments
Get common file path
Query environment variable
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0xa8a2f6
push eax
mov dword fs:[0], esp
sub esp, 0x758
push ebx
push ebp
push esi
push edi
call fcn.009fe450
test al, al
je 0x9fed2a
xor ebp, ebp
push ebp
push str.DisableTracing
call fcn.00a350d0
add esp, 8
test eax, eax
jne 0x9fed2a
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea ecx, [esp + 0xb4]
lea edx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
call fcn.009f9550
push 0x5c
push eax
call fcn.00a7e1b5
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x26]
mov esi, eax
mov eax, dword [esp + 0x2a]
add esp, 8
and eax, 0xffff
and ecx, 0xffff
and edx, 0xffff
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x1c]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x26]
push eax
mov eax, dword [esp + 0x26]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
add esi, 2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push esi
push str._ls._x._d__d__d__d._d._d._d.trace
lea ecx, [esp + 0x388]
push 0x100
push ecx
call fcn.00a7f1ff
add esp, 0x30
lea ecx, [esp + 0xbc]
call fcn.00a155c0
lea edx, [esp + 0xbc]
or esi, 0xffffffff
push edx
push str.LogPath
mov dword [esp + 0x778], ebp
mov dword [0xaa220c], esi
call fcn.00a351f0
add esp, 8
test al, al
je 0x9fe753
mov eax, dword [esp + 0xc4]
push ebp
push eax
call fcn.00a27010
add esp, 8
test al, al
je 0x9fe753
lea ecx, [esp + 0x360]
test ecx, ecx
je 0x9fe71a
lea edx, [esp + 0x360]
push edx
call fcn.00a7e07a
add esp, 4
jmp 0x9fe71c
xor eax, eax
push eax
lea eax, [esp + 0x364]
push eax
lea ecx, [esp + 0xc4]
call fcn.00a15880
mov ecx, dword [esp + 0xc4]
push ebp
push 0x80
push 2
push ebp
push 3
push 0xc0000000
push ecx
call fcn.00a227b0
mov dword [0xaa220c], eax
mov eax, dword [0xaa220c]
mov ebx, 1
cmp eax, esi
jne 0x9fe97d
call fcn.009f9560
mov dl, byte [esp + 0x13]
push ebp
lea ecx, [esp + 0x2c]
mov edi, eax
mov byte [esp + 0x2c], dl
call fcn.009f6b50
push edi
call fcn.00a7e07a
add esp, 4
mov esi, eax
lea ecx, [esp + 0x28]
push ebx
push esi
call fcn.009f8090
test al, al
je 0x9fe7b3
mov eax, dword [esp + 0x2c]
push esi
push edi
push eax
call fcn.009fed50
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x3c], esi
add esp, 0xc
mov word [ecx + esi*2], bp
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x770], bl
cmp eax, ebp
jne 0x9fe7c7
mov eax, 0xa917ac
push 0x5c
push eax
call fcn.00a7e1b5
add esp, 8
lea ecx, [esp + 0xbc]
mov word [eax], bp
call fcn.00a15bd0
mov esi, dword [esp + 0x2c]
cmp esi, ebp
jne 0x9fe7f2
mov esi, 0xa917ac
cmp esi, ebp
je 0x9fe7fd
push esi
call fcn.00a7e07a
add esp, 4
jmp 0x9fe7ff
xor eax, eax
push eax
push esi
lea ecx, [esp + 0xc4]
call fcn.00a15880
lea edx, [esp + 0x360]
test edx, edx
je 0x9fe82a
lea eax, [esp + 0x360]
push eax
call fcn.00a7e07a
add esp, 4
jmp 0x9fe82c
xor eax, eax
lea ecx, [esp + 0x360]
push eax
push ecx
lea ecx, [esp + 0xc4]
call fcn.00a15880
mov edx, dword [esp + 0xc4]
push ebp
push 0x80
push 2
push ebp
push 3
push 0xc0000000
push edx
call fcn.00a227b0
mov dword [0xaa220c], eax
mov eax, dword [esp + 0x2c]
cmp eax, ebp
mov byte [esp + 0x770], 0
je 0x9fe892
mov cl, byte [eax - 1]
test cl, cl
je 0x9fe886
cmp cl, 0xff
je 0x9fe886
dec cl
mov byte [eax - 1], cl
jmp 0x9fe892
add eax, 0xfffffffe
push eax
call fcn.00a7d8f0
add esp, 4
cmp dword [0xaa220c], 0xffffffff
jne 0x9fe97d
lea eax, [esp + 0x560]
push eax
push 0x104
call fcn.00a22dd0
test eax, eax
je 0x9fe97d
lea ecx, [esp + 0x560]
push ecx
call fcn.00a7e07a
mov cx, word [esp + eax*2 + 0x562]
lea eax, [esp + eax*2 + 0x562]
add esp, 4
cmp cx, 0x5c
je 0x9fe8e4
cmp cx, 0x2f
jne 0x9fe8e7
mov word [eax], bp
lea ecx, [esp + 0xbc]
call fcn.00a15bd0
lea edx, [esp + 0x560]
test edx, edx
je 0x9fe910
lea eax, [esp + 0x560]
push eax
call fcn.00a7e07a
add esp, 4
jmp 0x9fe912
xor eax, eax
lea ecx, [esp + 0x560]
push eax
push ecx
lea ecx, [esp + 0xc4]
call fcn.00a15880
lea edx, [esp + 0x360]
test edx, edx
je 0x9fe944
lea eax, [esp + 0x360]
push eax
call fcn.00a7e07a
add esp, 4
jmp 0x9fe946
xor eax, eax
lea ecx, [esp + 0x360]
push eax
push ecx
lea ecx, [esp + 0xc4]
call fcn.00a15880
mov edx, dword [esp + 0xc4]
push ebp
push 0x80
push 2
push ebp
push 3
push 0xc0000000
push edx
call fcn.00a227b0
mov dword [0xaa220c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [0xaa220c]
or esi, 0xffffffff
cmp eax, esi
je 0x9fed0f
mov eax, dword [esp + 0xc4]
push eax
call fcn.009fe470
mov ecx, dword [0xaa2204]
add esp, 4
mov dword [ecx], esi
mov edx, dword [0xaa2204]
mov eax, dword [edx]
shr eax, 0x16
test bl, al
je 0x9fe9d4
push 0x40
push 0x101000
push 0xc0000
push ebp
call fcn.00a47570
add esp, 0x10
mov dword [0xab53e4], eax
mov ecx, dword [0xaa2204]
cmp dword [ecx], ebp
je 0x9fed02
call fcn.009fff70
lea edx, [esp + 0x560]
push 0x104
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x2cc]
mov dword [esp + 0x2cc], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edi, dword [esp + 0x2d4]
mov ecx, str.Windows_95
mov esi, 4
mov eax, 5
xor edx, edx
mov dword [esp + 0xa0], ebx
mov ebx, dword [esp + 0x2d0]
mov dword [esp + 0x6c], esi
test ecx, ecx
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], 0xa
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], 0x5a
mov dword [esp + 0x84], 3
mov dword [esp + 0x88], 0x33
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], ebp
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ebp
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], 2
mov dword [esp + 0xac], 6
mov dword [esp + 0xb0], ebp
mov dword [esp + 0x44], str.Windows_95
mov dword [esp + 0x48], str.Windows_98
mov dword [esp + 0x4c], str.Windows_ME
mov dword [esp + 0x50], str.Windows_NT_3.51
mov dword [esp + 0x54], str.Windows_NT_4.0
mov dword [esp + 0x58], str.Windows_2000
mov dword [esp + 0x5c], str.Windows_XP
mov dword [esp + 0x60], str.Windows_Server_2003
mov dword [esp + 0x64], str.Windows_Vista
mov dword [esp + 0x68], ebp
je 0x9feb2c
lea ecx, [esp + 0x44]
lea eax, [esp + 0x70]
cmp dword [eax - 4], ebx
jne 0x9feb22
cmp dword [eax], edi
je 0x9feb2c
add ecx, esi
inc edx
add eax, 8
cmp dword [ecx], ebp
jne 0x9feb19
mov edx, dword [esp + edx*4 + 0x44]
cmp edx, ebp
mov eax, edx
jne 0x9feb3b
mov eax, str.Unknown
push eax
push edi
push ebx
push str.070825
push 0xa9e50c
push str.Thinstall_Version__s____s__Windows__d._d___s__n
call fcn.009fe320
mov esi, dword [0xab4f80]
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea edx, [esp + 0x568]
push esi
push edx
push str.Logging_started_for_Module_s_n__Using_archive_s_n__PID0x_x_n__CommandLine___s_n
call fcn.009fe320
mov edi, 0xa9e50c
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
not ecx
dec ecx
mov ebx, ecx
add ebx, 0x15
push 0xaf3c50
call edi
cmp eax, 0x10000
jl 0x9febca
push 0xaf3c50
call ebp
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xaf3c50
call edi
cmp eax, 0x10000
jge 0x9febad
push ebx
push 0xaf3c0c
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov ecx, dword [0xaf3be8]
mov esi, eax
lea eax, [ebx + esi]
cmp eax, ecx
jb 0x9febf3
push 0xaf3c50
call ebp
call fcn.009fdb90
jmp 0x9feb9f
test esi, esi
jne 0x9fec0e
push 0x279
push str.C:gecode_rick_vos3_thinstallos_ts_log2.cpp
push str.pvStream
call fcn.00a7ef15
add esp, 0xc
mov dword [esi], 0x9f
mov ecx, dword [0xab0308]
lea edx, [esi + 4]
mov edi, 0xa9e50c
push 0xaf3c50
mov dword [edx], ecx
mov eax, dword [0xab030c]
add edx, 4
mov dword [edx], eax
mov ecx, dword [0xab0310]
add edx, 4
mov dword [edx], ecx
mov eax, dword [0xab0314]
add edx, 4
or ecx, 0xffffffff
mov dword [edx], eax
xor eax, eax
add edx, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebp
call fcn.00a4fb40
lea ecx, [esp + 0x560]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
call fcn.009f9570
lea edx, [esp + 0x560]
push eax
push edx
push str.System_Current_Directory___s_nVirtual_Current_Directory___ls_n
call fcn.009fe320
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov edi, eax
mov esi, edi
cmp byte [edi], 0
je 0x9fecd0
push esi
push str.start_env_var__s_n
call fcn.009fe320
mov al, byte [esi]
add esp, 8
test al, al
je 0x9fecc8
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x9fecc0
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x9fecac
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
lea eax, [esp + 0x28]
push 0x1c
push eax
push fcn.009fe5d0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
add ecx, eax
push ecx
push eax
push str.Thinstall_loaded_at__x__x_n
call fcn.009fe320
add esp, 0xc
mov dword [esp + 0x770], 0xffffffff
jmp 0x9fed1e
mov edx, dword [0xaa2204]
mov dword [esp + 0x770], esi
mov dword [edx], ebp
lea ecx, [esp + 0xbc]
call fcn.00a155e0
mov ecx, dword [esp + 0x768]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x764
ret