Function at 0x4059f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x549394
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x5ac7dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x12c]
push 0
push 0x584346
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
call fcn.00407fe0
push 0x104
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.004d3150
add esp, 0xc
lea eax, [ebp - 0x114]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x405cb1
push 1
push 0x584904
lea ecx, [ebp - 0x12c]
call fcn.00407fe0
cmp byte [ebp - 0x114], 0
mov dword [ebp - 0x130], 0xf
mov dword [ebp - 0x134], 0
mov byte [ebp - 0x144], 0
jne 0x405abe
xor ecx, ecx
jmp 0x405ad0
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405ac7
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x144]
call fcn.00407fe0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x144]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x12c]
call fcn.00408410
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 1
call fcn.00406ce0
push 0xc
push str._netsh.exe_
lea ecx, [ebp - 0x12c]
call fcn.004082e0
push 0xffffffffffffffff
push 0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x12c]
call fcn.00408410
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x148], esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x405b54
mov eax, dword [ecx]
jmp 0x405b56
mov eax, ecx
push 0
push 0x584346
mov byte [eax], 0
call fcn.00407fe0
sub esp, 0x18
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x405b86
mov eax, dword [ecx]
jmp 0x405b88
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x12c]
push 0
push eax
call fcn.004080e0
push 1
push 0
xor edx, edx
mov byte [ebp - 4], 1
call fcn.0040d840
add esp, 0x38
test al, al
je 0x405cb1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push str.IsWow64Process
push str.kernel32.dll
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x405ca8
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x148], 0
push ecx
push ebx
call eax
test eax, eax
je 0x405ca8
cmp dword [ebp - 0x148], 0
setne al
test al, al
je 0x405ca8
push str.Wow64DisableWow64FsRedirection
push str.kernel32.dll
mov dword [ebp - 0x148], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x405ca8
lea ecx, [ebp - 0x148]
push ecx
call eax
test eax, eax
je 0x405ca8
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x14c], esp
push 0x584346
call fcn.00406dd0
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x405c72
mov eax, dword [ecx]
jmp 0x405c74
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x12c]
push 0
push eax
call fcn.004080e0
push 1
push 0
xor edx, edx
mov byte [ebp - 4], 1
call fcn.0040d840
mov ecx, dword [ebp - 0x148]
add esp, 0x38
test al, al
je 0x405cac
call fcn.00403a10
mov bl, 1
jmp 0x405cb3
call fcn.00403a10
xor bl, bl
mov eax, dword [ebp - 0x118]
cmp eax, 0x10
jb 0x405d03
mov ecx, dword [ebp - 0x12c]
inc eax
cmp eax, 0x1000
jb 0x405cfa
test cl, 0x1f
je 0x405cd6
call fcn.004ef829
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x405ce2
call fcn.004ef829
sub ecx, eax
cmp ecx, 4
jae 0x405cee
call fcn.004ef829
cmp ecx, 0x23
jbe 0x405cf8
call fcn.004ef829
mov ecx, eax
push ecx
call fcn.004ae222
add esp, 4
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
cmp eax, 0x10
jb 0x405d68
mov ecx, dword [ebp + 8]
inc eax
cmp eax, 0x1000
jb 0x405d5f
test cl, 0x1f
je 0x405d3b
call fcn.004ef829
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x405d47
call fcn.004ef829
sub ecx, eax
cmp ecx, 4
jae 0x405d53
call fcn.004ef829
cmp ecx, 0x23
jbe 0x405d5d
call fcn.004ef829
mov ecx, eax
push ecx
call fcn.004ae222
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ae22e
mov esp, ebp
pop ebp
ret 0x18