Function at 0x1003a650
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x628]
sub esp, 0x628
push 0xffffffffffffffff
push 0x1006c8e8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x1008b008]
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
push 0x1008d758
lea ecx, [ebp]
mov dword [ebp], 0
call fcn.10003e08
mov dword [ebp - 4], 0
mov ecx, 0x1008d768
call fcn.100028d8
test al, al
jne 0x1003a6d6
push 0x1008d768
mov ecx, esi
call fcn.1000a3a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.10003e2b
mov al, 1
jmp 0x1003aa3d
push 0x20c
lea eax, [ebp + 0x418]
push 0
push eax
call fcn.10048ef0
add esp, 0xc
lea eax, [ebp + 0x418]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x1003aa2c
xor eax, eax
push 0x412
push eax
mov word [ebp + 0x622], ax
lea eax, [ebp + 4]
push eax
call fcn.10048ef0
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 0x1003a893
test eax, eax
je 0x1003a893
add eax, eax
cmp eax, 0x412
jae 0x1003aa6a
xor ecx, ecx
mov word [ebp + eax + 4], cx
lea eax, [ebp + 4]
push eax
call fcn.10002ab7
add esp, 4
mov ecx, esi
mov ebx, eax
call fcn.100029a0
mov edi, eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x14], eax
cmp ebx, eax
ja 0x1003a7b6
mov esi, edi
cmp eax, 8
jb 0x1003a78c
mov esi, dword [edi]
push ebx
lea eax, [ebp + 4]
mov dword [edi + 0x10], ebx
push eax
push esi
call fcn.10002a85
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.10002a74
add esp, 0x14
jmp 0x1003a6c0
mov ecx, esi
call fcn.10002ee1
cmp ebx, eax
ja 0x1003aa60
mov ecx, esi
call fcn.10002ee1
mov ecx, esi
mov dword [ebp - 0x10], eax
call fcn.100029a0
mov esi, dword [ebp - 0x10]
mov ecx, ebx
or ecx, 7
mov dword [ebp - 0x1c], ecx
cmp ecx, esi
ja 0x1003a80c
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, esi
sub eax, ecx
cmp edx, eax
ja 0x1003a80c
lea eax, [ecx + edx]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10002a23
add esp, 8
mov esi, dword [eax]
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x1003a81e
or ecx, 0xffffffff
jmp 0x1003a826
cmp ecx, 0x1000
jb 0x1003a84f
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.10045a5f
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x1003aa65
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x1003a860
test ecx, ecx
je 0x1003a85e
push ecx
call fcn.10045a5f
add esp, 4
jmp 0x1003a860
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp + 4]
push ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], esi
mov esi, dword [ebp - 0x10]
push eax
push esi
call fcn.10002a9e
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.10002a74
mov ecx, dword [ebp - 0x14]
jmp 0x1003a9c8
lea eax, [ebp + 0x418]
push eax
call fcn.10002ab7
add esp, 4
mov ecx, esi
mov ebx, eax
call fcn.100029a0
mov edi, eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x18], eax
cmp ebx, eax
ja 0x1003a8ed
mov esi, edi
cmp eax, 8
jb 0x1003a8c0
mov esi, dword [edi]
push ebx
lea eax, [ebp + 0x418]
mov dword [edi + 0x10], ebx
push eax
push esi
call fcn.10002a85
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.10002a74
add esp, 0x14
jmp 0x1003a6c0
mov ecx, esi
call fcn.10002ee1
cmp ebx, eax
ja 0x1003aa6f
mov ecx, esi
call fcn.10002ee1
mov ecx, esi
mov dword [ebp - 0x14], eax
call fcn.100029a0
mov esi, dword [ebp - 0x14]
mov ecx, ebx
or ecx, 7
mov dword [ebp - 0x20], ecx
cmp ecx, esi
ja 0x1003a943
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, esi
sub eax, ecx
cmp edx, eax
ja 0x1003a943
lea eax, [ecx + edx]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10002a23
add esp, 8
mov esi, dword [eax]
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x1003a955
or ecx, 0xffffffff
jmp 0x1003a95d
cmp ecx, 0x1000
jb 0x1003a986
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.10045a5f
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x1003aa65
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x1003a997
test ecx, ecx
je 0x1003a995
push ecx
call fcn.10045a5f
add esp, 4
jmp 0x1003a997
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.10002a9e
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.10002a74
mov ecx, dword [ebp - 0x18]
add esp, 0x14
cmp ecx, 8
jb 0x1003aa07
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x1003a9f3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003aa65
mov eax, edx
push ecx
push eax
call fcn.10045a8f
mov eax, dword [ebp - 0x10]
add esp, 8
mov dword [edi], eax
jmp 0x1003a6c0
push edi
call fcn.10002bc4
push eax
push 4
call fcn.1000235c
mov esi, eax
lea eax, [ebp - 0x10]
push eax
call fcn.10002bc4
add esp, 0x10
mov ecx, dword [eax]
mov dword [esi], ecx
jmp 0x1003a6c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.10003e2b
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 + 0x624]
xor ecx, ebp
call fcn.10045845
lea esp, [ebp + 0x628]
pop ebp
ret
call fcn.10002e9f
call fcn.1004eec7
call fcn.1004597c
call fcn.10002e9f
int3