Function at 0x10070c80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b4247
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x10224008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x238], eax
mov esi, ecx
mov dword [eax], 0xffffffff
cmp dword [esi + 0x10], 0
je 0x100711b7
lea ecx, [ebp - 0x230]
call fcn.10005010
push 0x101dba9c
mov edx, 0x101de794
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.100b59e0
add esp, 4
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x10070cf7
mov ecx, dword [esi]
mov edi, dword [esi + 0x10]
mov edx, edi
push 1
push 0x101d39bc
push 0
call fcn.1002b4f0
add esp, 0xc
mov dword [ebp - 0x234], eax
cmp eax, 0xffffffff
je 0x10070dcb
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x10070d3d
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10070d30
mov eax, dword [esi]
push edi
push eax
lea ecx, [ebp - 0x230]
call fcn.100055f0
lea ecx, [ebp - 0x230]
call fcn.100b5cd0
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x10070d52
mov ecx, dword [esi]
mov edx, dword [esi + 0x10]
push 4
push 0x101dbd8c
push 0
call fcn.1002b4f0
mov edi, dword [ebp - 0x234]
add esp, 0xc
test edi, edi
je 0x10070d79
cmp eax, 0xffffffff
je 0x10070d79
cmp edi, eax
jae 0x10070dcb
lea eax, [edi + 2]
mov ecx, esi
push eax
push 0x101d39bc
call fcn.100479f0
mov edx, eax
cmp edx, 0xffffffff
je 0x10070dcb
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
cmp edi, edx
jae 0x10070dd1
sub edx, edi
lea eax, [edi + 1]
dec edx
mov ecx, esi
push edx
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.1002ab80
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.10004f50
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0
call fcn.10004f10
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
mov edx, esi
cmp ecx, 8
jb 0x10070dda
mov edx, dword [esi]
test eax, eax
je 0x10070f04
mov edi, edx
cmp word [edi], 0x2c
je 0x10070df7
add edi, 2
sub eax, 1
jne 0x10070de4
jmp 0x10070f04
test edi, edi
je 0x10070f04
sub edi, edx
sar edi, 1
cmp edi, 0xffffffff
je 0x10070f04
mov eax, dword [esi + 0x10]
mov ecx, esi
sub eax, edi
dec eax
push eax
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.1002ab80
mov dword [ebp - 0x234], eax
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
cmp ecx, eax
je 0x10070e6e
call fcn.10005540
mov eax, dword [ebp - 0x234]
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x230], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x220], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0
call fcn.10004f10
cmp dword [ebp - 0x220], 2
jae 0x10070eb0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
add esp, 4
test eax, eax
js 0x10070eb0
mov ecx, dword [ebp - 0x238]
mov dword [ecx], eax
push edi
push 0
lea eax, [ebp - 0x250]
mov ecx, esi
push eax
call fcn.1002ab80
mov edi, eax
mov byte [ebp - 4], 3
cmp esi, edi
je 0x10070ef5
mov ecx, esi
call fcn.10005540
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0
call fcn.10004f10
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x10070f27
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10070f18
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x230]
push eax
call fcn.100055f0
lea ecx, [ebp - 0x230]
call fcn.100b5cd0
mov edi, dword [esi + 0x14]
mov ecx, esi
cmp edi, 8
jb 0x10070f3e
mov ecx, dword [esi]
mov edx, dword [esi + 0x10]
push 4
push 0x101dbd8c
push 0
call fcn.1002b4f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x10070fb1
add eax, 4
mov ecx, esi
push eax
push 0
lea eax, [ebp - 0x250]
push eax
call fcn.1002ab80
mov edi, eax
mov byte [ebp - 4], 4
cmp esi, edi
je 0x10070f9f
mov ecx, esi
call fcn.10005540
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0
call fcn.10004f10
mov edi, dword [esi + 0x14]
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x10070fd3
mov eax, esi
cmp edi, 8
jb 0x10070fc4
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x230]
push eax
call fcn.100055f0
lea ecx, [ebp - 0x230]
call fcn.100b5cd0
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x10070fe8
mov ecx, dword [esi]
mov edi, dword [esi + 0x10]
mov edx, edi
push 8
push str._windir_
push 0
call fcn.1002b4f0
add esp, 0xc
mov dword [ebp - 0x234], eax
cmp eax, 0xffffffff
je 0x10071069
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10071040
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
push 8
push dword [ebp - 0x234]
mov ecx, esi
call fcn.1006faf0
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
mov ecx, esi
cmp eax, 8
jb 0x10071075
mov ecx, dword [esi]
test edi, edi
je 0x100710a1
mov eax, ecx
nop dword [eax + eax]
cmp word [eax], 0x5c
je 0x10071090
add eax, 2
sub edi, 1
jne 0x10071080
jmp 0x100710a1
test eax, eax
je 0x100710a1
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x10071180
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100710d2
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.100055f0
mov ecx, dword [ebp - 0x220]
mov edx, dword [ebp - 0x21c]
cmp ecx, edx
jae 0x10071126
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
mov dword [eax + ecx*2], 0x5c
jmp 0x10071141
push 0x5c
mov byte [ebp - 0x234], 0
push dword [ebp - 0x234]
push ecx
lea ecx, [ebp - 0x230]
call fcn.1005e9f0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1007114b
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x230]
push eax
call fcn.1001f0c0
lea eax, [ebp - 0x230]
cmp esi, eax
je 0x10071180
cmp dword [ebp - 0x21c], 8
mov ecx, esi
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.100055f0
mov ecx, esi
call fcn.100b2b00
test al, al
jne 0x100711a5
push 0
push 0x101cdc64
mov ecx, esi
call fcn.100055f0
mov eax, dword [ebp - 0x238]
mov dword [eax], 0xffffffff
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0xffffffff
call fcn.10004f10
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.1019e7b8
mov esp, ebp
pop ebp
ret