Function at 0x415eb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x434792
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
mov eax, dword [0x455070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x27c], 0
lea ecx, [ebp - 0x294]
call fcn.00405b40
mov dword [ebp - 4], 0
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x27c]
push ecx
call dword [sym.imp.iImportLib.dll_bool___cdecl_elex::func::GetParentProcessInfo_unsigned_long_int___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____]
add esp, 8
movzx edx, al
test edx, edx
je 0x41613a
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call sub.MSVCR110.dll_memset
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x218]
mov dword [ebp - 0x2a0], eax
mov ecx, dword [ebp - 0x2a0]
add ecx, 2
mov dword [ebp - 0x2ac], ecx
mov edx, dword [ebp - 0x2a0]
mov ax, word [edx]
mov word [ebp - 0x2a6], ax
add dword [ebp - 0x2a0], 2
cmp word [ebp - 0x2a6], 0
jne 0x415f65
mov ecx, dword [ebp - 0x2a0]
sub ecx, dword [ebp - 0x2ac]
sar ecx, 1
mov dword [ebp - 0x2b4], ecx
mov edx, dword [ebp - 0x2b4]
mov dword [ebp - 0x2a4], edx
cmp dword [ebp - 0x2a4], 0
jle 0x41600a
lea ecx, [ebp - 0x294]
call fcn.00405c20
cmp eax, dword [ebp - 0x2a4]
jb 0x41600a
mov eax, dword [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0x294]
call fcn.004059f0
push eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x41600a
mov byte [ebp - 0x297], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x294]
call fcn.00405b70
mov al, byte [ebp - 0x297]
jmp 0x416159
lea ecx, [ebp - 0x294]
call fcn.004059f0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [ebp - 0x2b8], eax
push str.explorer.exe
lea ecx, [ebp - 0x278]
call fcn.004065b0
mov byte [ebp - 4], 1
push str.devenv.exe
lea ecx, [ebp - 0x260]
call fcn.004065b0
mov byte [ebp - 4], 2
push str.cmd.exe
lea ecx, [ebp - 0x248]
call fcn.004065b0
mov byte [ebp - 4], 3
push 0x440b24
lea ecx, [ebp - 0x230]
call fcn.004065b0
mov byte [ebp - 4], 4
mov dword [ebp - 0x2b0], 4
mov dword [ebp - 0x29c], 0
jmp 0x416097
mov edx, dword [ebp - 0x29c]
add edx, 1
mov dword [ebp - 0x29c], edx
mov eax, dword [ebp - 0x29c]
cmp eax, dword [ebp - 0x2b0]
jge 0x416121
mov ecx, dword [ebp - 0x29c]
imul ecx, ecx, 0x18
lea ecx, [ebp + ecx - 0x278]
call fcn.00405c20
push eax
mov edx, dword [ebp - 0x2b8]
push edx
mov eax, dword [ebp - 0x29c]
imul eax, eax, 0x18
lea ecx, [ebp + eax - 0x278]
call fcn.004059f0
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x41611c
mov byte [ebp - 0x295], 1
mov byte [ebp - 4], 0
push fcn.00405b70
push 4
push 0x18
lea ecx, [ebp - 0x278]
push ecx
call fcn.004315fc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x294]
call fcn.00405b70
mov al, byte [ebp - 0x295]
jmp 0x416159
jmp 0x416088
mov byte [ebp - 4], 0
push fcn.00405b70
push 4
push 0x18
lea edx, [ebp - 0x278]
push edx
call fcn.004315fc
mov byte [ebp - 0x296], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x294]
call fcn.00405b70
mov al, byte [ebp - 0x296]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004314a6
mov esp, ebp
pop ebp
ret