Function at 0x404b10
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428a76
mov eax, dword fs:[0]
push eax
mov eax, 0x1f45c
call fcn.00405600
mov eax, dword [0x4354c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1f460], eax
mov edi, dword [eax]
lea ecx, [edi + 1]
nop
mov al, byte [edi]
inc edi
test al, al
jne 0x404b50
sub edi, ecx
lea esi, [edi + 1]
mov eax, esi
call fcn.004055b0
mov eax, dword [ebp - 0x1f460]
mov dword [ebp - 0x1f464], esp
push esi
mov esi, dword [ebp - 0x1f464]
push dword [eax]
push esi
call fcn.0040c680
add esp, 0xc
xor eax, eax
test edi, edi
jle 0x404b96
cmp byte [eax + esi], 0x5c
jne 0x404b91
mov byte [eax + esi], 0x2f
inc eax
cmp eax, edi
jl 0x404b87
xorps xmm0, xmm0
mov dword [ebp - 0x1f430], 0
movups xmmword [ebp - 0x1f440], xmm0
mov dword [ebp - 0x1f42c], 0xf
mov byte [ebp - 0x1f440], 0
movups xmmword [ebp - 0x1f458], xmm0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1f448], 0
mov dword [ebp - 0x1f444], 0xf
mov byte [ebp - 0x1f458], 0
push 0x2f
push esi
mov byte [ebp - 4], 1
call fcn.00408710
add esp, 8
mov dword [ebp - 0x1f418], 0
mov dword [ebp - 0x1f414], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x1f428], xmm0
test eax, eax
je 0x404ce0
mov byte [eax], 0
mov edi, 0x42975e
add eax, 1
mov edx, edi
cmovne edx, eax
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x1f468], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404c34
sub ecx, dword [ebp - 0x1f468]
push ecx
push edx
lea ecx, [ebp - 0x1f428]
call fcn.00401480
mov ecx, dword [ebp - 0x1f42c]
cmp ecx, 0xf
jbe 0x404c88
mov edx, dword [ebp - 0x1f440]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404c7e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4050f9
push ecx
push edx
call fcn.00405191
add esp, 8
movups xmm0, xmmword [ebp - 0x1f428]
test esi, esi
movups xmmword [ebp - 0x1f440], xmm0
cmovne edi, esi
movq xmm0, qword [ebp - 0x1f418]
mov ecx, edi
movq qword [ebp - 0x1f430], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x1f428], xmm0
mov dword [ebp - 0x1f418], 0
mov dword [ebp - 0x1f414], 0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404cd0
sub ecx, edx
push ecx
push edi
jmp 0x404d83
test esi, esi
mov edx, 0x42975e
cmovne edx, esi
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404cf0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x1f428]
call fcn.00401480
mov ecx, dword [ebp - 0x1f42c]
cmp ecx, 0xf
jbe 0x404d40
mov edx, dword [ebp - 0x1f440]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404d36
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4050f9
push ecx
push edx
call fcn.00405191
add esp, 8
movups xmm0, xmmword [ebp - 0x1f428]
push 0
push 0x42975e
movups xmmword [ebp - 0x1f440], xmm0
movq xmm0, qword [ebp - 0x1f418]
movq qword [ebp - 0x1f430], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x1f428], xmm0
mov dword [ebp - 0x1f418], 0
mov dword [ebp - 0x1f414], 0
lea ecx, [ebp - 0x1f428]
call fcn.00401480
movups xmm0, xmmword [ebp - 0x1f428]
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0x1f460]
movups xmmword [ebp - 0x1f458], xmm0
movq xmm0, qword [ebp - 0x1f418]
movq qword [ebp - 0x1f448], xmm0
cmp esi, 1
jle 0x404f3b
mov eax, dword [edi + 4]
mov edx, 0x429964
mov cl, byte [eax]
cmp cl, byte [edx]
mov byte [ebp - 0x1f459], cl
mov ecx, dword [edi + 4]
jne 0x404e02
cmp byte [ebp - 0x1f459], 0
je 0x404dfe
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
mov byte [ebp - 0x1f459], cl
mov ecx, dword [edi + 4]
jne 0x404e02
add eax, 2
add edx, 2
cmp byte [ebp - 0x1f459], 0
jne 0x404dc6
xor eax, eax
jmp 0x404e07
sbb eax, eax
or eax, 1
test eax, eax
je 0x404e8d
mov edx, str.__help
mov eax, ecx
mov cl, byte [eax]
cmp cl, byte [edx]
mov byte [ebp - 0x1f459], cl
mov ecx, dword [edi + 4]
jne 0x404e52
cmp byte [ebp - 0x1f459], 0
je 0x404e4e
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
mov byte [ebp - 0x1f459], cl
mov ecx, dword [edi + 4]
jne 0x404e52
add eax, 2
add edx, 2
cmp byte [ebp - 0x1f459], 0
jne 0x404e16
xor eax, eax
jmp 0x404e57
sbb eax, eax
or eax, 1
test eax, eax
je 0x404e8d
mov eax, 0x429970
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x404e80
test dl, dl
je 0x404e7c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x404e80
add ecx, 2
add eax, 2
test dl, dl
jne 0x404e60
xor eax, eax
jmp 0x404e85
sbb eax, eax
or eax, 1
test eax, eax
jne 0x404f3b
cmp dword [ebp - 0x1f42c], 0xf
lea eax, [ebp - 0x1f440]
cmova eax, dword [ebp - 0x1f440]
push eax
push str.Usage:__s__OPTION__n_n
call fcn.00405100
push str.___v___________________Shows_the_program_version_n
call fcn.00405100
push str.___s___________________Run_server_in_silent_mode_n
call fcn.00405100
push str.___t___________________Run_server_with_a_simple_console_n
call fcn.00405100
push str.___f___________________Run_server_with_a_standard_console__Default__n
call fcn.00405100
push str.___n___________________Disable_the_usage_of_ncurses__For_screenlog__n
call fcn.00405100
push str.___u___________________Disable_output_buffering_and_flush_instantly__useful_for_screenlog__n
call fcn.00405100
push str.___D__PATH_____________Use_as_base_directory_n
call fcn.00405100
push str.____config__FILE_______Alternate_mtaserver.conf_file_n
call fcn.00405100
push str.____ip__ADDR___________Set_IP_address_n
call fcn.00405100
push str.____port__PORT_________Set_port_n
call fcn.00405100
push str.____httpport__PORT_____Set_http_port_n
call fcn.00405100
push str.____maxplayers__max____Set_maxplayers_n
call fcn.00405100
push str.____novoice____________Disable_voice_communication_n
call fcn.00405100
add esp, 0x3c
mov esi, 1
jmp 0x40506a
push 3
push 1
push 5
call fcn.00402ec0
add esp, 0xc
test al, al
jne 0x404f78
push str.This_version_of_MTA_requires_Windows_XP_SP3_or_later_n
call fcn.00405100
push str.Press_enter_to_continue..._n
call fcn.00405100
add esp, 8
mov ecx, 0x436ad8
call fcn.00403e00
mov esi, 1
jmp 0x40506a
push 0x429ca8
push str.core.dll
call fcn.00402ab0
add esp, 8
test eax, eax
jne 0x404fbe
push 0xfa00
lea eax, [ebp - 0x1f410]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x1f410]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x1f410]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
jmp 0x404fc7
push eax
call fcn.0041221d
add esp, 4
lea ecx, [ebp - 0x1f464]
call fcn.00401310
push str.core.dll
lea ecx, [ebp - 0x1f464]
mov byte [ebp - 4], 2
call fcn.00401360
test al, al
je 0x40501d
push 0x429cb8
lea ecx, [ebp - 0x1f464]
call fcn.00401340
test eax, eax
je 0x405009
push edi
push esi
call eax
add esp, 8
mov esi, eax
jmp 0x40505f
push str.core.dll
push str.ERROR:_Bad_file:__s_n
call fcn.00405100
add esp, 8
jmp 0x405043
push str.core.dll
push str.ERROR:_Could_not_load__s_n
call fcn.00405100
push str._Check_installed_data_files._n
call fcn.00405100
push str._Check_installed_Microsoft_Visual_C_Redistributable_Package__x86_._n
call fcn.00405100
add esp, 0x10
push str.Press_enter_to_continue..._n
call fcn.00405100
add esp, 4
mov ecx, 0x436ad8
call fcn.00403e00
mov esi, 1
lea ecx, [ebp - 0x1f464]
call fcn.00401320
mov ecx, dword [ebp - 0x1f444]
cmp ecx, 0xf
jbe 0x4050a0
mov edx, dword [ebp - 0x1f458]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405096
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4050f9
push ecx
push edx
call fcn.00405191
add esp, 8
mov ecx, dword [ebp - 0x1f42c]
cmp ecx, 0xf
jbe 0x4050d6
mov edx, dword [ebp - 0x1f440]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4050cc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4050f9
push ecx
push edx
call fcn.00405191
add esp, 8
mov eax, esi
lea esp, [ebp - 0x1f474]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004054aa
mov esp, ebp
pop ebp
ret
call fcn.0040c45f
int3