Function at 0x405980
Capabilities:
Get disk information
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a08e
mov eax, dword fs:[0]
push eax
sub esp, 0x1c8
mov eax, dword [0x40f484]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, 0xff
mov dword [ebp - 0x1cc], eax
mov dword [ebp - 0x1c4], eax
lea eax, [ebp - 0x1cc]
push eax
push 0x504d00
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x405d13
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x1c8]
push ecx
push ebx
push ebx
lea edx, [ebp - 0x1b8]
push edx
mov dword [ebp - 0x1b8], 0x5c3a43
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
setne al
cmp al, bl
je 0x405d13
lea eax, [ebp - 0x1c4]
push eax
push 0x410890
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x405d13
push 0x504d00
call fcn.00401e20
push 0x410890
mov esi, eax
call fcn.00401e20
mov ecx, dword [ebp - 0x1c8]
add eax, esi
mov esi, dword [sym.imp.MSVCR100.dll_sprintf]
lea eax, [eax + ecx + 0x1f3a7]
push eax
lea edx, [ebp - 0x1b8]
push edx
push 0x4104a0
mov word [ebp - 0x1b8], 0x6425
mov byte [ebp - 0x1b6], bl
call esi
lea eax, [ebp - 0x1c0]
push eax
call dword [sym.imp.MSVCR100.dll__time64]
lea ecx, [ebp - 0x1c0]
push ecx
mov dword [ebp - 0x1c0], eax
mov dword [ebp - 0x1bc], edx
call dword [sym.imp.MSVCR100.dll__gmtime64]
mov edx, dword [eax + 4]
push edx
lea eax, [ebp - 0x110]
push str._02i
push eax
call esi
lea ecx, [ebp - 0x144]
push 0x14
push ecx
call fcn.00405880
add esp, 0x30
push eax
mov ecx, 0x40f154
mov dword [ebp - 4], ebx
call fcn.00401740
mov esi, 0x10
cmp dword [ebp - 0x130], esi
jb 0x405ae2
mov edx, dword [ebp - 0x144]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [0x40f154]
cmp dword [0x40f168], esi
jae 0x405af4
mov eax, 0x40f154
push eax
mov dword [ebp - 0x118], 0x3d327826
mov byte [ebp - 0x114], bl
lea eax, [ebp - 0x118]
push eax
sub esp, 0x1c
mov esi, esp
mov edi, 0xf
mov eax, 0x4104a0
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov dword [ebp - 4], 1
mov dword [ebp - 0x1b8], esp
mov byte [esi], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x405b33
sub eax, ecx
push eax
push 0x4104a0
mov ecx, esi
call fcn.00401600
lea ecx, [ebp - 0x144]
push ecx
call fcn.00407840
add esp, 0x20
mov esi, eax
push 0x72c554
lea ecx, [ebp - 0x128]
call fcn.004022a0
push esi
push eax
lea edx, [ebp - 0x17c]
push edx
mov byte [ebp - 4], 3
call fcn.00404ea0
add esp, 0xc
push eax
lea eax, [ebp - 0x160]
push eax
mov byte [ebp - 4], 4
call fcn.00404ef0
add esp, 0xc
push eax
lea ecx, [ebp - 0x198]
push ecx
mov byte [ebp - 4], 5
call fcn.00404ef0
add esp, 0xc
mov esi, 0x10
cmp dword [ebp - 0x14c], esi
jb 0x405bc3
mov edx, dword [ebp - 0x160]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x150], ebx
mov byte [ebp - 0x160], bl
cmp dword [ebp - 0x168], esi
jb 0x405bec
mov eax, dword [ebp - 0x17c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x168], edi
mov dword [ebp - 0x16c], ebx
mov byte [ebp - 0x17c], bl
xor eax, eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], eax
mov word [ebp - 0x11c], ax
mov byte [ebp - 0x11a], al
cmp dword [ebp - 0x130], esi
jb 0x405c36
mov ecx, dword [ebp - 0x144]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x130], edi
mov dword [ebp - 0x134], ebx
mov byte [ebp - 0x144], bl
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1b8], esp
push 0xffffffffffffffff
xor eax, eax
push ebx
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push 0x40f154
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x118], eax
mov byte [ebp - 0x114], al
mov byte [ecx], bl
call fcn.00401460
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1d4], esp
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x198]
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push edx
mov byte [ebp - 4], 0xc
mov byte [ecx], bl
call fcn.00401460
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1d0], esp
push 0x11
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push str.vip_playstory.xyz
mov byte [ebp - 4], 0xd
mov byte [ecx], bl
call fcn.00401600
lea eax, [ebp - 0x1b4]
push eax
mov byte [ebp - 4], 0xb
call fcn.00405200
add esp, 0x58
push eax
mov ecx, 0x40f138
mov byte [ebp - 4], 0xe
call fcn.00401740
cmp dword [ebp - 0x1a0], esi
jb 0x405cfc
mov ecx, dword [ebp - 0x1b4]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [ebp - 0x184], esi
jb 0x405d13
mov edx, dword [ebp - 0x198]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004091ae
mov esp, ebp
pop ebp
ret