Function at 0x5dee60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x430
mov esi, ecx
lea ecx, [ebp - 0x43c]
mov edx, str.HOMEUSERPROFILE__.UNClibrary_std_src_syswindowspath.rsZm
push 4
call fcn.005c0410
add esp, 4
cmp dword [ebp - 0x43c], 0
je 0x5deecf
mov eax, dword [ebp - 0x434]
movsd xmm0, qword [ebp - 0x43c]
mov dword [ebp - 0x1c], eax
movsd qword [ebp - 0x24], xmm0
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x5deee8
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [esi], eax
mov dword [ebp - 0x438], edx
mov dword [ebp - 0x43c], ecx
movsd xmm0, qword [ebp - 0x43c]
movsd qword [esi + 4], xmm0
jmp 0x5df134
lea ecx, [ebp - 0x24]
mov edx, 0x6d5a24
push 0xb
call fcn.005c0410
add esp, 4
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x5deea9
call sub.KERNEL32.dll_GetCurrentProcess
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push ecx
push 0x20008
push eax
call sub.ADVAPI32.dll_OpenProcessToken
test eax, eax
je 0x5df077
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], eax
push 0x400
push 0
lea eax, [ebp - 0x43c]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [0x6dd42c]
mov esi, 0x200
xor ebx, ebx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x34], 0
cmp esi, 0x201
jae 0x5def72
jmp 0x5defb0
cmp edi, esi
mov esi, edi
jb 0x5df044
cmp esi, 0x201
jb 0x5defb0
mov ecx, dword [ebp - 0x38]
mov eax, esi
sub eax, ebx
sub ecx, ebx
cmp ecx, eax
jb 0x5def8c
mov edi, dword [ebp - 0x14]
mov ebx, esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x18], esi
jmp 0x5defbd
lea ecx, [ebp - 0x3c]
mov edx, ebx
push eax
call fcn.005d96d0
add esp, 4
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x14], eax
jmp 0x5def7f
lea edi, [ebp - 0x43c]
mov dword [ebp - 0x18], 0x200
mov dword [ebp - 0x10], edi
push 0
call sub.KERNEL32.dll_SetLastError
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], esi
push eax
push edi
push dword [ebp - 0x2c]
call sub.USERENV.dll_GetUserProfileDirectoryW
test eax, eax
je 0x5deff0
mov edi, dword [ebp - 0x24]
dec edi
test edi, edi
jne 0x5df01b
jmp 0x5df010
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x5df010
mov edi, dword [ebp - 0x24]
test edi, edi
jne 0x5df01b
nop word cs:[eax + eax]
nop dword [eax + eax]
call sub.KERNEL32.dll_GetLastError
xor edi, edi
test eax, eax
jne 0x5df082
cmp edi, esi
jne 0x5def60
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x5def60
add esi, esi
cmp esi, 0x201
jb 0x5defb0
jmp 0x5def72
mov edx, dword [ebp - 0x18]
cmp edi, edx
ja 0x5df13f
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
push edi
call fcn.005c2940
add esp, 4
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x1c]
mov al, 1
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x5df09b
jmp 0x5df0c2
mov dword [esi], 0
jmp 0x5df134
mov bl, 1
call sub.KERNEL32.dll_GetLastError
xor ecx, ecx
mov esi, eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x5df0c2
cmp dword [ebp - 0x14], 0
je 0x5df0c2
and eax, 0x7fffffff
je 0x5df0c2
push dword [ebp - 0x14]
push 0
push dword [0x6f1130]
mov dword [ebp - 0x18], esi
mov esi, ecx
call sub.KERNEL32.dll_HeapFree
mov ecx, esi
mov esi, dword [ebp - 0x18]
test bl, bl
je 0x5df0e0
mov eax, dword [ebp - 0x28]
cmp byte [ebp - 0x10], 0
mov dword [eax], 0
je 0x5df0ed
test esi, esi
je 0x5df12c
test ecx, ecx
je 0x5df12c
push ecx
jmp 0x5df11f
mov eax, dword [ebp - 0x28]
mov dword [eax], ecx
mov dword [eax + 4], esi
mov dword [eax + 8], edi
jmp 0x5df12c
cmp cl, 3
jne 0x5df12c
mov eax, dword [esi + 4]
push dword [esi]
call dword [eax]
add esp, 4
mov ecx, dword [esi + 4]
cmp dword [ecx + 4], 0
je 0x5df11e
mov eax, dword [esi]
cmp dword [ecx + 8], 9
jb 0x5df110
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x6f1130]
call sub.KERNEL32.dll_HeapFree
push esi
push 0
push dword [0x6f1130]
call sub.KERNEL32.dll_HeapFree
push dword [ebp - 0x2c]
call sub.KERNEL32.dll_CloseHandle
add esp, 0x430
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, edi
push 0x6d5e10
call fcn.0045ab50
add esp, 4
ud2