Function at 0x680233db
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x68031884]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp + 8]
push edi
xor edi, edi
cmp eax, 2
mov ebx, 0x104
mov dword [ebp - 0x428], edi
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x41c], edi
mov dword [ebp - 0x424], edi
mov dword [esi], edi
je 0x68023450
cmp eax, 1
je 0x68023450
cmp eax, 0xc
je 0x68023450
cmp eax, 0x18
je 0x68023450
cmp eax, 3
je 0x68023444
cmp eax, 0xd
je 0x68023444
cmp eax, 0x12
jne 0x6802345a
mov dword [ebp - 0x428], 0x68006234
jmp 0x6802345a
mov dword [ebp - 0x428], 0x68006204
cmp dword [ebp + 0xc], edi
jne 0x680234fe
push esi
call fcn.68022e0a
cmp eax, edi
jne 0x680235fe
cmp dword [esi], edi
jne 0x680234fe
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.USERENV.dll_GetProfileType]
test eax, eax
jne 0x68023495
call dword [sym.imp._CKERNEL.DLL_GetLastError]
jmp 0x680235fe
test byte [ebp - 0x424], 4
jne 0x680234f4
test byte [ebp - 0x424], 1
je 0x680234b0
test byte [ebp - 0x424], 2
je 0x680234f4
lea eax, [ebp - 0x41c]
push eax
push 0xc
call fcn.68022047
cmp eax, edi
jne 0x680234d9
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x41c]
call dword [sym.imp.USERENV.dll_Ordinal_149]
cmp eax, edi
je 0x680234e0
mov esi, eax
jmp 0x68023606
push dword [ebp - 0x41c]
call dword [sym.imp._CKERNEL.DLL_CloseHandle]
mov dword [ebp - 0x41c], edi
jmp 0x68023520
mov esi, 0x80090024
jmp 0x6802361a
cmp dword [ebp + 0x10], edi
lea eax, [ebp - 0x210]
jne 0x6802352f
push eax
push edi
push edi
push 0x8023
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, edi
jne 0x680235fe
lea eax, [ebp - 0x210]
push eax
call sub._Cmvrt.DLL_wcslen
pop ecx
jmp 0x68023537
push ebx
push eax
call dword [sym.imp._CKERNEL.DLL_GetSystemDirectoryW]
mov ebx, eax
shl ebx, 1
cmp ebx, edi
jne 0x68023549
mov esi, 0x80090020
jmp 0x6802361a
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x418]
push eax
push dword [ebp + 0xc]
call fcn.68023386
cmp eax, edi
jne 0x680235fe
mov eax, dword [ebp - 0x420]
lea eax, [eax + eax - 2]
mov dword [ebp - 0x420], eax
lea eax, [eax + ebx + 0x30]
push eax
call fcn.68021ec0
cmp eax, edi
mov ecx, dword [ebp - 0x42c]
mov dword [ecx], eax
jne 0x68023595
push 8
pop esi
jmp 0x6802361a
mov edi, eax
mov ecx, ebx
mov edx, ecx
shr ecx, 2
lea esi, [ebp - 0x210]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x428]
add eax, ebx
push 0xb
mov edi, eax
pop ecx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x420]
push dword [ebp + 0xc]
mov edx, ecx
add eax, 0x2c
shr ecx, 2
mov edi, eax
lea esi, [ebp - 0x418]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [eax], 0x5c
mov byte [eax + 1], 0
mov eax, dword [ebp - 0x42c]
mov eax, dword [eax]
lea ecx, [eax + ebx + 2]
push ecx
push eax
call fcn.68022a73
test eax, eax
je 0x68023602
mov esi, eax
jmp 0x6802361a
xor esi, esi
xor edi, edi
cmp dword [ebp - 0x41c], edi
je 0x6802361a
push dword [ebp - 0x41c]
call dword [sym.imp._CKERNEL.DLL_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.68014cb9
leave
ret 0x14