Function at 0x404cb9
Capabilities:
Create process on windows
Get common file path
Get disk information
Get disk size
Get file attributes
Get session user name

Disassembly:
mov eax, 0x411da6
call fcn.00408390
sub esp, 0x5fc
mov eax, dword [0x4173a0]
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push 0x41382c
push ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x594], ecx
call dword [sym.imp.KERNEL32.dll_SearchPathA]
push 0x413824
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0x41381c
lea ecx, [ebp - 0x2c]
call fcn.00402d00
lea eax, [ebp - 0x2c]
push eax
push eax
lea eax, [ebp - 0x5c4]
push eax
mov dword [ebp - 4], ebx
call fcn.00402d40
add esp, 0xc
or esi, 0xffffffff
push esi
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00402ac0
push ebx
push 1
lea ecx, [ebp - 0x5c4]
mov byte [ebp - 4], bl
call fcn.00402480
push esi
push ebx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004029d0
lea eax, [ebp - 0x2c]
push eax
push eax
lea eax, [ebp - 0x5c4]
push eax
call fcn.00402d40
add esp, 0xc
push esi
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00402ac0
push ebx
push 1
lea ecx, [ebp - 0x5c4]
mov byte [ebp - 4], bl
call fcn.00402480
push esi
push ebx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004029d0
mov esi, 0x104
push esi
lea eax, [ebp - 0x288]
push ebx
push eax
call fcn.00408590
mov ecx, dword [ebp - 0x594]
add esp, 0xc
call fcn.00402ea9
push esi
test eax, eax
lea eax, [ebp - 0x288]
push eax
je 0x404dc2
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x404dc8
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push edi
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x80]
call fcn.00402d00
push 0x413810
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 3
call fcn.004032b5
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push ebx
push ebx
call edi
push ebx
push ebx
call edi
push ebx
push ebx
call edi
push ebx
push ebx
call edi
push ebx
push 0x41380c
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
push ebx
push ebx
push ebx
push 0x413804
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push ebx
push ebx
push 0x4137fc
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov edi, dword [ebp - 0x594]
push ebx
mov ecx, edi
call fcn.0040377d
add edi, 0x1c
push edi
lea ecx, [ebp - 0x64]
call fcn.00402ca0
push esi
lea eax, [ebp - 0x38c]
push ebx
push eax
mov byte [ebp - 4], 4
call fcn.00408590
mov eax, dword [ebp - 0x60]
add esp, 0xc
cmp dword [ebp - 0x4c], 0x10
jae 0x404e62
lea eax, [ebp - 0x60]
push esi
lea ecx, [ebp - 0x38c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0x413728
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004033ae
add esp, 0xc
lea eax, [ebp - 0x38c]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 5
call fcn.004032b5
push 0x4137f4
lea ecx, [ebp - 0x48]
call fcn.004032b5
push 0x10
pop ecx
xor eax, eax
push 0x40
lea edi, [ebp - 0x604]
rep stosd dword es:[edi], eax
pop ecx
mov byte [ebp - 0x184], bl
lea edi, [ebp - 0x183]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x598]
push eax
lea eax, [ebp - 0x184]
push eax
mov dword [ebp - 0x608], 0x44
mov dword [ebp - 0x5dc], 1
mov word [ebp - 0x5d8], 0xa
mov dword [ebp - 0x600], 0x4137d4
mov dword [ebp - 0x598], esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov esi, eax
lea eax, [ebp - 0x184]
push eax
call fcn.00408438
pop ecx
push 0x7f
xor eax, eax
cmp dword [ebp - 0x30], 0x10
mov byte [ebp - 0x58c], bl
pop ecx
lea edi, [ebp - 0x58b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 0x44]
pop edi
jae 0x404f3a
lea eax, [ebp - 0x44]
push 0x100
lea ecx, [ebp - 0x58c]
push ecx
push 0xffffffffffffffff
push eax
push 8
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x184]
push 0x413700
push eax
call fcn.0041050e
test eax, eax
pop ecx
pop ecx
je 0x404fab
cmp esi, ebx
je 0x404fab
lea eax, [ebp - 0x5a8]
push eax
lea eax, [ebp - 0x608]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x58c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x404ff7
push dword [ebp - 0x5a4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x5a8]
call esi
jmp 0x404ff7
lea eax, [ebp - 0x590]
push 0x4137c4
push eax
call fcn.00402dd9
test eax, eax
pop ecx
pop ecx
je 0x404ff7
lea eax, [ebp - 0x5a8]
push eax
lea eax, [ebp - 0x608]
push eax
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
lea eax, [ebp - 0x58c]
push eax
push ebx
push dword [ebp - 0x590]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
push dword [ebp - 0x590]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
push ebx
inc esi
lea ecx, [ebp - 0x48]
push esi
call fcn.00402480
push ebx
lea ecx, [ebp - 0x64]
push esi
call fcn.00402480
push ebx
lea ecx, [ebp - 0x80]
push esi
call fcn.00402480
push ebx
lea ecx, [ebp - 0x2c]
push esi
call fcn.00402480
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0040857d
leave
ret