Function at 0x10088dd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013fd2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x42c
push esi
mov esi, ecx
lea ecx, [ebp - 0x13c]
call fcn.1006a670
lea ecx, [ebp - 0x22c]
mov dword [ebp - 4], 0
call fcn.1006a670
push 0x208
lea eax, [ebp - 0x434]
mov byte [ebp - 4], 1
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x434]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [ebp - 0x434]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x14], 0
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10088e60
sub ecx, edx
lea eax, [ebp - 0x434]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.100512a0
mov byte [ebp - 4], 2
cmp byte [esi], 0
je 0x10088f1d
mov ecx, dword [ebp - 0x18]
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 0x13
jb 0x100890e8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x13
cmovae eax, dword [ebp - 0x28]
push 0x10198fac
push ecx
push eax
push ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x48]
call fcn.1006ece0
push 1
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x13c]
call fcn.1006a9c0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x34]
cmp ecx, 8
jb 0x1008905c
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10088f0e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10088f0e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1013b151
add esp, 8
jmp 0x1008905c
mov al, byte [esi + 1]
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x2c], al
test al, al
je 0x10088f38
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
mov esi, SysReAllocString
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x18]
mov eax, esi
sub eax, ecx
cmp eax, 0x13
jb 0x100890ed
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x13
cmovae eax, dword [ebp - 0x28]
push str.System32_ntdll.dll
push ecx
push eax
push ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x48]
call fcn.1006ece0
push 1
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x22c]
call fcn.1006a9c0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x34]
cmp ecx, 8
jb 0x10088fc6
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10088fbc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10088fbc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1013b151
add esp, 8
mov ecx, dword [ebp - 0x18]
sub esi, ecx
cmp esi, 0x13
jb 0x100890f2
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x13
cmovae eax, dword [ebp - 0x28]
push str.SysWOW64_ntdll.dll
push ecx
push eax
push ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x48]
call fcn.1006ece0
push 1
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x13c]
call fcn.1006a9c0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x34]
cmp ecx, 8
jb 0x10089049
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1008903f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1008903f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1013b151
add esp, 8
mov byte [ebp - 4], 2
cmp byte [ebp - 0x2c], 0
je 0x1008905c
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x13c]
push eax
mov ecx, esi
call fcn.10089100
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 7
push eax
lea ecx, [esi + 0xf0]
call fcn.10089100
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x100890bf
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100890b5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100890b5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1013b151
add esp, 8
lea ecx, [ebp - 0x22c]
call fcn.1006a7f0
lea ecx, [ebp - 0x13c]
call fcn.1006a7f0
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
call fcn.100474b0
call fcn.100474b0
call fcn.100474b0
int3