Function at 0x10147430
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1019b146
mov eax, dword fs:[0]
push eax
sub esp, 0x64c
mov eax, dword [0x10204014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x658], eax
xor eax, eax
mov dword [ebp - 0x644], 0
mov dword [ebp - 0x640], 0
mov dword [ebp - 0x644], 0
mov dword [ebp - 0x640], 7
mov word [ebp - 0x654], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x63c], eax
mov eax, dword [0x10208e2c]
mov dword [ebp - 0x63c], 0x10208e2c
test eax, eax
je 0x101474c0
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 1
mov ecx, dword [0x1020428c]
test ecx, ecx
je 0x101474e6
cmp dword [0x10204290], 8
mov eax, 0x1020427c
cmovae eax, dword [0x1020427c]
jmp 0x101475b5
push 0x20c
lea eax, [ebp - 0x220]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x101476ac
xor eax, eax
push 0x412
push eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x638]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x638]
push 0x208
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x10147593
test eax, eax
je 0x10147593
add eax, eax
cmp eax, 0x412
jae 0x101476fe
xor ecx, ecx
mov word [ebp + eax - 0x638], cx
lea ecx, [ebp - 0x638]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10147580
lea eax, [ebp - 0x638]
jmp 0x101475b1
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x101475a0
lea eax, [ebp - 0x220]
sub ecx, edx
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x654]
call fcn.10007fb0
mov byte [ebp - 4], 0
mov eax, dword [0x10208e2c]
test eax, eax
je 0x101475d6
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebx], 0
lea esi, [ebx + 4]
mov dword [ebp - 0x63c], 0
je 0x101475f6
mov ecx, esi
call fcn.1014f420
test al, al
sete al
mov byte [ebx], al
mov edx, dword [ebp - 0x658]
lea ecx, [ebp - 0x654]
push edi
call fcn.1014f610
add esp, 4
test al, al
je 0x10147632
cmp esi, edi
je 0x10147628
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x1014761d
mov eax, dword [edi]
push dword [edi + 0x10]
mov ecx, esi
push eax
call fcn.10007fb0
mov byte [ebx], 1
mov bl, 1
jmp 0x101476cc
push 0x20c
lea eax, [ebp - 0x220]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x101476ca
xor eax, eax
lea edx, [ebp - 0x220]
mov word [ebp - 0x16], ax
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10147671
sub edx, ecx
lea eax, [ebp - 0x220]
sar edx, 1
lea ecx, [ebp - 0x654]
push edx
push eax
call fcn.10007fb0
push edi
push dword [ebp - 0x658]
lea eax, [ebp - 0x654]
mov ecx, ebx
push eax
call fcn.101473d0
mov bl, al
jmp 0x101476cc
mov byte [ebp - 4], 0
mov eax, dword [0x10208e2c]
test eax, eax
je 0x101476c0
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x63c], 0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x654]
call fcn.10007f50
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1016e794
mov esp, ebp
pop ebp
ret 8
call fcn.1016edad
int3