Function at 0x1003a630
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x628]
sub esp, 0x628
push 0xffffffffffffffff
push 0x1006c8c8
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 0x1003a6b6
push 0x1008d768
mov ecx, esi
call fcn.1000a400
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.10003e2b
mov al, 1
jmp 0x1003aa1d
push 0x20c
lea eax, [ebp + 0x418]
push 0
push eax
call fcn.10048ed0
add esp, 0xc
lea eax, [ebp + 0x418]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x1003aa0c
xor eax, eax
push 0x412
push eax
mov word [ebp + 0x622], ax
lea eax, [ebp + 4]
push eax
call fcn.10048ed0
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 0x1003a873
test eax, eax
je 0x1003a873
add eax, eax
cmp eax, 0x412
jae 0x1003aa4a
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 0x1003a796
mov esi, edi
cmp eax, 8
jb 0x1003a76c
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 0x1003a6a0
mov ecx, esi
call fcn.10002ee1
cmp ebx, eax
ja 0x1003aa40
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 0x1003a7ec
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, esi
sub eax, ecx
cmp edx, eax
ja 0x1003a7ec
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 0x1003a7fe
or ecx, 0xffffffff
jmp 0x1003a806
cmp ecx, 0x1000
jb 0x1003a82f
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.10045a3f
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x1003aa45
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x1003a840
test ecx, ecx
je 0x1003a83e
push ecx
call fcn.10045a3f
add esp, 4
jmp 0x1003a840
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 0x1003a9a8
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 0x1003a8cd
mov esi, edi
cmp eax, 8
jb 0x1003a8a0
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 0x1003a6a0
mov ecx, esi
call fcn.10002ee1
cmp ebx, eax
ja 0x1003aa4f
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 0x1003a923
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, esi
sub eax, ecx
cmp edx, eax
ja 0x1003a923
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 0x1003a935
or ecx, 0xffffffff
jmp 0x1003a93d
cmp ecx, 0x1000
jb 0x1003a966
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.10045a3f
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x1003aa45
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x1003a977
test ecx, ecx
je 0x1003a975
push ecx
call fcn.10045a3f
add esp, 4
jmp 0x1003a977
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 0x1003a9e7
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x1003a9d3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003aa45
mov eax, edx
push ecx
push eax
call fcn.10045a6f
mov eax, dword [ebp - 0x10]
add esp, 8
mov dword [edi], eax
jmp 0x1003a6a0
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 0x1003a6a0
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.10045825
lea esp, [ebp + 0x628]
pop ebp
ret
call fcn.10002e9f
call fcn.1004eea7
call fcn.1004595c
call fcn.10002e9f
int3