Function at 0x4601e0
Capabilities:
Accept command line arguments
Check if file exists
Create directory
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a47fd
push eax
mov dword fs:[0], esp
sub esp, 0x280
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push edi
push 0x104
push 0x5e87e8
push 0
call esi
push 0x5c
push 0x5e87e8
call fcn.0047a4a0
mov ecx, 0x5e87e8
add esp, 8
dec ecx
mov byte [eax + 1], 0
nop
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x460230
mov eax, dword [str.scripts]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ecx], eax
mov eax, dword [0x4bb608]
push 0x5e87e8
mov dword [ecx + 4], eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, 0xffffffff
je 0x460269
test al, 0x10
jne 0x460312
push 0x104
push 0x5e87e8
push 0
call esi
push 0x5c
push 0x5e87e8
call fcn.0047a4a0
mov ecx, 0x5e87e8
add esp, 8
dec ecx
mov byte [eax + 1], 0
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x460290
mov eax, dword [str.scripts]
mov dword [ecx], eax
mov eax, dword [0x4bb608]
push 0
push 0x5e87e8
mov dword [ecx + 4], eax
call edi
push 0x104
push 0x5e87e8
push 0
call esi
push 0x5c
push 0x5e87e8
call fcn.0047a4a0
mov ecx, 0x5e87e8
add esp, 8
dec ecx
mov byte [eax + 1], 0
nop dword [eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4602e0
mov eax, dword [str.scriptslibs]
mov dword [ecx], eax
mov eax, dword [0x4c0250]
mov dword [ecx + 4], eax
mov eax, dword [0x4c0254]
mov dword [ecx + 8], eax
mov al, byte [0x4c0258]
push 0
push 0x5e87e8
mov byte [ecx + 0xc], al
call edi
push 0x104
push 0x5e87e8
push 0
call esi
push 0x5c
push 0x5e87e8
call fcn.0047a4a0
mov ecx, 0x5e87e8
add esp, 8
dec ecx
mov byte [eax + 1], 0
nop dword [eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x460340
mov eax, dword [str.settings]
mov dword [ecx], eax
mov eax, dword [0x4c0244]
mov dword [ecx + 4], eax
mov al, byte [0x4c0248]
push 0x5e87e8
mov byte [ecx + 8], al
call ebx
cmp eax, 0xffffffff
je 0x460371
test al, 0x10
jne 0x4603c2
push 0x104
push 0x5e87e8
push 0
call esi
push 0x5c
push 0x5e87e8
call fcn.0047a4a0
mov ecx, 0x5e87e8
add esp, 8
dec ecx
mov byte [eax + 1], 0
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x460398
mov eax, dword [str.settings]
mov dword [ecx], eax
mov eax, dword [0x4c0244]
mov dword [ecx + 4], eax
mov al, byte [0x4c0248]
push 0
push 0x5e87e8
mov byte [ecx + 8], al
call edi
push 0x104
push 0x5e87e8
push 0
call esi
push 0x5c
push 0x5e87e8
call fcn.0047a4a0
mov edi, 0x5e87e8
add esp, 8
dec edi
mov byte [eax + 1], 0
nop dword [eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4603f0
mov ecx, 6
lea eax, [ebp - 0x88]
mov esi, str.settingsRakSAMP_Lite.ini
rep movsd dword es:[edi], dword [esi]
push eax
push 0x5e87e8
movsw word es:[edi], word [esi]
call fcn.0048a6c0
mov ebx, dword [sym.imp.USER32.dll_MessageBoxA]
add esp, 8
test eax, eax
je 0x46043e
mov ecx, 0x5e87e8
call fcn.0045ff80
push 0x40
push str.RakSAMP
push str.Config_file_created
push 0
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x54]
push 0x5e87e8
push 0x14
push eax
push 0x4c0280
push str.version
push str.Client
call edi
lea ecx, [ebp - 0x54]
mov eax, str.15.05.24
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x460488
test dl, dl
je 0x460484
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x460488
add eax, 2
add ecx, 2
test dl, dl
jne 0x460468
xor eax, eax
jmp 0x46048d
sbb eax, eax
or eax, 1
test eax, eax
je 0x4604d0
push 0x4bb460
push 0x5e87e8
call fcn.00481b12
mov esi, eax
push 0x4babef
push esi
call fcn.004573b0
push esi
call fcn.00489d30
add esp, 0x14
mov ecx, 0x5e87e8
call fcn.0045ff80
push 0x40
push str.RakSAMP
push str.Config_file_reset
push 0
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0x5e87e8
push 0
push str.console
push str.Client
call esi
push 0x5e87e8
push 0x3e8
test eax, eax
push str.gui_max_strings
push str.Client
setne byte [0x5e759a]
call esi
push 0x5e87e8
push 1
push str.color_tags
push str.Client
mov dword [0x5e759f], eax
call esi
push 0x5e87e8
push 1
test eax, eax
push str.timestamp
push str.Client
setne byte [0x5e75a3]
call esi
push 0x5e87e8
push 0
test eax, eax
push str.timestamp_ms
push str.Client
setne byte [0x5e75a5]
call esi
push 0x5e87e8
push 1
test eax, eax
push str.log_chat
push str.Client
setne byte [0x5e75a6]
call esi
push 0x5e87e8
push 0
test eax, eax
push str.win7_fix
push str.Client
setne byte [0x5e75a7]
call esi
push 0x5e87e8
push 0x14
push 0x5e75ed
push str.0.0.0.0
test eax, eax
push str.adapter
push str.Client
setne byte [0x5e75a4]
call edi
push 0x5e87e8
push 0
push str.minimize
push str.Client
call esi
push 0x5e87e8
push 0x18
push 0x5e7562
push str.nick
test eax, eax
push str.nick
push str.Server
setne byte [0x5e75a9]
call edi
push 0x5e87e8
push 0x20
push 0x5e757a
push 0x4babef
push str.pass
push str.Server
call edi
push 0x5e87e8
push 0x14
push 0x5e75d9
push str.0.3.7
push str.clientversion
push str.Server
call edi
push 0x5e87e8
push 0
push str.ping
push str.Server
call esi
push 0x5e87e8
push 0
test eax, eax
push str.class
push str.Ingame
setne byte [0x5e75a8]
call esi
push 0x5e87e8
push 1
push str.update_stats
push str.Ingame
mov dword [0x5e759b], eax
call esi
push 0x5e87e8
push 0x14
test eax, eax
push str.min_fps
push str.Ingame
setne byte [0x5e75ac]
call esi
push 0x5e87e8
push 0x5a
push str.max_fps
push str.Ingame
mov dword [0x5e75ad], eax
call esi
push 0x5e87e8
push 0
push str.autopick
push str.Ingame
mov dword [0x5e75b1], eax
call esi
push 0x5e87e8
push 0
test eax, eax
push 0x4be988
push str.Ingame
setne byte [0x5e75ab]
call esi
push 0x5e87e8
push 0xf
test eax, eax
push str.sleep
push str.Rates
setne byte [0x5e75aa]
call esi
push 0x5e87e8
push 0x3e8
push str.connect
push str.Rates
mov dword [0x5e75b5], eax
call esi
push 0x5e87e8
push 0x3a98
push str.reconnect
push str.Rates
mov dword [0x5e75b9], eax
call esi
push 0x5e87e8
push 0x32
push str.network
push str.Rates
mov dword [0x5e75bd], eax
call esi
push 0x5e87e8
push 0x1f4
push str.spectate
push str.Rates
mov dword [0x5e75c1], eax
call esi
push 0x5e87e8
mov dword [0x5e75c9], eax
push 0x1f4
push str.onfoot
push str.Rates
call esi
push 0x5e87e8
push 0x1f4
push str.incar
push str.Rates
mov dword [0x5e75cd], eax
call esi
push 0x5e87e8
push 0x1770
push 0x4c020c
push str.Rates
mov dword [0x5e75d1], eax
call esi
push 0x5e87e8
push 0x32
push 0x4c0208
push str.Rates
mov dword [0x5e75d5], eax
call esi
push 0x5e87e8
push 1
push str.off_at_spawn
push str.Coord
mov dword [0x5e75c5], eax
call esi
push 0x5e87e8
push 0x12c
test eax, eax
push str.delay
push str.Coord
setne byte [0x5e764b]
call esi
push 0x5e87e8
push 0x200
mov dword [0x5e764c], eax
lea eax, [ebp - 0x288]
push eax
push 0x4c023c
push str.step
push str.Coord
call edi
lea ecx, [ebp - 0x288]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x18], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x460842
sub ecx, edx
lea eax, [ebp - 0x288]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.004050f0
mov dword [ebp - 4], 0
call fcn.0048289e
cmp dword [ebp - 0x18], 0x10
lea esi, [ebp - 0x2c]
mov ebx, eax
lea eax, [ebp - 0x14]
cmovae esi, dword [ebp - 0x2c]
push eax
push esi
mov dword [ebx], 0
call fcn.00489a09
add esp, 8
fstp dword [ebp - 0x10]
cmp esi, dword [ebp - 0x14]
je 0x460aee
cmp dword [ebx], 0x22
je 0x460af8
movss xmm0, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
movss dword [0x5e7650], xmm0
cmp ecx, 0x10
jb 0x4608e4
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4608da
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x460b02
push ecx
push edx
call fcn.00478b59
add esp, 8
mov eax, dword [0x4c02a0]
movq xmm0, qword [str.127.0.0:7777]
mov dword [0x5e7368], eax
mov al, byte [0x4c02a4]
push 0x5e87e8
mov byte [0x5e736c], al
mov eax, 0x1e61
push 0x200
mov word [0x5e7560], ax
lea eax, [ebp - 0x288]
push eax
push str.127.0.0.1:7777
push 0x4c0154
push str.Server
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
movq qword [0x5e7360], xmm0
call edi
sub esp, 0x18
lea ecx, [ebp - 0x288]
mov edx, esp
lea esi, [ecx + 1]
mov dword [edx], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x460970
sub ecx, esi
lea eax, [ebp - 0x288]
push ecx
push eax
mov ecx, edx
call fcn.004050f0
call fcn.00459b10
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
test al, al
je 0x460ad8
cmp al, 0x2d
je 0x4609ae
cmp al, 0x2f
jne case.0x4609c6.105
movsx eax, byte [esi + 1]
inc esi
add eax, 0xffffff98
cmp eax, 0x12
ja case.0x4609c6.105
movzx eax, byte [eax + 0x460b1c]
jmp dword [eax*4 + 0x460b08]
mov al, byte [esi + 1]
inc esi
mov edx, 0x5e7360
mov ecx, esi
cmp al, 0x20
jne 0x4609e8
nop dword [eax]
mov al, byte [ecx + 1]
inc ecx
cmp al, 0x20
je 0x4609e0
test al, al
je 0x460ac9
sub ecx, 0x5e7360
cmp al, 0x20
je 0x460ac9
cmp al, 0x2f
je 0x460ac9
mov byte [edx], al
inc edx
mov al, byte [ecx + edx]
test al, al
jne 0x4609f6
jmp 0x460ac9
mov al, byte [esi + 1]
lea edx, [ebp - 0x40]
inc esi
mov ecx, esi
cmp al, 0x20
jne 0x460a2a
mov al, byte [ecx + 1]
inc ecx
cmp al, 0x20
je 0x460a22
test al, al
je 0x460a45
lea edi, [ebp - 0x40]
sub ecx, edi
cmp al, 0x20
je 0x460a45
cmp al, 0x2f
je 0x460a45
mov byte [edx], al
inc edx
mov al, byte [ecx + edx]
test al, al
jne 0x460a33
lea eax, [ebp - 0x40]
mov byte [edx], 0
push eax
call fcn.0048a70a
add esp, 4
mov word [0x5e7560], ax
jmp case.0x4609c6.105
mov al, byte [esi + 1]
inc esi
mov edx, 0x5e7562
mov ecx, esi
cmp al, 0x20
jne 0x460a78
nop dword [eax + eax]
mov al, byte [ecx + 1]
inc ecx
cmp al, 0x20
je 0x460a70
test al, al
je 0x460ac9
sub ecx, 0x5e7562
cmp al, 0x20
je 0x460ac9
cmp al, 0x2f
je 0x460ac9
mov byte [edx], al
inc edx
mov al, byte [ecx + edx]
test al, al
jne 0x460a82
jmp 0x460ac9
mov al, byte [esi + 1]
inc esi
mov edx, 0x5e757a
mov ecx, esi
cmp al, 0x20
jne 0x460aad
mov al, byte [ecx + 1]
inc ecx
cmp al, 0x20
je 0x460aa5
test al, al
je 0x460ac9
sub ecx, 0x5e757a
cmp al, 0x20
je 0x460ac9
cmp al, 0x2f
je 0x460ac9
mov byte [edx], al
inc edx
mov al, byte [ecx + edx]
test al, al
jne 0x460ab7
mov byte [edx], 0
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4609a2
mov ecx, dword [ebp - 0xc]
mov eax, 1
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push str.invalid_stof_argument
call fcn.00460ca7
push str.stof_argument_out_of_range
call fcn.00460ce7
call fcn.004811da
nop
int 9
inc esi
add byte [edx + ecx + 0x46], bl
add byte [0x9600460a], dl
or al, byte [esi]
int3