Function at 0x1005eae0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015c9b9
mov eax, dword fs:[0]
push eax
sub esp, 0x6ec
mov eax, dword [0x101b900c]
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 0x1005f05b
mov ecx, edi
call fcn.1007e940
test al, al
je 0x1005f05b
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 [0x101be11c]
mov dword [ebp - 0x634], 0x101be11c
test eax, eax
je 0x1005ebb3
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 2
mov ecx, dword [0x101b9b90]
test ecx, ecx
je 0x1005ebd9
cmp dword [0x101b9b94], 8
mov eax, 0x101b9b80
cmovae eax, dword [0x101b9b80]
jmp 0x1005eca5
push 0x20c
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.10121fd0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x1005ee59
xor eax, eax
push 0x412
push eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x630]
push eax
call fcn.10121fd0
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 0x1005ec83
test eax, eax
je 0x1005ec83
add eax, eax
cmp eax, 0x412
jae 0x1005f07b
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 0x1005ec70
lea eax, [ebp - 0x630]
jmp 0x1005eca1
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1005ec90
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 [0x101be11c]
test eax, eax
je 0x1005ecc6
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, edi
mov dword [ebp - 0x634], 0
lea ecx, [ebp - 0x69c]
call fcn.1007f250
mov byte [ebp - 4], 3
lea edx, [ebp - 0x664]
push eax
lea ecx, [ebp - 0x67c]
call fcn.1007a270
add esp, 4
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x688]
cmp edx, 8
jb 0x1005ed3a
mov ecx, dword [ebp - 0x69c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005ed30
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005f080
push edx
push ecx
call fcn.1010a295
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.10068220
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 0x1005edbc
mov ecx, dword [ebp - 0x6b4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005edb2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005f085
push edx
push ecx
call fcn.1010a295
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 0x1005edf0
lea edx, [ebp - 0x64c]
mov ecx, edi
call fcn.1009c500
mov bh, al
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x668]
cmp edx, 8
jb 0x1005ee34
mov ecx, dword [ebp - 0x67c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005ee2a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005f08a
push edx
push ecx
call fcn.1010a295
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 0x1005ee77
mov byte [ebp - 4], 1
mov eax, dword [0x101be11c]
test eax, eax
je 0x1005ee6d
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.1005dc60
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x6dc]
mov eax, dword [ebp - 0x680]
add eax, 0x1c
push eax
call fcn.1005dc60
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 0x1005eeec
mov ecx, dword [ebp - 0x684]
lea eax, [ebp - 0x6f8]
push eax
push edi
call fcn.1005ff10
jmp 0x1005ef04
cmp eax, 2
jne 0x1005ef4f
mov ecx, dword [ebp - 0x684]
lea eax, [ebp - 0x6f8]
push eax
push edi
call fcn.100606b0
mov bl, al
test bl, bl
je 0x1005ef4f
mov eax, dword [ebp - 0x6b8]
cmp eax, 3
je 0x1005ef1a
cmp eax, 4
jne 0x1005ef4f
test bh, bh
je 0x1005efca
push dword [ebp - 0x680]
lea ecx, [ebp - 0x6f8]
call fcn.1005f100
mov ecx, dword [ebp - 0x684]
lea eax, [ebp - 0x6f8]
push eax
lea eax, [ebp - 0x64c]
push eax
push edi
call fcn.1005f190
mov bl, al
test bh, bh
je 0x1005ef5e
lea ecx, [ebp - 0x64c]
call fcn.1009c6d0
mov ecx, dword [ebp - 0x680]
lea eax, [ebp - 0x6f8]
push eax
call fcn.1005f100
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x6dc]
call fcn.10058160
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6f8]
call fcn.10058160
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x638]
cmp edx, 8
jb 0x1005efe0
mov ecx, dword [ebp - 0x64c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005efd6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005f08f
jmp 0x1005efd6
mov dword [ebp - 0x6b8], 6
jmp 0x1005ef5e
push edx
push ecx
call fcn.1010a295
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 0x1005f03a
mov ecx, dword [ebp - 0x664]
lea edx, [esi*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005f030
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005f094
push edx
push ecx
call fcn.1010a295
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 0x1005f05d
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.10109ef1
mov esp, ebp
pop ebp
ret 8
call fcn.1010a788
call fcn.10129e39
call fcn.10129e39
call fcn.10129e39
call fcn.10129e39
call fcn.10129e39
int3