Function at 0x65d770
Capabilities:
Get common file path
Get disk information
Get hostname
Get user security identifier

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7b8d0d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2b0
mov eax, dword [0x82f184]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
lea eax, [ebp - 0x2b8]
mov dword [ebp - 0x29c], 0
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x2b8], 0x10
lea eax, [ebp - 0x34]
push eax
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x65d9e2
push ecx
xor eax, eax
mov dword [ebp - 0x2a4], 0
push 0x80
lea ecx, [ebp - 0x2b4]
mov dword [ebp - 0x2a0], 7
mov word [ebp - 0x2b4], ax
call fcn.00413330
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x29c]
cmp dword [ebp - 0x2a0], 8
lea eax, [ebp - 0x2b4]
push ecx
cmovae eax, dword [ebp - 0x2b4]
lea ecx, [ebp - 0x298]
push ecx
push eax
lea eax, [ebp - 0x2bc]
mov dword [ebp - 0x298], 0x80
push eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x2bc], 0x44
push eax
lea eax, [ebp - 0x34]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [ebp - 0x294], eax
test eax, eax
jne 0x65d8ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x65d8ed
cmp dword [ebp - 0x2bc], 0x44
ja 0x65d9d7
mov eax, dword [ebp - 0x298]
cmp eax, 0x80
jbe 0x65d8ad
push 0
push eax
lea ecx, [ebp - 0x2b4]
call fcn.004075f0
cmp dword [ebp - 0x2a0], 8
lea ecx, [ebp - 0x29c]
push ecx
lea ecx, [ebp - 0x298]
push ecx
lea eax, [ebp - 0x2b4]
cmovae eax, dword [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x2bc]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x34]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [ebp - 0x294], eax
lea ecx, [ebp - 0x2b4]
mov dword [ebp - 4], 0xffffffff
call fcn.00404490
cmp dword [ebp - 0x294], 0
je 0x65d9e2
mov dword [ebp - 4], 1
xor eax, eax
mov word [ebp - 0x2b4], ax
mov dword [ebp - 0x2bc], eax
lea eax, [ebp - 0x2bc]
push eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x2a4], 0
push eax
mov dword [ebp - 0x2a0], 7
mov dword [ebp - 0x29c], 1
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
je 0x65d992
mov edx, dword [ebp - 0x2bc]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x294], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x65d966
sub ecx, dword [ebp - 0x294]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2b4]
call fcn.004044f0
push dword [ebp - 0x2bc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x2b4]
cmp esi, eax
je 0x65d9d7
mov ecx, esi
call fcn.00404490
movups xmm0, xmmword [ebp - 0x2b4]
xor eax, eax
mov word [ebp - 0x2b4], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x2a4]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x2a4], 0
mov dword [ebp - 0x2a0], 7
lea ecx, [ebp - 0x2b4]
call fcn.00404490
push 0x104
lea eax, [ebp - 0x290]
mov dword [edi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x65da55
lea eax, [ebp - 0x290]
push 0x7da520
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcspbrk]
add esp, 8
test eax, eax
je 0x65da1d
xor ecx, ecx
mov word [eax + 2], cx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x294]
mov dword [ebp - 0x294], 0
push eax
push 0
push 0
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x65da55
mov eax, dword [ebp - 0x294]
mov dword [edi], eax
jmp 0x65da5b
mov dword [edi], 0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0076d59e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret