Function at 0x686000
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x76f950]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x214], ebx
cmp dword [ebx + 0x68], 0
jne 0x686030
mov eax, dword [ebx + 0x4088]
add eax, dword [ebx + 0x84]
je 0x686035
mov eax, 1
mov dword [ebx + 0x8560], eax
call fcn.00663220
test eax, eax
je 0x686056
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00633732
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebx + 0x85c8]
push edi
mov edi, dword [ebx + 0x7c]
lea eax, [esi + 0x1c]
push eax
mov eax, dword [edi + 0x28]
push edi
call eax
lea eax, [esi - 0x2000]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0xffffdfff
mov dword [esi + 0x18], edi
mov eax, dword [ebx + 0x85fc]
add esp, 8
test eax, eax
je 0x686268
lea esi, [eax*4]
push esi
call fcn.0063443a
add esp, 4
mov dword [ebx + 0x8868], eax
test eax, eax
je 0x68627b
push esi
push 0
push eax
call fcn.0063ac00
mov eax, dword [ebx + 0x6c]
imul eax, dword [ebx + 0x861c]
imul eax, dword [ebx + 0x8620]
add esp, 0xc
cmp eax, 0x4000000
jb 0x68610e
mov esi, dword [ebx + 0x85fc]
shl esi, 2
push esi
call fcn.0063443a
add esp, 4
mov dword [ebx + 0x886c], eax
test eax, eax
je 0x68627b
push esi
push 0
push eax
call fcn.0063ac00
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x210], ecx
cmp dword [ebx + 0x85fc], ecx
jbe 0x686268
mov eax, dword [ebx + 0x6c]
imul eax, dword [ebx + 0x861c]
imul eax, dword [ebx + 0x8620]
lea esi, [ecx*4]
cmp eax, 0x4000000
jb 0x686227
push 0x208
call fcn.0063443a
mov ecx, dword [ebx + 0x886c]
add esp, 4
mov dword [esi + ecx], eax
mov eax, dword [ebx + 0x886c]
mov edi, dword [esi + eax]
test edi, edi
je 0x68627b
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x68627b
cmp eax, 0x104
jae 0x68627b
mov eax, dword [ebx + 0x886c]
push dword [esi + eax]
lea eax, [ebp - 0x20c]
push 0
push 0x7762fc
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x68627b
xor esi, esi
xor edx, edx
mov ecx, edi
lea esp, [esp]
mov eax, dword [ebx + 0x886c]
mov ebx, dword [ebp - 0x210]
mov eax, dword [eax + ebx*4]
mov ebx, dword [ebp - 0x214]
cmp word [eax + esi*2], 0
je 0x6861fd
mov al, byte [edx + edi]
test al, al
je 0x6861e6
mov byte [ecx], al
inc ecx
mov al, byte [edx + edi + 1]
test al, al
je 0x6861f1
mov byte [ecx], al
inc ecx
inc esi
add edx, 2
cmp esi, 0x104
jb 0x6861c0
mov ecx, dword [ebp - 0x210]
mov byte [esi + edi], 0
mov eax, dword [ebx + 0x8868]
push 0x7762bc
lea esi, [ecx*4]
add eax, esi
push edi
push eax
call fcn.00663d00
add esp, 0xc
jmp 0x686234
mov ecx, dword [ebx + 0x8868]
add ecx, esi
call fcn.00663650
test eax, eax
jne 0x68627b
mov edx, dword [ebx + 0x8868]
mov ecx, dword [ebx + 0x85f8]
mov edx, dword [esi + edx]
mov ecx, dword [ecx + esi]
call fcn.00662750
mov ecx, dword [ebp - 0x210]
inc ecx
mov dword [ebp - 0x210], ecx
cmp ecx, dword [ebx + 0x85fc]
jb 0x686122
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00633732
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.00633732
mov esp, ebp
pop ebp
ret