Function at 0x1002e800
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003856b
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.1000f0c0
lea ecx, [ebp - 0x22c]
mov dword [ebp - 4], 0
call fcn.1000f0c0
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]
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x434]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002e887
sub ecx, edx
lea eax, [ebp - 0x434]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.100078a0
mov byte [ebp - 4], 2
cmp byte [esi], 0
je 0x1002e944
mov ecx, dword [ebp - 0x18]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 0x13
jb 0x1002eb0f
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.10013260
push 1
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x13c]
call fcn.1000f400
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x1002ea83
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002e935
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002e935
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10035360
add esp, 8
jmp 0x1002ea83
mov al, byte [esi + 1]
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x2c], al
test al, al
je 0x1002e95f
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
mov esi, 0x7ffffffe
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x18]
mov eax, esi
sub eax, ecx
cmp eax, 0x13
jb 0x1002eb14
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x13
cmovae eax, dword [ebp - 0x28]
push 0x1003ed04
push ecx
push eax
push ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x48]
call fcn.10013260
push 1
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x22c]
call fcn.1000f400
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x1002e9ed
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002e9e3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002e9e3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10035360
add esp, 8
mov ecx, dword [ebp - 0x18]
sub esi, ecx
cmp esi, 0x13
jb 0x1002eb19
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.10013260
push 1
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x13c]
call fcn.1000f400
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x1002ea70
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002ea66
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002ea66
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10035360
add esp, 8
mov byte [ebp - 4], 2
cmp byte [ebp - 0x2c], 0
je 0x1002ea83
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.1002eb20
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 7
push eax
lea ecx, [esi + 0xf0]
call fcn.1002eb20
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x1002eae6
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002eadc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002eadc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10035360
add esp, 8
lea ecx, [ebp - 0x22c]
call fcn.1000f230
lea ecx, [ebp - 0x13c]
call fcn.1000f230
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
call fcn.10001180
call fcn.10001180
call fcn.10001180
int3