Function at 0x6d08519b
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x6d0fb630]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x30
mov eax, 0x6d0b65b3
call fcn.6d0b4001
test byte [0x6d0fde0c], 1
mov eax, dword [ebp + 0x420]
mov esi, dword [ebp + 0x41c]
mov dword [ebp - 0x28], eax
jne 0x6d0851f0
or dword [0x6d0fde0c], 1
and dword [0x6d0fde08], 0
push 0x6d0b8f6a
call fcn.6d0b42b2
pop ecx
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov ecx, 0x6d0fde08
call fcn.6d08381f
test eax, eax
jne 0x6d0853c1
mov eax, dword [esi]
push str.java_lang_System
push esi
mov dword [ebp - 0x18], 1
call dword [eax + 0x18]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x6d08535d
mov ecx, dword [esi]
push str._Ljava_lang_String__Ljava_lang_String_
push str.getProperty
push eax
push esi
call dword [ecx + 0x1c4]
mov ebx, eax
test ebx, ebx
je 0x6d08535d
mov edi, str.java.io.tmpdir
push edi
call dword [sym.imp.MSVCR100.dll_wcslen]
pop ecx
mov ecx, dword [esi]
push eax
push edi
push esi
call dword [ecx + 0x28c]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x6d085343
push eax
push ebx
push dword [ebp - 0x20]
push esi
call fcn.6d02d907
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], edi
xor ebx, ebx
mov byte [ebp - 4], 3
cmp edi, ebx
je 0x6d08532f
push edi
push esi
lea ecx, [ebp - 0x1c]
call fcn.6d071d76
mov eax, dword [eax]
mov byte [ebp - 4], 4
cmp eax, ebx
jne 0x6d0852b3
mov eax, 0x6d0cf238
push eax
mov ecx, 0x6d0fde08
call fcn.6d0850cb
push dword [ebp - 0x1c]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCR100.dll_free]
pop ecx
lea eax, [ebp]
push eax
push ebx
push ebx
push 0x24
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
jns 0x6d0852f9
push ebx
push 0x6d0d2e88
call fcn.6d0af7ad
pop ecx
pop ecx
push 0
push ebx
call fcn.6d0b4d10
lea eax, [ebp]
push 0x6d0d2e84
push eax
call dword [sym.imp.MSVCR100.dll_wcscat]
mov eax, dword [0x6d0fde08]
pop ecx
pop ecx
test eax, eax
je 0x6d085317
mov eax, dword [eax]
jmp 0x6d085319
xor eax, eax
lea ecx, [ebp]
push ecx
push eax
call dword [sym.imp.MSVCR100.dll__wcsicmp]
mov ebx, eax
neg ebx
pop ecx
sbb ebx, ebx
pop ecx
inc ebx
jmp 0x6d085332
mov ebx, dword [ebp - 0x18]
mov byte [ebp - 4], 2
test edi, edi
je 0x6d085346
mov eax, dword [esi]
push edi
push esi
call dword [eax + 0x5c]
jmp 0x6d085346
mov ebx, dword [ebp - 0x18]
cmp dword [ebp - 0x2c], 0
mov byte [ebp - 4], 1
je 0x6d085359
push dword [ebp - 0x2c]
mov eax, dword [esi]
push esi
call dword [eax + 0x5c]
test ebx, ebx
je 0x6d0853ae
lea eax, [ebp]
push eax
xor eax, eax
push eax
push eax
push 0x8020
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
jns 0x6d08538f
push edi
push str.Error:_08x_in_SHGetFolderPath__NULL__CSIDL_INTERNET_CACHECSIDL_FLAG_CREATE__NULL__0__szPath_
call fcn.6d0af7ad
pop ecx
pop ecx
push 0
push edi
jmp 0x6d0852f4
lea eax, [ebp]
push 0x6d0d2e84
push eax
call dword [sym.imp.MSVCR100.dll_wcscat]
pop ecx
pop ecx
lea eax, [ebp]
push eax
mov ecx, 0x6d0fde08
call fcn.6d0850cb
cmp dword [ebp - 0x20], 0
mov byte [ebp - 4], 0
je 0x6d0853c1
push dword [ebp - 0x20]
mov eax, dword [esi]
push esi
call dword [eax + 0x5c]
mov ecx, dword [ebp - 0x28]
push 0x6d0fde08
call fcn.6d085098
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.6d0b3eb2
add ebp, 0x414
leave
ret