Function at 0x10003ace
Capabilities:
Get disk information
Get hostname

Disassembly:
push ebp
sub esp, 0x48
mov eax, 0x1001b217
call fcn.1001ac48
sub esp, 0x240
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], ebx
call fcn.10002bc1
push esi
sub esp, 0x18
mov byte [ebp - 4], 1
lea eax, [ebp + 0x54]
mov ecx, esp
push eax
call fcn.10004e94
lea ecx, [ebp - 0x4c]
call fcn.10002c90
test al, al
je 0x10003d56
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], ebx
mov dword [ebp + 0x30], ebx
mov dword [ebp + 0x24], ebx
lea eax, [ebp + 0x28]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x4c]
call fcn.10002e51
test al, al
jne 0x10003b4e
mov ecx, dword [ebp + 0x28]
test ecx, ecx
je 0x10003d56
mov eax, dword [ebp + 0x30]
sub eax, ecx
push eax
push ecx
jmp 0x10003d4f
mov eax, dword [ebp + 0x2c]
mov ebx, dword [ebp + 0x28]
sub eax, ebx
mov ecx, dword [ebp + 0x24]
cmp eax, ecx
jbe 0x10003d78
mov dl, byte [ebx + ecx]
inc ecx
mov byte [ebp + 0x4a], dl
mov dword [ebp + 0x24], ecx
cmp eax, ecx
jbe 0x10003d78
mov al, byte [ecx + ebx]
mov byte [ebp + 0x1c], al
lea eax, [ecx + 1]
mov dword [ebp + 0x24], eax
xor eax, eax
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x3c], eax
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x34], eax
push str.error
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.10004e5d
xor ecx, ecx
mov byte [ebp - 4], 4
push ecx
push ecx
push ecx
push ecx
lea eax, [ebp + 0x20]
mov dword [ebp + 0x20], ecx
push eax
push ecx
push ecx
push str.C:__
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x10003bfd
mov edx, dword [ebp + 0x20]
lea ecx, [ebp]
call fcn.1000263d
lea ecx, [ebp - 0x24]
mov dword [ebp + 0x44], eax
cmp ecx, eax
je 0x10003bf5
call fcn.10005227
mov eax, dword [ebp + 0x44]
lea edi, [ebp - 0x24]
push 6
pop ecx
mov esi, eax
rep movsd dword es:[edi], dword [esi]
and dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea ecx, [ebp]
call fcn.10005227
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp]
call fcn.10004e94
mov byte [ebp - 4], 5
lea eax, [ebp]
cmp dword [ebp + 0x14], 0x10
lea ecx, [ebp + 0x34]
push dword [ebp + 0x10]
cmovae eax, dword [ebp]
push eax
call fcn.10002b26
lea ecx, [ebp]
mov byte [ebp - 4], 4
call fcn.10005227
lea eax, [ebp + 0x18]
mov dword [ebp + 0x18], 0x100
push eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
sub esp, 0x18
lea eax, [ebp - 0x24c]
mov ecx, esp
push eax
call fcn.10004c72
lea ecx, [ebp + 0x34]
call fcn.10002b85
push 0x10022070
lea ecx, [ebp]
call fcn.10004e5d
mov byte [ebp - 4], 6
lea eax, [ebp]
cmp dword [ebp + 0x14], 0x10
lea ecx, [ebp + 0x34]
push dword [ebp + 0x10]
cmovae eax, dword [ebp]
push eax
call fcn.10002b26
lea ecx, [ebp]
mov byte [ebp - 4], 4
call fcn.10005227
mov ecx, dword [ebp + 0x40]
xor esi, esi
mov eax, dword [ebp + 0x3c]
mov dword [ebp + 0x44], 1
mov dl, byte [ebp + esi + 0x44]
mov byte [ebp + 0x4b], dl
cmp eax, ecx
je 0x10003cb7
mov byte [eax], dl
inc eax
mov dword [ebp + 0x3c], eax
jmp 0x10003cca
lea ecx, [ebp + 0x4b]
push ecx
push eax
lea ecx, [ebp + 0x38]
call fcn.10006d5e
mov ecx, dword [ebp + 0x40]
mov eax, dword [ebp + 0x3c]
inc esi
cmp esi, 4
jb 0x10003ca4
cmp byte [ebp + 0x4a], 0
je 0x10003cf4
mov byte [ebp + 0x4b], 0
cmp eax, ecx
je 0x10003ce7
mov byte [eax], 0
inc eax
mov dword [ebp + 0x3c], eax
jmp 0x10003cf4
lea ecx, [ebp + 0x4b]
push ecx
push eax
lea ecx, [ebp + 0x38]
call fcn.10006d5e
cmp byte [ebp + 0x1c], 0
je 0x10003d0c
sub esp, 0x18
mov ecx, esp
call fcn.10003492
lea ecx, [ebp + 0x34]
call fcn.10002b85
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp - 0x4c]
call fcn.10002d56
push dword [ebp + 0x1c]
mov dl, byte [ebp + 0x4a]
lea ecx, [ebp - 0x4c]
call fcn.100034d8
pop ecx
lea ecx, [ebp - 0x24]
call fcn.10005227
mov ecx, dword [ebp + 0x38]
test ecx, ecx
je 0x10003d44
mov eax, dword [ebp + 0x40]
sub eax, ecx
push eax
push ecx
call fcn.1000626d
pop ecx
pop ecx
test ebx, ebx
je 0x10003d56
mov eax, dword [ebp + 0x30]
sub eax, ebx
push eax
push ebx
call fcn.1000626d
pop ecx
pop ecx
lea ecx, [ebp - 0x4c]
call fcn.10003d7e
lea ecx, [ebp + 0x54]
call fcn.10005227
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add ebp, 0x4c
leave
ret
call fcn.10004f34
int3