Function at 0x409940
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x47ebc7
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x4b445c]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b445c]
xor eax, esp
push eax
lea eax, [esp + 0x148]
mov dword fs:[0], eax
mov edi, dword [esp + 0x158]
call fcn.0044b354
mov eax, dword [eax + 4]
mov esi, dword [eax + 0x48]
xor ebx, ebx
mov eax, esi
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4099a4
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x2c]
call fcn.004097e0
mov dword [esp + 0x150], ebx
push 0x48a0f8
lea ecx, [esp + 0x1c]
call fcn.00407010
mov byte [esp + 0x150], 1
push str.FromInstallClient
lea ecx, [esp + 0x20]
call fcn.00407010
mov byte [esp + 0x150], 2
mov eax, dword [esp + 0x28]
mov ebp, 0x10
cmp dword [esp + 0x3c], ebp
jae 0x409a00
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
call fcn.00407010
mov byte [esp + 0x150], 3
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
cmp eax, ebx
jne 0x409a80
cmp edi, ebx
je 0x409a2f
push str.DownloadConfigFile__sCommandLine_is_empty_return.
push edi
call fcn.00430fd0
add esp, 8
mov byte [esp + 0x150], 2
lea ecx, [esp + 0x14]
call fcn.00401ab0
mov byte [esp + 0x150], 1
lea ecx, [esp + 0x1c]
call fcn.00401ab0
mov byte [esp + 0x150], bl
lea ecx, [esp + 0x18]
call fcn.00401ab0
mov dword [esp + 0x150], 0xffffffff
cmp dword [esp + 0x3c], ebp
jb 0x409bbe
mov eax, dword [esp + 0x28]
push eax
jmp 0x409bb6
mov edx, dword [esp + 0x1c]
cmp edx, ebx
je 0x409aa2
cmp eax, ebx
jl 0x409aa2
push edx
push ecx
call fcn.0045f004
add esp, 8
cmp eax, ebx
je 0x409aa2
mov ecx, dword [esp + 0x14]
sub eax, ecx
jns 0x409ab4
cmp edi, ebx
je 0x409b6e
push str.DownloadConfigFile__Not_Install_client__return.
jmp 0x409b65
mov eax, dword [ecx - 0xc]
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx - 0xc]
push eax
push ecx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x20]
call fcn.00409040
mov byte [esp + 0x150], 4
push eax
lea ecx, [esp + 0x1c]
call fcn.00409680
mov byte [esp + 0x150], 3
lea ecx, [esp + 0x20]
call fcn.00401ab0
push 0x103
lea ecx, [esp + 0x45]
push ebx
push ecx
mov byte [esp + 0x4c], bl
call fcn.0045eb50
add esp, 0xc
lea edx, [esp + 0x40]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x48b9c4
lea eax, [esp + 0x44]
push eax
call esi
push str.RTSClient.ini
lea ecx, [esp + 0x44]
push ecx
call esi
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x40]
push edx
push eax
mov ecx, 0x4b5e00
call fcn.0042baf0
movzx eax, al
cmp eax, ebx
jne 0x409b5c
cmp edi, ebx
je 0x409b6e
push str.Download_RtsClient.ini_file_failed.
jmp 0x409b65
cmp edi, ebx
je 0x409b6e
push str.Download_RtsClient.ini_ok.
push edi
call fcn.00430fd0
add esp, 8
mov byte [esp + 0x150], 2
lea ecx, [esp + 0x14]
call fcn.00401ab0
mov byte [esp + 0x150], 1
lea ecx, [esp + 0x1c]
call fcn.00401ab0
mov byte [esp + 0x150], bl
lea ecx, [esp + 0x18]
call fcn.00401ab0
mov dword [esp + 0x150], 0xffffffff
cmp dword [esp + 0x3c], ebp
jb 0x409bbe
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00449db7
add esp, 4
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
mov ecx, dword [esp + 0x148]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0045e17e
add esp, 0x140
ret 4