Function at 0x40f018
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x320
lea ebp, [esp - 4]
mov eax, dword [0x452724]
xor eax, ebp
mov dword [ebp + 0x320], eax
push 0xc8
mov eax, 0x42e274
call fcn.00415521
mov eax, dword [ebp + 0x32c]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x14], eax
mov byte [ebp - 0xd], bl
call dword [0x452508]
push dword [0x453b1c]
lea eax, [ebp + 0x21c]
push eax
call fcn.00418030
lea eax, [ebp + 0x21c]
push str._mod_mod.asp_m
push eax
call fcn.00418040
lea eax, [ebp + 0x21c]
push str.ntrsm
push eax
call fcn.00418040
add esp, 0x18
lea eax, [ebp + 0x118]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push str._f0h1v
lea eax, [ebp + 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp + 0x118]
push eax
push str._ClsScriptingManagement::DownloadScriptingMachine__current_dir_:__s
call fcn.004140dd
pop ecx
pop ecx
lea ecx, [ebp]
call fcn.00404d1a
mov dword [ebp - 4], ebx
push 1
lea ecx, [ebp]
call fcn.00407c53
mov eax, dword [esi + 0x18]
cmp eax, ebx
jbe 0x40f12d
cmp dword [esi + 0x54], 8
jb 0x40f0ea
mov edx, dword [esi + 0x40]
jmp 0x40f0ed
lea edx, [esi + 0x40]
cmp dword [esi + 0x38], 8
jb 0x40f0f8
mov ecx, dword [esi + 0x24]
jmp 0x40f0fb
lea ecx, [esi + 0x24]
lea edi, [esi + 4]
cmp dword [edi + 0x18], 0x10
jb 0x40f109
mov eax, dword [edi + 4]
jmp 0x40f10c
lea eax, [edi + 4]
push edx
push ecx
push eax
push str._ClsScriptingManagement::DownloadScriptingMachine__Setting_proxy_from_data_in_command_line__s___ws:_ws
call fcn.004140dd
add esp, 0x10
lea eax, [esi + 0x3c]
push eax
lea eax, [esi + 0x20]
push eax
push edi
lea ecx, [ebp]
call fcn.00408d02
lea eax, [ebp + 0x21c]
push eax
lea ecx, [ebp - 0x30]
call fcn.00405078
mov byte [ebp - 4], 1
lea eax, [ebp + 0x118]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00405078
mov byte [ebp - 4], 2
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp]
call fcn.00407889
mov edi, eax
mov byte [ebp - 4], 1
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.004049c1
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.004049c1
cmp edi, ebx
lea eax, [ebp + 0x21c]
jne 0x40f194
push eax
push str._ClsScriptingManagement::DownloadScriptingMachine__DownloadModule__s_downloaded.
jmp 0x40f19f
cmp edi, 0xfffffffe
jne 0x40f1ac
push eax
push str._ClsScriptingManagement::DownloadScriptingMachine__DownloadModule__s_not_downloaded:_already_exists
call fcn.004140dd
pop ecx
pop ecx
mov byte [ebp - 0xd], 1
jmp 0x40f1bb
push edi
push eax
push str._ClsScriptingManagement::DownloadScriptingMachine__DownloadModule__s_error:__d
call fcn.004140dd
add esp, 0xc
push ebx
lea ecx, [ebp + 0xfc]
mov dword [ebp + 0x114], 0xf
call fcn.0040423a
mov byte [ebp - 4], 3
push 7
pop edi
push ebx
lea ecx, [ebp + 0xe0]
mov dword [ebp + 0xf8], edi
call fcn.0040830d
mov byte [ebp - 4], 4
push ebx
lea ecx, [ebp + 0xc4]
mov dword [ebp + 0xdc], edi
call fcn.0040830d
mov byte [ebp - 4], 5
lea eax, [ebp + 0xc4]
push eax
lea eax, [ebp + 0xe0]
push eax
lea eax, [ebp + 0xfc]
push eax
lea ecx, [ebp]
call fcn.00407daa
cmp dword [ebp + 0xdc], 8
mov edx, dword [ebp + 0xc8]
jae 0x40f236
lea edx, [ebp + 0xc8]
cmp dword [ebp + 0xf8], 8
mov ecx, dword [ebp + 0xe4]
jae 0x40f24b
lea ecx, [ebp + 0xe4]
cmp dword [ebp + 0x114], 0x10
mov eax, dword [ebp + 0x100]
jae 0x40f260
lea eax, [ebp + 0x100]
push edx
push ecx
push eax
push str._ClsScriptingManagement::DownloadScriptingMachine__Proxy_data_after_download:__s___ws:_ws
call fcn.004140dd
add esp, 0x10
or edi, 0xffffffff
cmp dword [ebp + 0x110], ebx
jbe 0x40f2be
push edi
push ebx
lea eax, [ebp + 0xfc]
push eax
lea ecx, [esi + 4]
call fcn.00404e1b
cmp dword [ebp + 0xf4], ebx
jbe 0x40f2a5
push edi
push ebx
lea eax, [ebp + 0xe0]
push eax
lea ecx, [esi + 0x20]
call fcn.0040890b
cmp dword [ebp + 0xd8], ebx
jbe 0x40f2be
push edi
push ebx
lea eax, [ebp + 0xc4]
push eax
lea ecx, [esi + 0x3c]
call fcn.0040890b
xor esi, esi
inc esi
push esi
push 3
lea ecx, [ebp - 0xd4]
call fcn.0040746e
mov byte [ebp - 4], 6
push str.ntrsm.ntr
lea eax, [ebp + 0x118]
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.00406cbc
pop ecx
pop ecx
push eax
call fcn.00406cbc
pop ecx
pop ecx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0xd4]
call fcn.004056a0
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x14]
push edi
push ebx
push eax
call fcn.00404e1b
mov byte [ebp - 4], 6
push ebx
push esi
lea ecx, [ebp - 0x30]
call fcn.004049c1
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x80]
call fcn.004047e0
lea ecx, [ebp - 0x80]
call fcn.00403af4
mov byte [ebp - 4], 4
push ebx
push esi
lea ecx, [ebp + 0xc4]
call fcn.00408583
mov byte [ebp - 4], 3
push ebx
push esi
lea ecx, [ebp + 0xe0]
call fcn.00408583
mov byte [ebp - 4], bl
push ebx
push esi
lea ecx, [ebp + 0xfc]
call fcn.004049c1
mov dword [ebp - 4], edi
lea ecx, [ebp]
call fcn.00404d92
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x320]
xor ecx, ebp
call fcn.00414b1e
add ebp, 0x324
leave
ret 4