Function at 0x10003ea0
Capabilities:
Accept command line arguments
Check if file exists

Disassembly:
sub esp, 0x200
mov eax, dword [0x100250c8]
xor eax, esp
mov dword [esp + 0x1fc], eax
push ebx
push ebp
push esi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, dword [esp + 0x10]
xor esi, esi
mov ebp, eax
test ebx, ebx
jle 0x100040f7
push edi
nop word [eax + eax]
lea edi, [esi*4]
mov eax, str._thn
mov ecx, dword [edi + ebp]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x10003f16
test dx, dx
je 0x10003f12
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x10003f16
add ecx, 4
add eax, 4
test dx, dx
jne 0x10003ef0
xor eax, eax
jmp 0x10003f1b
sbb eax, eax
or eax, 1
inc esi
test eax, eax
je 0x10003f29
cmp esi, ebx
jl 0x10003ee0
jmp 0x100040f6
cmp esi, ebx
jge 0x10003f4b
push dword [edi + ebp + 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10003f4b
push dword [edi + ebp + 4]
call fcn.1000ac1b
add esp, 4
mov ebx, eax
jmp 0x10003f4d
xor ebx, ebx
test ebx, ebx
je 0x10003f79
push 0x1f4
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.1000af75
push ebx
call fcn.100082e7
lea eax, [esp + 0x28]
push eax
call fcn.1000ac7a
add esp, 0x14
mov dword [0x10025d84], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.freelancer.exe
call edi
mov esi, eax
push 0x14
push 0x1001c6a8
lea ecx, [esi + 0x174634]
push ecx
call fcn.100015b0
push 2
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
lea eax, [esi + 0x1746ca]
push eax
call fcn.100015b0
push 2
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0
push eax
lea eax, [esi + 0x174707]
push eax
call fcn.100015b0
push 2
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0
push eax
lea eax, [esi + 0x174744]
push eax
call fcn.100015b0
push 2
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 0
push eax
lea eax, [esi + 0x174781]
push eax
call fcn.100015b0
push 2
lea eax, [esp + 0x50]
mov dword [esp + 0x50], 0
push eax
lea eax, [esi + 0x1747be]
push eax
call fcn.100015b0
add esp, 0x48
lea eax, [esi + 0x1e23dc]
push 5
push str.null
push eax
call fcn.100015b0
push 4
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 1
push eax
lea eax, [esi + 0x16ddec]
push eax
call fcn.100015b0
push 4
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 1
push eax
lea eax, [esi + 0x174890]
push eax
call fcn.100015b0
push 4
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0
push eax
lea eax, [esi + 0x1e266c]
push eax
call fcn.100015b0
push 4
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 0x7ffffffe
push eax
lea eax, [esi + 0x691ca]
push eax
call fcn.100015b0
add esp, 0x3c
push str.common
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str._UpdateGlobalTime_Timing__YAXN_Z
push edi
call esi
push 0x10025d88
push 0x10003d10
push eax
mov dword [0x10025d90], eax
call fcn.10001560
add esp, 0xc
push str._ThornScriptLoad__YAPAUIScriptEngine__PBD_Z
push edi
call esi
push 0x10025d94
push 0x10003bb0
push eax
mov dword [0x10025d9c], eax
call fcn.10001560
add esp, 0xc
pop edi
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x208]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000492f
add esp, 0x200
ret