Function at 0x1005ea30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015c8d9
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 0x1005efab
mov ecx, edi
call fcn.1007e870
test al, al
je 0x1005efab
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 0x1005eb03
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 2
mov ecx, dword [0x101b9b90]
test ecx, ecx
je 0x1005eb29
cmp dword [0x101b9b94], 8
mov eax, 0x101b9b80
cmovae eax, dword [0x101b9b80]
jmp 0x1005ebf5
push 0x20c
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.10121f10
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x1005eda9
xor eax, eax
push 0x412
push eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x630]
push eax
call fcn.10121f10
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 0x1005ebd3
test eax, eax
je 0x1005ebd3
add eax, eax
cmp eax, 0x412
jae 0x1005efcb
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 0x1005ebc0
lea eax, [ebp - 0x630]
jmp 0x1005ebf1
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1005ebe0
lea eax, [ebp - 0x21c]
sub ecx, edx
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x664]
call fcn.10003610
mov byte [ebp - 4], 1
mov eax, dword [0x101be11c]
test eax, eax
je 0x1005ec16
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, edi
mov dword [ebp - 0x634], 0
lea ecx, [ebp - 0x69c]
call fcn.1007f180
mov byte [ebp - 4], 3
lea edx, [ebp - 0x664]
push eax
lea ecx, [ebp - 0x67c]
call fcn.1007a1c0
add esp, 4
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x688]
cmp edx, 8
jb 0x1005ec8a
mov ecx, dword [ebp - 0x69c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005ec80
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005efd0
push edx
push ecx
call fcn.1010a1d5
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.10068170
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x64c]
push eax
call fcn.100034c0
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x6a0]
cmp edx, 8
jb 0x1005ed0c
mov ecx, dword [ebp - 0x6b4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005ed02
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005efd5
push edx
push ecx
call fcn.1010a1d5
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 0x1005ed40
lea edx, [ebp - 0x64c]
mov ecx, edi
call fcn.1009c440
mov bh, al
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x668]
cmp edx, 8
jb 0x1005ed84
mov ecx, dword [ebp - 0x67c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005ed7a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005efda
push edx
push ecx
call fcn.1010a1d5
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 0x1005edc7
mov byte [ebp - 4], 1
mov eax, dword [0x101be11c]
test eax, eax
je 0x1005edbd
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.1005dbb0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x6dc]
mov eax, dword [ebp - 0x680]
add eax, 0x1c
push eax
call fcn.1005dbb0
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 0x1005ee3c
mov ecx, dword [ebp - 0x684]
lea eax, [ebp - 0x6f8]
push eax
push edi
call fcn.1005fe60
jmp 0x1005ee54
cmp eax, 2
jne 0x1005ee9f
mov ecx, dword [ebp - 0x684]
lea eax, [ebp - 0x6f8]
push eax
push edi
call fcn.10060600
mov bl, al
test bl, bl
je 0x1005ee9f
mov eax, dword [ebp - 0x6b8]
cmp eax, 3
je 0x1005ee6a
cmp eax, 4
jne 0x1005ee9f
test bh, bh
je 0x1005ef1a
push dword [ebp - 0x680]
lea ecx, [ebp - 0x6f8]
call fcn.1005f050
mov ecx, dword [ebp - 0x684]
lea eax, [ebp - 0x6f8]
push eax
lea eax, [ebp - 0x64c]
push eax
push edi
call fcn.1005f0e0
mov bl, al
test bh, bh
je 0x1005eeae
lea ecx, [ebp - 0x64c]
call fcn.1009c610
mov ecx, dword [ebp - 0x680]
lea eax, [ebp - 0x6f8]
push eax
call fcn.1005f050
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x6dc]
call fcn.100580b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6f8]
call fcn.100580b0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x638]
cmp edx, 8
jb 0x1005ef30
mov ecx, dword [ebp - 0x64c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005ef26
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005efdf
jmp 0x1005ef26
mov dword [ebp - 0x6b8], 6
jmp 0x1005eeae
push edx
push ecx
call fcn.1010a1d5
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 0x1005ef8a
mov ecx, dword [ebp - 0x664]
lea edx, [esi*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005ef80
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005efe4
push edx
push ecx
call fcn.1010a1d5
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 0x1005efad
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.10109e31
mov esp, ebp
pop ebp
ret 8
call fcn.1010a6c8
call fcn.10129d79
call fcn.10129d79
call fcn.10129d79
call fcn.10129d79
call fcn.10129d79
int3