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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov esi, 0x50b1d8
push str.RakSAMPClient.xml
mov ecx, esi
call fcn.00413561
test al, al
jne 0x41d97c
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.004123ad
mov edi, eax
cmp edi, ebx
je 0x41deaa
push 0x4e2f40
push str.console
mov ecx, edi
call fcn.00412b04
push 0x4e2f44
push str.runmode
mov ecx, edi
call fcn.00412b04
push 0x4e2f48
push str.autorun
mov ecx, edi
call fcn.00412b04
push 0x4e2f4c
push str.find
mov ecx, edi
call fcn.00412b04
push 0x4e2f50
push str.select_classid
mov ecx, edi
call fcn.00412b04
push 0x4e2f54
push str.manual_spawn
mov ecx, edi
call fcn.00412b04
push 0x4e2f58
push str.print_timestamps
mov ecx, edi
call fcn.00412b04
push 0x4e2f5c
push str.updatestats
mov ecx, edi
call fcn.00412b04
push 0x4e2f60
push str.minfps
mov ecx, edi
call fcn.00412b04
push 0x4e2f64
push str.maxfps
mov ecx, edi
call fcn.00412b04
push str.clientversion
mov ecx, edi
call fcn.00412ae7
mov edx, 0x4e2f68
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x41da4d
push 0x4e2f7c
push str.netgameversion
mov ecx, edi
call fcn.00412b04
push 0x4e2fb4
push 0x4e2fb3
push 0x4e2fb2
push str.chatcolor_rgb
mov ecx, edi
call fcn.00412b67
push 0x4e2fb7
push 0x4e2fb6
push 0x4e2fb5
push str.clientmsg_rgb
mov ecx, edi
call fcn.00412b67
push 0x4e2fba
push 0x4e2fb9
push 0x4e2fb8
push str.cpalert_rgb
mov ecx, edi
call fcn.00412b67
push str.followplayer
mov ecx, edi
call fcn.00412ae7
mov edx, 0x4e2fbb
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x41daca
push 0x4e2fcf
push str.followplayerwithvehicleid
mov ecx, edi
call fcn.00412b04
push 0x4e2fd3
push str.followXOffset
mov ecx, edi
call fcn.0041d920
push 0x4e2fd7
push str.followYOffset
mov ecx, edi
call fcn.0041d920
push 0x4e2fdb
push str.followZOffset
mov ecx, edi
call fcn.0041d920
push str.server
mov ecx, edi
call fcn.004123ad
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x41dbaf
mov ecx, eax
call fcn.00412479
mov ebx, eax
test ebx, ebx
je 0x41dbaf
cmp byte [ebx], 0
mov esi, ebx
je 0x41db5c
cmp byte [esi], 0x3a
jne 0x41db56
mov byte [esi], 0
inc esi
push esi
call fcn.00420374
pop ecx
mov dword [ebp - 8], eax
inc esi
cmp byte [esi], 0
jne 0x41db43
mov edx, 0x4e2be0
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41db65
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
push str.nickname
mov dword [0x4e2ce0], eax
call fcn.00412ae7
mov edx, 0x4e2ce4
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x41db89
mov ecx, dword [ebp - 4]
push str.password
call fcn.00412ae7
mov edx, 0x4e2cf8
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x41dba5
push str.intervals
mov ecx, edi
call fcn.004123ad
mov esi, eax
test esi, esi
je 0x41dc38
push 0x4e2f86
push str.spam
mov ecx, esi
call fcn.00412b04
push 0x4e2f8a
push str.fakekill
mov ecx, esi
call fcn.00412b04
push 0x4e2f8e
push 0x435f58
mov ecx, esi
call fcn.00412b04
push 0x4e2f92
push str.joinflood
mov ecx, esi
call fcn.00412b04
push 0x4e2f96
push str.chatflood
mov ecx, esi
call fcn.00412b04
push 0x4e2f9a
push str.classflood
mov ecx, esi
call fcn.00412b04
push 0x4e2f9e
push str.bulletflood
mov ecx, esi
call fcn.00412b04
push 0x435dc0
mov ecx, edi
call fcn.004123ad
mov esi, eax
test esi, esi
je 0x41dc8e
push 0x4e2fa2
push str.objects
mov ecx, esi
call fcn.00412b04
push 0x4e2fa6
push str.pickups
mov ecx, esi
call fcn.00412b04
push 0x4e2faa
push str.textlabels
mov ecx, esi
call fcn.00412b04
push 0x4e2fae
push str.textdraws
mov ecx, esi
call fcn.00412b04
push str.sendrates
mov ecx, edi
call fcn.004123ad
mov esi, eax
mov ebx, str.force
test esi, esi
je 0x41dcf6
push 0x50b1d0
push ebx
mov ecx, esi
call fcn.00412b04
push 0x4e25c4
push str.onfoot
mov ecx, esi
call fcn.00412b04
push 0x4e2b9c
push str.incar
mov ecx, esi
call fcn.00412b04
push 0x4e26fc
push str.firing
mov ecx, esi
call fcn.00412b04
push 0x4e2700
push str.multiplier
mov ecx, esi
call fcn.00412b04
push str.normal_pos
mov ecx, edi
call fcn.004123ad
mov esi, eax
test esi, esi
je 0x41dd37
push 0x4e2fdf
push str.position
mov ecx, esi
call fcn.00412b46
push 0x4e2feb
push str.rotation
mov ecx, esi
call fcn.0041d920
push 0x4e2fef
push ebx
mov ecx, esi
call fcn.00412b04
push str.autorun
mov ecx, edi
call fcn.004123ad
mov ebx, eax
test ebx, ebx
je 0x41dd88
mov esi, 0x4e3016
test ebx, ebx
je 0x41dd88
mov ecx, ebx
mov dword [esi - 4], 1
call fcn.00412479
mov edx, esi
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x41dd62
push str.autorun
mov ecx, ebx
call fcn.004123e0
add esi, 0x204
cmp esi, 0x4e7096
mov ebx, eax
jl 0x41dd4e
push str.find
mov ecx, edi
call fcn.004123ad
mov ebx, eax
test ebx, ebx
je 0x41de48
mov esi, 0x4e7096
test ebx, ebx
je 0x41de48
push str.text
mov ecx, ebx
mov dword [esi - 4], 1
call fcn.00412ae7
mov edx, esi
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x41ddc0
push 0x437480
mov ecx, ebx
call fcn.00412ae7
lea edx, [esi + 0x200]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x41dddc
lea eax, [esi + 0x402]
push eax
lea eax, [esi + 0x401]
push eax
lea eax, [esi + 0x400]
push eax
push str.bk_color
mov ecx, ebx
call fcn.00412b67
lea eax, [esi + 0x405]
push eax
lea eax, [esi + 0x404]
push eax
lea eax, [esi + 0x403]
push eax
push str.text_color
mov ecx, ebx
call fcn.00412b67
push str.find
mov ecx, ebx
call fcn.004123e0
add esi, 0x40a
cmp esi, 0x507596
mov ebx, eax
jl 0x41dda3
mov ebx, str.teleport
push ebx
mov ecx, edi
call fcn.004123ad
mov edi, eax
test edi, edi
je 0x41dea5
mov esi, 0x5075a9
test edi, edi
je 0x41dea5
push str.name
mov ecx, edi
mov byte [esi - 1], 1
call fcn.00412ae7
mov edx, esi
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x41de76
lea eax, [esi + 0x40]
push eax
push str.position
mov ecx, edi
call fcn.00412b46
push ebx
mov ecx, edi
call fcn.004123e0
add esi, 0x4d
cmp esi, 0x50b1d1
mov edi, eax
jl 0x41de60
mov esi, 0x50b1d8
mov ecx, esi
call fcn.00412308
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
jmp 0x41df15
cmp al, 0x2d
je 0x41dec3
cmp al, 0x2f
jne 0x41df14
inc esi
movsx eax, byte [esi]
sub eax, 0x68
je 0x41df06
sub eax, 6
je 0x41deff
dec eax
dec eax
je 0x41dee1
sub eax, 0xa
jne 0x41df14
push 0x4e2cf8
jmp 0x41df0b
lea eax, [ebp - 0x1c]
push eax
inc esi
push esi
call fcn.00417cee
lea eax, [ebp - 0x1c]
push eax
call fcn.00420374
add esp, 0xc
mov dword [0x4e2ce0], eax
jmp 0x41df14
push 0x4e2ce4
jmp 0x41df0b
push 0x4e2be0
inc esi
push esi
call fcn.00417cee
pop ecx
pop ecx
inc esi
mov al, byte [esi]
test al, al
jne 0x41debb
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret