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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48acbd
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x280
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push edi
push 0x104
push 0x5be530
push 0
call esi
push 0x5c
push 0x5be530
call fcn.00462a30
mov ecx, 0x5be530
add esp, 8
dec ecx
mov byte [eax + 1], 0
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x45eb61
mov eax, dword [str.scripts]
mov dword [ecx], eax
mov eax, dword [0x49dfe8]
push 0x5be530
mov dword [ecx + 4], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, 0xffffffff
je 0x45eb98
test al, 0x10
jne 0x45ec42
push 0x104
push 0x5be530
push 0
call esi
push 0x5c
push 0x5be530
call fcn.00462a30
mov ecx, 0x5be530
add esp, 8
dec ecx
mov byte [eax + 1], 0
nop
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x45ebc0
mov eax, dword [str.scripts]
mov dword [ecx], eax
mov eax, dword [0x49dfe8]
push 0
push 0x5be530
mov dword [ecx + 4], eax
call edi
push 0x104
push 0x5be530
push 0
call esi
push 0x5c
push 0x5be530
call fcn.00462a30
mov ecx, 0x5be530
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 0x45ec10
mov eax, dword [str.scriptslibs]
mov dword [ecx], eax
mov eax, dword [0x4a29f8]
mov dword [ecx + 4], eax
mov eax, dword [0x4a29fc]
mov dword [ecx + 8], eax
mov al, byte [0x4a2a00]
push 0
push 0x5be530
mov byte [ecx + 0xc], al
call edi
push 0x104
push 0x5be530
push 0
call esi
push 0x5c
push 0x5be530
call fcn.00462a30
mov ecx, 0x5be530
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 0x45ec70
mov eax, dword [str.settings]
mov dword [ecx], eax
mov eax, dword [0x4a2a2c]
mov dword [ecx + 4], eax
mov al, byte [0x4a2a30]
push 0x5be530
mov byte [ecx + 8], al
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x45eca5
test al, 0x10
jne 0x45ecfa
push 0x104
push 0x5be530
push 0
call esi
push 0x5c
push 0x5be530
call fcn.00462a30
mov ecx, 0x5be530
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 0x45ecd0
mov eax, dword [str.settings]
mov dword [ecx], eax
mov eax, dword [0x4a2a2c]
mov dword [ecx + 4], eax
mov al, byte [0x4a2a30]
push 0
push 0x5be530
mov byte [ecx + 8], al
call edi
push 0x104
push 0x5be530
push 0
call esi
push 0x5c
push 0x5be530
call fcn.00462a30
mov edi, 0x5be530
add esp, 8
dec edi
mov byte [eax + 1], 0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x45ed21
mov ecx, 6
lea eax, [ebp - 0x90]
mov esi, str.settingsRakSAMP_Lite.ini
rep movsd dword es:[edi], dword [esi]
push eax
push 0x5be530
movsw word es:[edi], word [esi]
call fcn.00471822
add esp, 8
test eax, eax
je 0x45ed6d
mov ecx, 0x5be530
call fcn.0045e8b0
push 0x40
push str.RakSAMP
push str.Config_file_created
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x5c]
push 0x5be530
push 0x14
push eax
push 0x4a2a64
push str.version
push str.Client
call edi
lea ecx, [ebp - 0x5c]
mov eax, str.04.02.23
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x45edb7
test dl, dl
je 0x45edb3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x45edb7
add eax, 2
add ecx, 2
test dl, dl
jne 0x45ed97
xor eax, eax
jmp 0x45edbc
sbb eax, eax
or eax, 1
test eax, eax
je 0x45ee03
push 0x4a1a68
push 0x5be530
call fcn.00469262
mov esi, eax
push 0x49d69b
push esi
call fcn.004561b0
push esi
call fcn.00470eaf
add esp, 0x14
mov ecx, 0x5be530
call fcn.0045e8b0
push 0x40
push str.RakSAMP
push str.Config_file_reset
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0x5be530
push 0
push str.console
push str.Client
call esi
push 0x5be530
push 1
test eax, eax
push str.color_tags
push str.Client
setne byte [0x5bd2fa]
call esi
push 0x5be530
push 1
test eax, eax
push str.timestamp
push str.Client
setne byte [0x5bd2ff]
call esi
push 0x5be530
push 0
test eax, eax
push str.timestamp_ms
push str.Client
setne byte [0x5bd301]
call esi
push 0x5be530
push 1
test eax, eax
push str.log_chat
push str.Client
setne byte [0x5bd302]
call esi
push 0x5be530
push 0
test eax, eax
push str.win7_fix
push str.Client
setne byte [0x5bd303]
call esi
push 0x5be530
push 0x14
push 0x5bd349
push str.0.0.0.0
test eax, eax
push str.adapter
push str.Client
setne byte [0x5bd300]
call edi
push 0x5be530
push 0
push str.minimize
push str.Client
call esi
push 0x5be530
push 0x18
push 0x5bd2c2
push str.nick
test eax, eax
push str.nick
push str.Server
setne byte [0x5bd305]
call edi
push 0x5be530
push 0x20
push 0x5bd2da
push 0x49d69b
push str.pass
push str.Server
call edi
push 0x5be530
push 0x14
push 0x5bd335
push str.0.3.7
push str.clientversion
push str.Server
call edi
push 0x5be530
push 0
push str.ping
push str.Server
call esi
push 0x5be530
push 0
test eax, eax
push str.class
push str.Ingame
setne byte [0x5bd304]
call esi
push 0x5be530
push 1
push str.update_stats
push str.Ingame
mov dword [0x5bd2fb], eax
call esi
push 0x5be530
push 0x14
test eax, eax
push str.min_fps
push str.Ingame
setne byte [0x5bd308]
call esi
push 0x5be530
push 0x5a
push str.max_fps
push str.Ingame
mov dword [0x5bd309], eax
call esi
push 0x5be530
push 0
push str.autopick
push str.Ingame
mov dword [0x5bd30d], eax
call esi
push 0x5be530
push 0
test eax, eax
push 0x4a1220
push str.Ingame
setne byte [0x5bd307]
call esi
push 0x5be530
push 0xf
test eax, eax
push str.sleep
push str.Rates
setne byte [0x5bd306]
call esi
push 0x5be530
push 0x3e8
push str.connect
push str.Rates
mov dword [0x5bd311], eax
call esi
push 0x5be530
push 0x3a98
push str.reconnect
push str.Rates
mov dword [0x5bd315], eax
call esi
push 0x5be530
push 0x32
push str.network
push str.Rates
mov dword [0x5bd319], eax
call esi
push 0x5be530
push 0x1f4
push str.spectate
push str.Rates
mov dword [0x5bd31d], eax
call esi
push 0x5be530
push 0x1f4
push str.onfoot
push str.Rates
mov dword [0x5bd325], eax
call esi
push 0x5be530
mov dword [0x5bd329], eax
push 0x1f4
push str.incar
push str.Rates
call esi
push 0x5be530
push 0x1770
push 0x4a29bc
push str.Rates
mov dword [0x5bd32d], eax
call esi
push 0x5be530
push 0x32
push 0x4a29d8
push str.Rates
mov dword [0x5bd331], eax
call esi
push 0x5be530
push 1
push str.off_at_spawn
push str.Coord
mov dword [0x5bd321], eax
call esi
push 0x5be530
push 0x12c
test eax, eax
push str.delay
push str.Coord
setne byte [0x5bd3aa]
call esi
push 0x5be530
push 0x200
mov dword [0x5bd3ab], eax
lea eax, [ebp - 0x290]
push eax
push 0x4a29e8
push str.step
push str.Coord
call edi
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x290]
mov dword [ebp - 0x20], 0
movups xmmword [ebp - 0x34], xmm0
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45f160
sub ecx, edx
lea eax, [ebp - 0x290]
push ecx
push eax
lea ecx, [ebp - 0x34]
call fcn.00404fb0
mov dword [ebp - 4], 0
call fcn.00469e6d
cmp dword [ebp - 0x20], 0x10
lea esi, [ebp - 0x34]
mov dword [ebp - 0x1c], eax
cmovae esi, dword [ebp - 0x34]
mov dword [eax], 0
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.00470ba5
add esp, 8
fstp dword [ebp - 0x14]
cmp esi, dword [ebp - 0x18]
je 0x45f410
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0x22
je 0x45f41a
movss xmm0, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x20]
movss dword [0x5bd3af], xmm0
cmp ecx, 0x10
jb 0x45f206
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x45f1fc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45f424
push ecx
push edx
call fcn.00461132
add esp, 8
mov eax, dword [0x4a2a84]
movq xmm0, qword [str.127.0.0:7777]
mov dword [0x5bd0c8], eax
mov al, byte [0x4a2a88]
push 0x5be530
mov byte [0x5bd0cc], al
mov eax, 0x1e61
push 0x200
mov word [0x5bd2c0], ax
lea eax, [ebp - 0x290]
push eax
push str.127.0.0.1:7777
push 0x4a2908
push str.Server
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
movq qword [0x5bd0c0], xmm0
call edi
sub esp, 0x18
lea ecx, [ebp - 0x290]
mov edx, esp
lea esi, [ecx + 1]
xorps xmm0, xmm0
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45f290
sub ecx, esi
lea eax, [ebp - 0x290]
push ecx
push eax
mov ecx, edx
call fcn.00404fb0
call fcn.00458910
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
test al, al
je 0x45f3f8
cmp al, 0x2d
je 0x45f2ce
cmp al, 0x2f
jne case.0x45f2e6.105
movsx eax, byte [esi + 1]
inc esi
add eax, 0xffffff98
cmp eax, 0x12
ja case.0x45f2e6.105
movzx eax, byte [eax + 0x45f440]
jmp dword [eax*4 + 0x45f42c]
mov al, byte [esi + 1]
inc esi
mov edx, 0x5bd0c0
mov ecx, esi
cmp al, 0x20
jne 0x45f308
nop dword [eax]
mov al, byte [ecx + 1]
inc ecx
cmp al, 0x20
je 0x45f300
test al, al
je 0x45f3e9
sub ecx, 0x5bd0c0
cmp al, 0x20
je 0x45f3e9
cmp al, 0x2f
je 0x45f3e9
mov byte [edx], al
inc edx
mov al, byte [ecx + edx]
test al, al
jne 0x45f316
jmp 0x45f3e9
mov al, byte [esi + 1]
lea edx, [ebp - 0x48]
inc esi
mov ecx, esi
cmp al, 0x20
jne 0x45f34a
mov al, byte [ecx + 1]
inc ecx
cmp al, 0x20
je 0x45f342
test al, al
je 0x45f365
lea edi, [ebp - 0x48]
sub ecx, edi
cmp al, 0x20
je 0x45f365
cmp al, 0x2f
je 0x45f365
mov byte [edx], al
inc edx
mov al, byte [ecx + edx]
test al, al
jne 0x45f353
lea eax, [ebp - 0x48]
mov byte [edx], 0
push eax
call fcn.0046afb9
add esp, 4
mov word [0x5bd2c0], ax
jmp case.0x45f2e6.105
mov al, byte [esi + 1]
inc esi
mov edx, 0x5bd2c2
mov ecx, esi
cmp al, 0x20
jne 0x45f398
nop dword [eax + eax]
mov al, byte [ecx + 1]
inc ecx
cmp al, 0x20
je 0x45f390
test al, al
je 0x45f3e9
sub ecx, 0x5bd2c2
cmp al, 0x20
je 0x45f3e9
cmp al, 0x2f
je 0x45f3e9
mov byte [edx], al
inc edx
mov al, byte [ecx + edx]
test al, al
jne 0x45f3a2
jmp 0x45f3e9
mov al, byte [esi + 1]
inc esi
mov edx, 0x5bd2da
mov ecx, esi
cmp al, 0x20
jne 0x45f3cd
mov al, byte [ecx + 1]
inc ecx
cmp al, 0x20
je 0x45f3c5
test al, al
je 0x45f3e9
sub ecx, 0x5bd2da
cmp al, 0x20
je 0x45f3e9
cmp al, 0x2f
je 0x45f3e9
mov byte [edx], al
inc edx
mov al, byte [ecx + edx]
test al, al
jne 0x45f3d7
mov byte [edx], 0
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x45f2c2
mov ecx, dword [ebp - 0xc]
mov eax, 1
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push str.invalid_stof_argument
call fcn.0045f5ba
push str.stof_argument_out_of_range
call fcn.0045f5fa
call fcn.00468948
nop dword [eax]
in eax, dx
inc ebp
add byte [ebx + esi*8 + 0x45], bh
add byte [0xb60045f3], dh
inc ebp
add ah, ch
inc ebp
add byte [eax], al
add al, 4
add al, 4
add al, 1
add al, 2
add al, 4
add al, 4
add al, 4
add al, 4
add al, 3
int3