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

Disassembly:
sub esp, 0x200
mov eax, dword [0x100260c8]
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 0x10004627
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 0x10004446
test dx, dx
je 0x10004442
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x10004446
add ecx, 4
add eax, 4
test dx, dx
jne 0x10004420
xor eax, eax
jmp 0x1000444b
sbb eax, eax
or eax, 1
inc esi
test eax, eax
je 0x10004459
cmp esi, ebx
jl 0x10004410
jmp 0x10004626
cmp esi, ebx
jge 0x1000447b
push dword [edi + ebp + 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000447b
push dword [edi + ebp + 4]
call fcn.1000b61b
add esp, 4
mov ebx, eax
jmp 0x1000447d
xor ebx, ebx
test ebx, ebx
je 0x100044a9
push 0x1f4
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.1000b975
push ebx
call fcn.10008ce7
lea eax, [esp + 0x28]
push eax
call fcn.1000b67a
add esp, 0x14
mov dword [0x10026d84], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.freelancer.exe
call edi
mov esi, eax
push 0x14
push 0x1001d708
lea ecx, [esi + 0x174634]
push ecx
call fcn.100019a0
push 2
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
lea eax, [esi + 0x1746ca]
push eax
call fcn.100019a0
push 2
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0
push eax
lea eax, [esi + 0x174707]
push eax
call fcn.100019a0
push 2
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0
push eax
lea eax, [esi + 0x174744]
push eax
call fcn.100019a0
push 2
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 0
push eax
lea eax, [esi + 0x174781]
push eax
call fcn.100019a0
push 2
lea eax, [esp + 0x50]
mov dword [esp + 0x50], 0
push eax
lea eax, [esi + 0x1747be]
push eax
call fcn.100019a0
add esp, 0x48
lea eax, [esi + 0x1e23dc]
push 5
push str.null
push eax
call fcn.100019a0
push 4
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 1
push eax
lea eax, [esi + 0x16ddec]
push eax
call fcn.100019a0
push 4
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 1
push eax
lea eax, [esi + 0x174890]
push eax
call fcn.100019a0
push 4
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0
push eax
lea eax, [esi + 0x1e266c]
push eax
call fcn.100019a0
push 4
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 0x7ffffffe
push eax
lea eax, [esi + 0x691ca]
push eax
call fcn.100019a0
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 0x10026d88
push 0x10004940
push eax
mov dword [0x10026d90], eax
call fcn.10001900
add esp, 0xc
push str._ThornScriptLoad__YAPAUIScriptEngine__PBD_Z
push edi
call esi
push 0x10026d94
push 0x100047b0
push eax
mov dword [0x10026d9c], eax
call fcn.10001900
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.1000532e
add esp, 0x200
ret