Function at 0x1009ab60
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x628]
sub esp, 0x628
push 0xffffffffffffffff
push 0x1023a198
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x102c6474]
xor eax, ebp
mov dword [ebp + 0x624], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x102cfc80]
mov dword [ebp], 0
mov dword [ebp], 0x102cfc80
test eax, eax
je 0x1009abb9
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov ecx, 0x102cfc90
call fcn.10007f3e
test al, al
jne 0x1009ad94
mov ecx, 0x102cfc90
call fcn.10005e30
cmp esi, eax
je 0x1009ad76
call fcn.10005e30
mov dword [ebp - 0x18], eax
cmp dword [eax + 0x14], 8
jb 0x1009abf7
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
mov ebx, dword [eax + 0x10]
mov ecx, esi
call fcn.10005e30
mov edi, eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x14], eax
cmp ebx, eax
ja 0x1009ac3f
mov esi, edi
cmp eax, 8
jb 0x1009ac16
mov esi, dword [edi]
push ebx
push dword [ebp - 0x18]
mov dword [edi + 0x10], ebx
push esi
call fcn.10005f10
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.10005eff
add esp, 0x14
jmp 0x1009ad76
mov ecx, esi
call fcn.1000608d
cmp ebx, eax
ja 0x1009b110
mov ecx, esi
call fcn.1000608d
mov ecx, esi
mov dword [ebp - 0x10], eax
call fcn.10005e30
mov esi, dword [ebp - 0x10]
mov ecx, ebx
or ecx, 7
mov dword [ebp - 0x20], ecx
cmp ecx, esi
ja 0x1009ac95
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, esi
sub eax, ecx
cmp edx, eax
ja 0x1009ac95
lea eax, [ecx + edx]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10005ed6
add esp, 8
mov esi, dword [eax]
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x1009aca7
or ecx, 0xffffffff
jmp 0x1009acaf
cmp ecx, 0x1000
jb 0x1009acd8
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.101e4da1
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x1009b115
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x1009ace9
test ecx, ecx
je 0x1009ace7
push ecx
call fcn.101e4da1
add esp, 4
jmp 0x1009ace9
xor eax, eax
mov dword [ebp - 0x10], eax
push ebx
push dword [ebp - 0x18]
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], esi
mov esi, dword [ebp - 0x10]
push esi
call fcn.10005f29
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.10005eff
mov ecx, dword [ebp - 0x14]
add esp, 0x14
cmp ecx, 8
jb 0x1009ad56
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x1009ad45
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009b115
mov eax, edx
push ecx
push eax
call fcn.101e4d70
mov eax, dword [ebp - 0x10]
add esp, 8
mov dword [edi], eax
jmp 0x1009ad76
push edi
call fcn.10005f6e
push eax
push 4
call fcn.10005b84
mov esi, eax
lea eax, [ebp - 0x10]
push eax
call fcn.10005f6e
add esp, 0x10
mov ecx, dword [eax]
mov dword [esi], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x102cfc80]
test eax, eax
je 0x1009ad8d
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x1009b0e6
push 0x20c
lea eax, [ebp + 0x418]
push 0
push eax
call fcn.101fd690
add esp, 0xc
lea eax, [ebp + 0x418]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x1009b0cd
xor eax, eax
push 0x412
push eax
mov word [ebp + 0x622], ax
lea eax, [ebp + 4]
push eax
call fcn.101fd690
add esp, 0xc
lea eax, [ebp + 4]
push 0x208
push eax
lea eax, [ebp + 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x1009af19
test eax, eax
je 0x1009af19
add eax, eax
cmp eax, 0x412
jae 0x1009b11f
xor ecx, ecx
mov word [ebp + eax + 4], cx
lea eax, [ebp + 4]
push eax
call fcn.10005f42
add esp, 4
mov ecx, esi
mov ebx, eax
call fcn.10005e30
mov edi, eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x18], eax
cmp ebx, eax
ja 0x1009ae52
mov esi, edi
cmp eax, 8
jb 0x1009ae4a
mov esi, dword [edi]
lea eax, [ebp + 4]
jmp 0x1009af4c
mov ecx, esi
call fcn.1000608d
cmp ebx, eax
ja 0x1009b11a
mov ecx, esi
call fcn.1000608d
mov ecx, esi
mov dword [ebp - 0x14], eax
call fcn.10005e30
mov esi, dword [ebp - 0x14]
mov ecx, ebx
or ecx, 7
mov dword [ebp - 0x20], ecx
cmp ecx, esi
ja 0x1009aea8
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, esi
sub eax, ecx
cmp edx, eax
ja 0x1009aea8
lea eax, [edx + ecx]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10005ed6
add esp, 8
mov esi, dword [eax]
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x1009aeba
or ecx, 0xffffffff
jmp 0x1009aec2
cmp ecx, 0x1000
jb 0x1009aef4
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.101e4da1
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x1009b115
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
mov dword [ebp - 0x10], eax
lea eax, [ebp + 4]
jmp 0x1009b026
test ecx, ecx
je 0x1009af0c
push ecx
call fcn.101e4da1
mov dword [ebp - 0x10], eax
add esp, 4
lea eax, [ebp + 4]
jmp 0x1009b026
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp + 4]
jmp 0x1009b026
lea eax, [ebp + 0x418]
push eax
call fcn.10005f42
add esp, 4
mov ecx, esi
mov ebx, eax
call fcn.10005e30
mov edi, eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x18], eax
cmp ebx, eax
ja 0x1009af73
mov esi, edi
cmp eax, 8
jb 0x1009af46
mov esi, dword [edi]
lea eax, [ebp + 0x418]
push ebx
push eax
push esi
mov dword [edi + 0x10], ebx
call fcn.10005f10
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.10005eff
add esp, 0x14
jmp 0x1009b0ae
mov ecx, esi
call fcn.1000608d
cmp ebx, eax
ja 0x1009b124
mov ecx, esi
call fcn.1000608d
mov ecx, esi
mov dword [ebp - 0x14], eax
call fcn.10005e30
mov esi, dword [ebp - 0x14]
mov ecx, ebx
or ecx, 7
mov dword [ebp - 0x20], ecx
cmp ecx, esi
ja 0x1009afc9
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, esi
sub eax, ecx
cmp edx, eax
ja 0x1009afc9
lea eax, [edx + ecx]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10005ed6
add esp, 8
mov esi, dword [eax]
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x1009afdb
or ecx, 0xffffffff
jmp 0x1009afe3
cmp ecx, 0x1000
jb 0x1009b00c
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.101e4da1
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x1009b115
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x1009b01d
test ecx, ecx
je 0x1009b01b
push ecx
call fcn.101e4da1
add esp, 4
jmp 0x1009b01d
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x418]
push ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], esi
mov esi, dword [ebp - 0x10]
push eax
push esi
call fcn.10005f29
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.10005eff
mov ecx, dword [ebp - 0x18]
add esp, 0x14
cmp ecx, 8
jb 0x1009b08e
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x1009b07d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009b115
mov eax, edx
push ecx
push eax
call fcn.101e4d70
mov eax, dword [ebp - 0x10]
add esp, 8
mov dword [edi], eax
jmp 0x1009b0ae
push edi
call fcn.10005f6e
push eax
push 4
call fcn.10005b84
mov esi, eax
lea eax, [ebp - 0x10]
push eax
call fcn.10005f6e
add esp, 0x10
mov ecx, dword [eax]
mov dword [esi], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x102cfc80]
test eax, eax
je 0x1009ad8d
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x1009b0e6
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x102cfc80]
test eax, eax
je 0x1009b0e4
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
mov dword [ebp], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x624]
xor ecx, ebp
call fcn.101e48f0
lea esp, [ebp + 0x628]
pop ebp
ret
call fcn.1000604b
call fcn.10205f6e
call fcn.1000604b
call fcn.101e524c
call fcn.1000604b
int3