Function at 0x4016e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403d2c
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x406004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 2
mov esi, dword [ebp + 0xc]
jne 0x401989
mov esi, dword [esi + 4]
nop dword [eax]
mov ecx, esi
call fcn.004011a0
mov edi, eax
test edi, edi
je 0x401720
mov ecx, edi
call fcn.00401260
lea eax, [ebp - 0x410]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [ebp - 0x410]
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x420], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x434], 0
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401770
sub ecx, edx
lea eax, [ebp - 0x410]
push ecx
push eax
lea ecx, [ebp - 0x434]
call fcn.00402180
mov dword [ebp - 4], 0
lea edx, [ebp - 0x434]
xorps xmm0, xmm0
mov dword [ebp - 0x414], 0
push ecx
lea ecx, [ebp - 0x41c]
movq qword [ebp - 0x41c], xmm0
call fcn.00401390
add esp, 4
mov byte [ebp - 4], 1
mov eax, 0x2aaaaaab
mov ecx, dword [ebp - 0x418]
mov esi, dword [ebp - 0x41c]
sub ecx, esi
imul ecx
lea ecx, [ebp - 0x44c]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*2]
lea eax, [eax - 3]
lea eax, [esi + eax*8]
push eax
call fcn.00401a80
mov ecx, edi
mov byte [ebp - 4], 2
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x450], 0xf
mov byte [ebp - 0x464], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401820
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x464]
call fcn.00402180
lea edx, [ebp - 0x464]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44c]
call section..text
mov edx, dword [ebp - 0x450]
cmp edx, 0x10
jb 0x401887
mov ecx, dword [ebp - 0x464]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40187d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40187d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00402e29
add esp, 8
mov edx, dword [ebp - 0x438]
cmp edx, 0x10
jb 0x4018c3
mov ecx, dword [ebp - 0x44c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4018b9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4018b9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00402e29
add esp, 8
mov ecx, dword [ebp - 0x41c]
test ecx, ecx
je 0x40194d
mov edx, dword [ebp - 0x418]
push ecx
call fcn.00402900
mov ecx, dword [ebp - 0x414]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x41c]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x401925
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401925
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.00402e29
add esp, 8
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 0
mov edx, dword [ebp - 0x420]
cmp edx, 0x10
jb 0x401989
mov ecx, dword [ebp - 0x434]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40197f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40197f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00402e29
add esp, 8
xor eax, eax
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.00402e18
mov esp, ebp
pop ebp
ret