Function at 0x1009d230
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x628]
sub esp, 0x628
push 0xffffffffffffffff
push 0x1023cba8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x102ca474]
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 [0x102d3c80]
mov dword [ebp], 0
mov dword [ebp], 0x102d3c80
test eax, eax
je 0x1009d289
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov ecx, 0x102d3c90
call fcn.100086fc
test al, al
jne 0x1009d464
mov ecx, 0x102d3c90
call fcn.10005e30
cmp esi, eax
je 0x1009d446
call fcn.10005e30
mov dword [ebp - 0x18], eax
cmp dword [eax + 0x14], 8
jb 0x1009d2c7
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 0x1009d30f
mov esi, edi
cmp eax, 8
jb 0x1009d2e6
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 0x1009d446
mov ecx, esi
call fcn.1000608d
cmp ebx, eax
ja 0x1009d7e0
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 0x1009d365
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, esi
sub eax, ecx
cmp edx, eax
ja 0x1009d365
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 0x1009d377
or ecx, 0xffffffff
jmp 0x1009d37f
cmp ecx, 0x1000
jb 0x1009d3a8
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.101e74f1
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x1009d7e5
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x1009d3b9
test ecx, ecx
je 0x1009d3b7
push ecx
call fcn.101e74f1
add esp, 4
jmp 0x1009d3b9
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 0x1009d426
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x1009d415
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009d7e5
mov eax, edx
push ecx
push eax
call fcn.101e74c0
mov eax, dword [ebp - 0x10]
add esp, 8
mov dword [edi], eax
jmp 0x1009d446
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 [0x102d3c80]
test eax, eax
je 0x1009d45d
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x1009d7b6
push 0x20c
lea eax, [ebp + 0x418]
push 0
push eax
call fcn.101ffde0
add esp, 0xc
lea eax, [ebp + 0x418]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x1009d79d
xor eax, eax
push 0x412
push eax
mov word [ebp + 0x622], ax
lea eax, [ebp + 4]
push eax
call fcn.101ffde0
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 0x1009d5e9
test eax, eax
je 0x1009d5e9
add eax, eax
cmp eax, 0x412
jae 0x1009d7ef
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 0x1009d522
mov esi, edi
cmp eax, 8
jb 0x1009d51a
mov esi, dword [edi]
lea eax, [ebp + 4]
jmp 0x1009d61c
mov ecx, esi
call fcn.1000608d
cmp ebx, eax
ja 0x1009d7ea
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 0x1009d578
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, esi
sub eax, ecx
cmp edx, eax
ja 0x1009d578
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 0x1009d58a
or ecx, 0xffffffff
jmp 0x1009d592
cmp ecx, 0x1000
jb 0x1009d5c4
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.101e74f1
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x1009d7e5
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
mov dword [ebp - 0x10], eax
lea eax, [ebp + 4]
jmp 0x1009d6f6
test ecx, ecx
je 0x1009d5dc
push ecx
call fcn.101e74f1
mov dword [ebp - 0x10], eax
add esp, 4
lea eax, [ebp + 4]
jmp 0x1009d6f6
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp + 4]
jmp 0x1009d6f6
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 0x1009d643
mov esi, edi
cmp eax, 8
jb 0x1009d616
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 0x1009d77e
mov ecx, esi
call fcn.1000608d
cmp ebx, eax
ja 0x1009d7f4
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 0x1009d699
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, esi
sub eax, ecx
cmp edx, eax
ja 0x1009d699
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 0x1009d6ab
or ecx, 0xffffffff
jmp 0x1009d6b3
cmp ecx, 0x1000
jb 0x1009d6dc
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.101e74f1
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x1009d7e5
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x1009d6ed
test ecx, ecx
je 0x1009d6eb
push ecx
call fcn.101e74f1
add esp, 4
jmp 0x1009d6ed
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 0x1009d75e
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x1009d74d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009d7e5
mov eax, edx
push ecx
push eax
call fcn.101e74c0
mov eax, dword [ebp - 0x10]
add esp, 8
mov dword [edi], eax
jmp 0x1009d77e
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 [0x102d3c80]
test eax, eax
je 0x1009d45d
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x1009d7b6
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x102d3c80]
test eax, eax
je 0x1009d7b4
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.101e7040
lea esp, [ebp + 0x628]
pop ebp
ret
call fcn.1000604b
call fcn.102086be
call fcn.1000604b
call fcn.101e799c
call fcn.1000604b
int3