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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10019db5
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
mov eax, dword [0x10023018]
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 - 4], 1
mov dword [ebp - 0x1c8], eax
mov dword [ebp - 0x1bc], eax
lea eax, [ebp - 0x1c8]
push eax
push 0x1011f260
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
xor ebx, ebx
test eax, eax
je 0x10012c3f
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x1cc]
push ecx
push ebx
push ebx
lea edx, [ebp - 0x1b0]
push edx
mov dword [ebp - 0x1b0], 0x5c3a43
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
setne al
cmp al, bl
je 0x10012c3f
lea eax, [ebp - 0x1bc]
push eax
push 0x10027a28
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x10012c3f
mov edi, 0x1011f260
call fcn.100126a0
mov edi, 0x10027a28
mov esi, eax
call fcn.100126a0
mov ecx, dword [ebp - 0x1cc]
add eax, esi
mov esi, dword [sym.imp.MSVCR100.dll_sprintf]
lea eax, [eax + ecx + 0x1f3a7]
push eax
lea edx, [ebp - 0x1b0]
push edx
push 0x10026c50
mov word [ebp - 0x1b0], 0x6425
mov byte [ebp - 0x1ae], bl
call esi
lea eax, [ebp - 0x1c4]
push eax
call dword [sym.imp.MSVCR100.dll__time64]
lea ecx, [ebp - 0x1c4]
push ecx
mov dword [ebp - 0x1c4], eax
mov dword [ebp - 0x1c0], 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 - 0x134]
push ecx
call fcn.100125b0
add esp, 0x24
mov edi, eax
mov esi, 0x10025870
mov byte [ebp - 4], 2
call fcn.10001070
cmp dword [ebp - 0x120], 0x10
jb 0x10012886
mov edx, dword [ebp - 0x134]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, 0x3ce5e4ae
lea eax, [ebp - 0x190]
call fcn.10016620
mov dword [ebp - 0x1b4], eax
mov byte [ebp - 4], 3
sub esp, 0x1c
mov dword [ebp - 0x1b0], esp
mov dword [ebp - 0x1b8], esp
sub esp, 0x1c
mov dword [ebp - 0x118], esp
mov dword [ebp - 0x1b0], esp
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x118], esp
mov eax, 0x10026c50
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
lea ecx, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x100128e0
sub eax, ecx
mov edi, eax
mov eax, 0x10026c50
call fcn.100011b0
lea edi, [ebp - 0x188]
call fcn.10017540
add esp, 0x1c
mov esi, eax
mov ecx, 0x3ce5e4ae
lea eax, [ebp - 0x118]
call fcn.10016620
lea ecx, [ebp - 0x134]
push ecx
mov ebx, eax
mov byte [ebp - 4], 5
call fcn.10016670
mov ecx, eax
mov eax, esi
lea ebx, [ebp - 0x16c]
mov byte [ebp - 4], 6
call fcn.10016740
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x1b0]
push eax
mov eax, dword [ebp - 0x1b4]
call fcn.100167b0
mov edi, dword [ebp - 0x1b8]
add esp, 8
call fcn.10017540
add esp, 0x1c
lea edi, [ebp - 0x150]
call fcn.10017540
add esp, 0x1c
mov edi, eax
mov esi, 0x1002588c
mov byte [ebp - 4], 8
call fcn.10001070
mov esi, 0x10
cmp dword [ebp - 0x13c], esi
jb 0x1001299c
mov edx, dword [ebp - 0x150]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ebx, ebx
mov edi, 0xf
mov dword [ebp - 0x13c], edi
mov dword [ebp - 0x140], ebx
mov byte [ebp - 0x150], bl
cmp dword [ebp - 0x158], esi
jb 0x100129cd
mov eax, dword [ebp - 0x16c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x158], edi
mov dword [ebp - 0x15c], ebx
mov byte [ebp - 0x16c], bl
cmp dword [ebp - 0x120], esi
jb 0x100129f7
mov ecx, dword [ebp - 0x134]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [ebp - 0x120], edi
mov dword [ebp - 0x124], ebx
mov byte [ebp - 0x134], bl
mov dword [ebp - 0x118], eax
mov word [ebp - 0x114], ax
cmp dword [ebp - 0x174], esi
jb 0x10012a30
mov edx, dword [ebp - 0x188]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [0x10025884], esi
jb 0x10012a45
mov eax, dword [0x10025870]
mov dword [ebp - 0x1b4], eax
jmp 0x10012a4f
mov dword [ebp - 0x1b4], 0x10025870
mov dword [ebp - 0x1b0], 0x3d6526
mov byte [ebp - 4], 9
sub esp, 0x1c
mov esi, esp
lea ecx, [ebp - 0x1b0]
mov eax, 0x10026c50
mov dword [ebp - 0x1b8], ecx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x118], esp
mov byte [esi], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10012a84
sub eax, ecx
mov edi, eax
mov eax, 0x10026c50
call fcn.100011b0
lea edi, [ebp - 0x150]
call fcn.10017540
mov ecx, eax
lea eax, [ebp + 0x24]
lea ebx, [ebp - 0x16c]
mov byte [ebp - 4], 0xa
call fcn.10016800
mov byte [ebp - 4], 0xb
push eax
mov eax, dword [ebp - 0x1b8]
lea ecx, [ebp - 0x134]
call fcn.100167b0
push eax
mov eax, dword [ebp - 0x1b4]
lea ecx, [ebp - 0x1ac]
mov byte [ebp - 4], 0xc
call fcn.100167b0
add esp, 0x24
mov edi, 0x10
cmp dword [ebp - 0x120], edi
jb 0x10012b04
mov edx, dword [ebp - 0x134]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ebx, ebx
mov esi, 0xf
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x124], ebx
mov byte [ebp - 0x134], bl
cmp dword [ebp - 0x158], edi
jb 0x10012b35
mov eax, dword [ebp - 0x16c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x158], esi
mov dword [ebp - 0x15c], ebx
mov byte [ebp - 0x16c], bl
cmp dword [ebp - 0x13c], edi
jb 0x10012b5f
mov ecx, dword [ebp - 0x150]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x13c], esi
mov dword [ebp - 0x140], ebx
mov byte [ebp - 0x150], bl
sub esp, 0x1c
mov byte [ebp - 4], 0x11
mov ecx, esp
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], esi
mov dword [ebp - 0x1b0], ebx
mov dword [ebp - 0x118], esp
mov byte [ecx], bl
push 0x10025870
or eax, 0xffffffff
xor ebx, ebx
call fcn.10001330
sub esp, 0x1c
mov byte [ebp - 4], 0x12
mov ecx, esp
lea edx, [ebp - 0x1ac]
mov dword [ebp - 0x1b8], esp
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push edx
or eax, 0xffffffff
mov byte [ecx], bl
call fcn.10001330
sub esp, 0x1c
mov ecx, esp
mov byte [ebp - 4], 0x13
lea eax, [ebp + 8]
mov dword [ebp - 0x1b4], esp
push eax
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
or eax, 0xffffffff
mov byte [ecx], bl
call fcn.10001330
lea ecx, [ebp - 0x188]
mov byte [ebp - 4], 0x11
call fcn.10011e30
add esp, 0x54
mov edi, eax
mov esi, 0x10025854
mov byte [ebp - 4], 0x14
call fcn.10001070
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov esi, 0x10
cmp dword [ebp - 0x174], esi
jb 0x10012c27
mov ecx, dword [ebp - 0x188]
push ecx
call edi
add esp, 4
cmp dword [ebp - 0x198], esi
jb 0x10012c3b
mov edx, dword [ebp - 0x1ac]
push edx
call edi
add esp, 4
xor ebx, ebx
jmp 0x10012c4a
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov esi, 0x10
mov ecx, dword [0x1002588c]
cmp dword [0x100258a0], esi
jae 0x10012c5d
mov ecx, 0x1002588c
mov eax, dword [0x10025854]
cmp dword [0x10025868], esi
jae 0x10012c70
mov eax, 0x10025854
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10012c90
cmp dl, bl
je 0x10012c8c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10012c90
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x10012c70
xor eax, eax
jmp 0x10012c95
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x10012cc9
cmp dword [ebp + 0x1c], esi
jb 0x10012ca7
mov eax, dword [ebp + 8]
push eax
call edi
add esp, 4
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], ebx
mov byte [ebp + 8], bl
cmp dword [ebp + 0x38], esi
jb 0x10012cc2
mov ecx, dword [ebp + 0x24]
push ecx
call edi
add esp, 4
mov eax, 0x94000200
jmp 0x10012cf7
cmp dword [ebp + 0x1c], esi
jb 0x10012cd7
mov edx, dword [ebp + 8]
push edx
call edi
add esp, 4
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], ebx
mov byte [ebp + 8], bl
cmp dword [ebp + 0x38], esi
jb 0x10012cf2
mov eax, dword [ebp + 0x24]
push eax
call edi
add esp, 4
mov eax, 0x94000100
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.10017c55
mov esp, ebp
pop ebp
ret