Function at 0x41ec45
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
sub esp, 0x1c
push ebx
push esi
xor ebx, ebx
mov esi, 0x515af8
push ebx
push str.RakSAMPClient.xml
mov ecx, esi
call fcn.004142ab
test al, al
jne 0x41ec7c
push 0x10
push str.Error
push str.Failed_to_load_the_config_file
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.RakSAMPClient
mov ecx, esi
call fcn.004140ff
mov esi, eax
test esi, esi
je 0x41f206
push 0x4ed860
push str.console
mov ecx, esi
call fcn.0041498c
push 0x4ed864
push str.runmode
mov ecx, esi
call fcn.0041498c
push 0x4ed868
push str.autorun
mov ecx, esi
call fcn.0041498c
push 0x4ed86c
push str.find
mov ecx, esi
call fcn.0041498c
push 0x4ed870
push str.select_classid
mov ecx, esi
call fcn.0041498c
push 0x4ed874
push str.manual_spawn
mov ecx, esi
call fcn.0041498c
push 0x4ed878
push str.print_timestamps
mov ecx, esi
call fcn.0041498c
push 0x4ed87c
push str.updatestats
mov ecx, esi
call fcn.0041498c
push 0x4ed880
push str.minfps
mov ecx, esi
call fcn.0041498c
push 0x4ed884
push str.maxfps
mov ecx, esi
call fcn.0041498c
push str.clientversion
mov ecx, esi
call fcn.00413b82
mov edx, 0x4ed888
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41ed4f
push 0x4ed89c
push 0x43a528
mov ecx, esi
call fcn.0041498c
push 0x4ed8d4
push 0x4ed8d3
push 0x4ed8d2
push str.chatcolor_rgb
mov ecx, esi
call fcn.004148f2
push 0x4ed8d7
push 0x4ed8d6
push 0x4ed8d5
push str.clientmsg_rgb
mov ecx, esi
call fcn.004148f2
push 0x4ed8da
push 0x4ed8d9
push 0x4ed8d8
push str.cpalert_rgb
mov ecx, esi
call fcn.004148f2
push str.followplayer
mov ecx, esi
call fcn.00413b82
mov edx, 0x4ed8db
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41edce
push 0x4ed8ef
push str.followplayerwithvehicleid
mov ecx, esi
call fcn.0041498c
lea eax, [esp + 8]
mov ecx, esi
push eax
push str.followXOffset
call fcn.00414948
test eax, eax
jne 0x41ee10
movsd xmm0, qword [esp + 8]
cvtpd2ps xmm0, xmm0
movss dword [0x4ed8f3], xmm0
lea eax, [esp + 8]
mov ecx, esi
push eax
push str.followYOffset
call fcn.00414948
test eax, eax
jne 0x41ee37
movsd xmm0, qword [esp + 8]
cvtpd2ps xmm0, xmm0
movss dword [0x4ed8f7], xmm0
lea eax, [esp + 8]
mov ecx, esi
push eax
push str.followZOffset
call fcn.00414948
test eax, eax
jne 0x41ee5e
movsd xmm0, qword [esp + 8]
cvtpd2ps xmm0, xmm0
movss dword [0x4ed8fb], xmm0
push ebp
push edi
push str.server
mov ecx, esi
call fcn.004140ff
mov ebp, eax
test ebp, ebp
je 0x41eef7
mov ecx, ebp
call fcn.00414155
mov ebx, eax
test ebx, ebx
je 0x41eef7
cmp byte [ebx], 0
mov edi, ebx
mov edx, dword [esp + 0x10]
je 0x41eea6
cmp byte [edi], 0x3a
jne 0x41eea0
mov byte [edi], 0
inc edi
push edi
call fcn.00423b9c
pop ecx
mov edx, eax
inc edi
cmp byte [edi], 0
jne 0x41ee8e
mov ecx, 0x4ed500
sub ecx, ebx
mov al, byte [ebx]
mov byte [ecx + ebx], al
inc ebx
test al, al
jne 0x41eead
push str.nickname
mov ecx, ebp
mov dword [0x4ed600], edx
call fcn.00413b82
mov edx, 0x4ed604
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41eed0
push str.password
mov ecx, ebp
call fcn.00413b82
mov edx, 0x4ed618
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41eeed
push str.intervals
mov ecx, esi
call fcn.004140ff
mov edi, eax
test edi, edi
je 0x41ef80
push 0x4ed8a6
push str.spam
mov ecx, edi
call fcn.0041498c
push 0x4ed8aa
push str.fakekill
mov ecx, edi
call fcn.0041498c
push 0x4ed8ae
push 0x439180
mov ecx, edi
call fcn.0041498c
push 0x4ed8b2
push str.joinflood
mov ecx, edi
call fcn.0041498c
push 0x4ed8b6
push str.chatflood
mov ecx, edi
call fcn.0041498c
push 0x4ed8ba
push str.classflood
mov ecx, edi
call fcn.0041498c
push 0x4ed8be
push str.bulletflood
mov ecx, edi
call fcn.0041498c
push 0x4397a0
mov ecx, esi
call fcn.004140ff
mov edi, eax
test edi, edi
je 0x41efd6
push 0x4ed8c2
push str.objects
mov ecx, edi
call fcn.0041498c
push 0x4ed8c6
push str.pickups
mov ecx, edi
call fcn.0041498c
push 0x4ed8ca
push str.textlabels
mov ecx, edi
call fcn.0041498c
push 0x4ed8ce
push str.textdraws
mov ecx, edi
call fcn.0041498c
push str.sendrates
mov ecx, esi
call fcn.004140ff
mov edi, eax
mov ebx, str.force
test edi, edi
je 0x41f03e
push 0x515af0
push ebx
mov ecx, edi
call fcn.0041498c
push 0x4ecfa4
push str.onfoot
mov ecx, edi
call fcn.0041498c
push 0x4ecfa8
push str.incar
mov ecx, edi
call fcn.0041498c
push 0x4ecfac
push str.firing
mov ecx, edi
call fcn.0041498c
push 0x4ecfb0
push str.multiplier
mov ecx, edi
call fcn.0041498c
push str.normal_pos
mov ecx, esi
call fcn.004140ff
mov edi, eax
test edi, edi
je 0x41f095
push 0x4ed8ff
push str.position
mov ecx, edi
call fcn.004149d0
lea eax, [esp + 0x10]
mov ecx, edi
push eax
push str.rotation
call fcn.00414948
test eax, eax
jne 0x41f088
movsd xmm0, qword [esp + 0x10]
cvtpd2ps xmm0, xmm0
movss dword [0x4ed90b], xmm0
push 0x4ed90f
push ebx
mov ecx, edi
call fcn.0041498c
push str.autorun
mov ecx, esi
call fcn.004140ff
mov ebx, eax
mov edi, 0x4f19b6
test ebx, ebx
je 0x41f0e9
mov ebp, 0x4ed936
test ebx, ebx
je 0x41f0e9
mov ecx, ebx
mov dword [ebp - 4], 1
call fcn.00414155
mov edx, ebp
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41f0c7
push str.autorun
mov ecx, ebx
call fcn.0041439b
add ebp, 0x204
mov ebx, eax
cmp ebp, edi
jl 0x41f0b1
mov ebp, str.find
mov ecx, esi
push ebp
call fcn.004140ff
mov ebx, eax
test ebx, ebx
je 0x41f1a5
test ebx, ebx
je 0x41f1a5
push str.text
mov ecx, ebx
mov dword [edi - 4], 1
call fcn.00413b82
mov edx, edi
sub edx, eax
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x41f11f
push 0x43a644
mov ecx, ebx
call fcn.00413b82
mov edx, edi
sub edx, eax
mov cl, byte [eax]
mov byte [eax + edx + 0x200], cl
inc eax
test cl, cl
jne 0x41f139
lea eax, [edi + 0x402]
mov ecx, ebx
push eax
lea eax, [edi + 0x401]
push eax
lea eax, [edi + 0x400]
push eax
push str.bk_color
call fcn.004148f2
lea eax, [edi + 0x405]
mov ecx, ebx
push eax
lea eax, [edi + 0x404]
push eax
lea eax, [edi + 0x403]
push eax
push str.text_color
call fcn.004148f2
push ebp
mov ecx, ebx
call fcn.0041439b
add edi, 0x40a
mov ebx, eax
cmp edi, 0x511eb6
jl 0x41f100
mov ebx, str.teleport
mov ecx, esi
push ebx
call fcn.004140ff
mov esi, eax
test esi, esi
je 0x41f204
mov edi, 0x511ec9
test esi, esi
je 0x41f204
push str.name
mov ecx, esi
mov byte [edi - 1], 1
call fcn.00413b82
mov edx, edi
sub edx, eax
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x41f1d5
lea eax, [edi + 0x40]
mov ecx, esi
push eax
push str.position
call fcn.004149d0
push ebx
mov ecx, esi
call fcn.0041439b
add edi, 0x4d
mov esi, eax
cmp edi, 0x515af1
jl 0x41f1bd
pop edi
pop ebp
mov ecx, 0x515af8
call fcn.00413b9f
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
jmp 0x41f276
cmp al, 0x2d
je 0x41f222
cmp al, 0x2f
jne 0x41f275
inc esi
movsx eax, byte [esi]
sub eax, 0x68
je 0x41f267
sub eax, 6
je 0x41f260
dec eax
dec eax
je 0x41f240
sub eax, 0xa
jne 0x41f275
push 0x4ed618
jmp 0x41f26c
lea eax, [esp + 0x10]
inc esi
push eax
push esi
call fcn.00419893
lea eax, [esp + 0x18]
push eax
call fcn.00423b9c
add esp, 0xc
mov dword [0x4ed600], eax
jmp 0x41f275
push 0x4ed604
jmp 0x41f26c
push 0x4ed500
inc esi
push esi
call fcn.00419893
pop ecx
pop ecx
inc esi
mov al, byte [esi]
test al, al
jne 0x41f21a
xor eax, eax
pop esi
inc eax
pop ebx
add esp, 0x1c
ret