Function at 0x1005f9e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015f8e9
mov eax, dword fs:[0]
push eax
sub esp, 0x6ec
mov eax, dword [0x101bd00c]
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 dword [ebp - 0x684], ecx
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x680], eax
cmp dword [edi + 0x10], 0
je 0x1005ff5b
mov ecx, edi
call fcn.1007fb60
test al, al
je 0x1005ff5b
mov esi, 7
mov dword [ebp - 0x650], 0
xor eax, eax
mov dword [ebp - 0x654], 0
mov dword [ebp - 0x650], esi
xor bh, bh
mov dword [ebp - 0x654], 0
mov word [ebp - 0x664], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x63c], eax
mov dword [ebp - 0x638], eax
mov dword [ebp - 0x63c], eax
mov dword [ebp - 0x638], esi
mov word [ebp - 0x64c], ax
mov byte [ebp - 4], 1
mov dword [ebp - 0x634], eax
mov eax, dword [0x101c216c]
mov dword [ebp - 0x634], 0x101c216c
test eax, eax
je 0x1005fab3
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 2
mov ecx, dword [0x101bdb90]
test ecx, ecx
je 0x1005fad9
cmp dword [0x101bdb94], 8
mov eax, 0x101bdb80
cmovae eax, dword [0x101bdb80]
jmp 0x1005fba5
push 0x20c
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.10124cd0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x1005fd59
xor eax, eax
push 0x412
push eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x630]
push eax
call fcn.10124cd0
add esp, 0xc
lea eax, [ebp - 0x630]
push 0x208
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x1005fb83
test eax, eax
je 0x1005fb83
add eax, eax
cmp eax, 0x412
jae 0x1005ff7b
xor ecx, ecx
mov word [ebp + eax - 0x630], cx
lea ecx, [ebp - 0x630]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1005fb70
lea eax, [ebp - 0x630]
jmp 0x1005fba1
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1005fb90
lea eax, [ebp - 0x21c]
sub ecx, edx
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x664]
call fcn.10003600
mov byte [ebp - 4], 1
mov eax, dword [0x101c216c]
test eax, eax
je 0x1005fbc6
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, edi
mov dword [ebp - 0x634], 0
lea ecx, [ebp - 0x69c]
call fcn.10080470
mov byte [ebp - 4], 3
lea edx, [ebp - 0x664]
push eax
lea ecx, [ebp - 0x67c]
call fcn.1007b4b0
add esp, 4
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x688]
cmp edx, 8
jb 0x1005fc3a
mov ecx, dword [ebp - 0x69c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005fc30
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005ff80
push edx
push ecx
call fcn.1010cf95
add esp, 8
xor eax, eax
mov dword [ebp - 0x68c], 0
lea edx, [ebp - 0x67c]
mov dword [ebp - 0x688], 7
lea ecx, [ebp - 0x6b4]
mov word [ebp - 0x69c], ax
call fcn.10069130
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x64c]
push eax
call fcn.100034b0
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x6a0]
cmp edx, 8
jb 0x1005fcbc
mov ecx, dword [ebp - 0x6b4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005fcb2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005ff85
push edx
push ecx
call fcn.1010cf95
add esp, 8
xor eax, eax
mov dword [ebp - 0x6a4], 0
mov dword [ebp - 0x6a0], 7
mov word [ebp - 0x6b4], ax
cmp dword [ebp - 0x63c], eax
je 0x1005fcf0
lea edx, [ebp - 0x64c]
mov ecx, edi
call fcn.1009d720
mov bh, al
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x668]
cmp edx, 8
jb 0x1005fd34
mov ecx, dword [ebp - 0x67c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005fd2a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005ff8a
push edx
push ecx
call fcn.1010cf95
add esp, 8
mov esi, dword [ebp - 0x650]
xor eax, eax
mov dword [ebp - 0x66c], 0
mov dword [ebp - 0x668], 7
mov word [ebp - 0x67c], ax
jmp 0x1005fd77
mov byte [ebp - 4], 1
mov eax, dword [0x101c216c]
test eax, eax
je 0x1005fd6d
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x634], 0
push dword [ebp - 0x680]
lea ecx, [ebp - 0x6f8]
xor bl, bl
call fcn.1005eb60
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x6dc]
mov eax, dword [ebp - 0x680]
add eax, 0x1c
push eax
call fcn.1005eb60
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x680]
mov eax, dword [ecx + 0x38]
mov dword [ebp - 0x6c0], eax
mov eax, dword [ecx + 0x3c]
mov dword [ebp - 0x6bc], eax
mov eax, dword [ecx + 0x40]
mov dword [ebp - 0x6b8], eax
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x6dc]
cmp eax, 1
jne 0x1005fdec
mov ecx, dword [ebp - 0x684]
lea eax, [ebp - 0x6f8]
push eax
push edi
call fcn.10060e10
jmp 0x1005fe04
cmp eax, 2
jne 0x1005fe4f
mov ecx, dword [ebp - 0x684]
lea eax, [ebp - 0x6f8]
push eax
push edi
call fcn.100615b0
mov bl, al
test bl, bl
je 0x1005fe4f
mov eax, dword [ebp - 0x6b8]
cmp eax, 3
je 0x1005fe1a
cmp eax, 4
jne 0x1005fe4f
test bh, bh
je 0x1005feca
push dword [ebp - 0x680]
lea ecx, [ebp - 0x6f8]
call fcn.10060000
mov ecx, dword [ebp - 0x684]
lea eax, [ebp - 0x6f8]
push eax
lea eax, [ebp - 0x64c]
push eax
push edi
call fcn.10060090
mov bl, al
test bh, bh
je 0x1005fe5e
lea ecx, [ebp - 0x64c]
call fcn.1009d8f0
mov ecx, dword [ebp - 0x680]
lea eax, [ebp - 0x6f8]
push eax
call fcn.10060000
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x6dc]
call fcn.10059060
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6f8]
call fcn.10059060
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x638]
cmp edx, 8
jb 0x1005fee0
mov ecx, dword [ebp - 0x64c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005fed6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005ff8f
jmp 0x1005fed6
mov dword [ebp - 0x6b8], 6
jmp 0x1005fe5e
push edx
push ecx
call fcn.1010cf95
add esp, 8
xor eax, eax
mov dword [ebp - 0x63c], 0
mov dword [ebp - 0x638], 7
mov word [ebp - 0x64c], ax
mov dword [ebp - 4], 0xffffffff
cmp esi, 8
jb 0x1005ff3a
mov ecx, dword [ebp - 0x664]
lea edx, [esi*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005ff30
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005ff94
push edx
push ecx
call fcn.1010cf95
add esp, 8
xor eax, eax
mov dword [ebp - 0x654], 0
mov word [ebp - 0x664], ax
mov al, bl
mov dword [ebp - 0x650], 7
jmp 0x1005ff5d
xor al, al
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.1010cbf1
mov esp, ebp
pop ebp
ret 8
call fcn.1010d489
call fcn.1012cb39
call fcn.1012cb39
call fcn.1012cb39
call fcn.1012cb39
call fcn.1012cb39
int3