Function at 0x401000
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x608
push ebp
mov ebp, dword [esp + 0x614]
push esi
mov esi, dword [esp + 0x61c]
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x401251
cmp esi, 0x14
jbe 0x401251
mov ecx, 0x80
lea edi, [esp + 0x414]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x618]
lea eax, [esp + 0x414]
push eax
push ecx
call fcn.004013c0
add esp, 8
test eax, eax
je 0x4010e3
mov al, byte [esp + 0x428]
lea esi, [esp + 0x428]
cmp al, 0x20
jne 0x401078
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je 0x401070
push 0x20
push esi
call fcn.004a5260
add esp, 8
test eax, eax
je 0x40108a
mov byte [eax], 0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4010e3
cmp dword [esp + 0x620], ecx
jbe 0x401251
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push str.GetPhysicalDriveInfoInNT
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [ebp + 0x14], al
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x608
ret 0xc
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x16]
mov byte [esp + 0x14], 0
mov byte [esp + 0x15], 0
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x214]
push eax
mov eax, dword [esp + 0x61c]
push ecx
push edx
push eax
call fcn.00401470
test eax, eax
je 0x4011a6
mov al, byte [esp + 0x14]
lea esi, [esp + 0x14]
cmp al, 0x20
jne 0x401137
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je 0x40112f
lea ecx, [esp + 0x14]
push 0x20
push ecx
call fcn.004a5260
add esp, 8
test eax, eax
je 0x40114d
mov byte [eax], 0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4011a6
cmp ecx, dword [esp + 0x620]
jae 0x401251
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push str.ReadIdeSerialNumberbyScsi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [ebp + 0x14], al
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x608
ret 0xc
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x14]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x214]
push eax
mov eax, dword [esp + 0x61c]
push ecx
push edx
push eax
call fcn.004015f0
test eax, eax
je 0x401251
mov al, byte [esp + 0x14]
lea esi, [esp + 0x14]
cmp al, 0x20
jne 0x4011ea
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je 0x4011e2
push 0x20
push esi
call fcn.004a5260
add esp, 8
test eax, eax
je 0x4011fc
mov byte [eax], 0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x401251
cmp ecx, dword [esp + 0x620]
jae 0x401251
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push str.GetDiskSerialByISQP
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [ebp + 0x14], al
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x608
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x608
ret 0xc