Function at 0x4017d0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x466126
mov eax, dword fs:[0]
push eax
sub esp, 0x3f4
mov eax, dword [0x478ec8]
xor eax, esp
mov dword [esp + 0x3f0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x478ec8]
xor eax, esp
push eax
lea eax, [esp + 0x408]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x34], ebx
call fcn.00403d90
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov edi, ebx
jmp 0x401824
mov edi, dword [esp + 0x1c]
mov ebp, vtable.RDDevice.0
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xd8], ebx
mov dword [esp + 0x410], ebx
push 0x200
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x34], ebx
call fcn.0042ff51
add esp, 4
push 0x46fc50
push eax
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
push str.DeviceHarddisk_dPartition0
lea edx, [esp + 0x20c]
mov byte [esp + 0x418], 1
call fcn.004128a0
add esp, 8
lea eax, [esp + 0x204]
push eax
lea esi, [esp + 0x24]
call fcn.0040f920
test eax, eax
jne 0x401923
push edi
call fcn.0040fb90
cmp eax, ebx
jne 0x401923
mov byte [esp + 0x410], bl
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
mov edi, 1
je 0x4018d4
cmp eax, ebx
je 0x4018d4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
mov esi, dword [esp + 0x2c]
push 0x46fc50
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [esp + 0x24], ebx
je 0x4018f2
cmp edi, ebx
je 0x401f84
push esi
call fcn.004410ea
mov dword [esp + 0x414], 0xffffffff
mov eax, dword [esp + 0xd4]
add esp, 4
cmp eax, ebx
je 0x401f48
push eax
call fcn.00440ac8
add esp, 4
jmp 0x401f48
push edi
mov dword [esp + 0x58], edi
call fcn.00402d90
add esp, 4
push edi
mov dword [esp + 0x5c], eax
call fcn.00402f30
add esp, 4
push 0x18
push ebx
push 0x70000
lea ebx, [esp + 0x48]
xor ecx, ecx
lea esi, [esp + 0x2c]
mov dword [esp + 0x68], eax
call fcn.0040fd40
test eax, eax
je 0x401ee0
cmp dword [esp + 0x44], 0xc
jne 0x401ee0
push edi
call fcn.00414f30
add esp, 4
test eax, eax
je 0x401993
mov byte [esp + 0x410], 0
mov dword [esp + 0x20], ebp
call fcn.0040fce0
mov ecx, dword [esp + 0x2c]
push ecx
jmp 0x401f1f
mov ebx, dword [esp + 0x1c]
push ebx
lea edi, [esp + 0xe0]
call fcn.00402490
test eax, eax
jne 0x4019c6
mov byte [esp + 0x410], al
lea esi, [esp + 0x20]
mov dword [esp + 0x20], ebp
call fcn.0040fce0
mov edx, dword [esp + 0x2c]
push edx
jmp 0x401f1f
mov ecx, 0x1a
lea esi, [esp + 0xdc]
lea edi, [esp + 0x64]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
lea ebx, [ebx]
test edi, edi
je 0x401a47
push edi
push ebx
lea eax, [esp + 0x18c]
push 0x46f834
push eax
call fcn.00442944
lea ecx, [esp + 0x154]
push 0x46f8b9
push ecx
call fcn.00442944
mov edx, dword [esp + 0x74]
add esp, 0x18
push edx
lea eax, [esp + 0xe0]
push eax
lea ecx, [esp + 0x14c]
push ecx
lea edx, [esp + 0x190]
push edx
push ebx
call fcn.00402060
test eax, eax
je 0x401a47
lea eax, [esp + 0xdc]
lea esi, [esp + 0xcc]
call fcn.00403cd0
add edi, 1
cmp edi, 0x40
jb 0x4019e0
mov byte [esp + 0x1b], 0x41
mov ebp, 0x41
mov ax, word [0x46f890]
mov cl, byte [0x46f892]
mov dl, byte [esp + 0x1b]
mov word [esp + 0x144], ax
xor eax, eax
mov dword [esp + 0x147], eax
mov dword [esp + 0x14b], eax
mov dword [esp + 0x14f], eax
mov dword [esp + 0x153], eax
mov dword [esp + 0x157], eax
mov dword [esp + 0x15b], eax
mov dword [esp + 0x15f], eax
mov byte [esp + 0x163], al
push 0x40
lea eax, [esp + 0x1c8]
mov byte [esp + 0x14a], cl
push eax
lea ecx, [esp + 0x14c]
push ecx
mov byte [esp + 0x150], dl
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x401c46
push ebp
lea edx, [esp + 0x188]
push str.._c:
push edx
call fcn.00442944
mov eax, dword [esp + 0x68]
add esp, 0xc
push eax
lea ecx, [esp + 0xe0]
push ecx
lea edx, [esp + 0x18c]
push edx
lea eax, [esp + 0x1d0]
push eax
push ebx
call fcn.00402060
test eax, eax
je 0x401c46
mov esi, dword [esp + 0xd4]
mov ecx, dword [esp + 0xd0]
xor edi, edi
xor ebx, ebx
lea esp, [esp]
test ecx, ecx
je 0x401c2f
mov edx, esi
sub edx, ecx
mov eax, 0x4ec4ec4f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x401c2f
mov edx, dword [esp + 0x12c]
cmp edx, dword [ecx + ebx + 0x50]
jne 0x401b6f
mov eax, dword [esp + 0x130]
cmp eax, dword [ecx + ebx + 0x54]
je 0x401b77
add edi, 1
add ebx, 0x68
jmp 0x401b30
test ecx, ecx
je 0x401b94
mov edx, esi
sub edx, ecx
mov eax, 0x4ec4ec4f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x401ba7
call fcn.00441c3e
mov esi, dword [esp + 0xd4]
mov ecx, dword [esp + 0xd0]
mov ebx, edi
imul ebx, ebx, 0x68
cmp byte [ebx + ecx + 8], 0
jne 0x401bf3
test ecx, ecx
je 0x401bce
sub esi, ecx
mov eax, 0x4ec4ec4f
imul esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x401bda
call fcn.00441c3e
mov ecx, dword [esp + 0xd0]
mov dl, byte [esp + 0xe4]
mov byte [ebx + ecx + 8], dl
mov esi, dword [esp + 0xd4]
mov ecx, dword [esp + 0xd0]
test ecx, ecx
je 0x401c0e
sub esi, ecx
mov eax, 0x4ec4ec4f
imul esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x401c1a
call fcn.00441c3e
mov ecx, dword [esp + 0xd0]
lea eax, [esp + 0xec]
push eax
lea ecx, [ebx + ecx + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x401c42
lea eax, [esp + 0xdc]
lea esi, [esp + 0xcc]
call fcn.00403cd0
mov ebx, dword [esp + 0x1c]
mov al, byte [esp + 0x1b]
add al, 1
add ebp, 1
cmp al, 0x5a
mov byte [esp + 0x1b], al
jl 0x401a59
xor ebp, ebp
push ebp
lea edx, [esp + 0x188]
push str.DeviceHarddiskVolume_d
push edx
call fcn.00442944
add esp, 0xc
push ebp
lea eax, [esp + 0x1c8]
push str..HarddiskVolume_d
push eax
call fcn.00442944
mov ecx, dword [esp + 0x68]
add esp, 0xc
push ecx
lea edx, [esp + 0xe0]
push edx
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x1cc]
push eax
lea ecx, [esp + 0x190]
push ecx
push edx
call fcn.00402060
test eax, eax
je 0x401de2
mov esi, dword [esp + 0xd4]
mov ecx, dword [esp + 0xd0]
xor edi, edi
xor ebx, ebx
lea ebx, [ebx]
test ecx, ecx
je 0x401dcf
mov edx, esi
sub edx, ecx
mov eax, 0x4ec4ec4f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x401dcf
mov eax, dword [esp + 0x12c]
cmp eax, dword [ecx + ebx + 0x50]
jne 0x401d0f
mov edx, dword [esp + 0x130]
cmp edx, dword [ecx + ebx + 0x54]
je 0x401d17
add edi, 1
add ebx, 0x68
jmp 0x401cd0
test ecx, ecx
je 0x401d34
mov edx, esi
sub edx, ecx
mov eax, 0x4ec4ec4f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x401d47
call fcn.00441c3e
mov esi, dword [esp + 0xd4]
mov ecx, dword [esp + 0xd0]
mov ebx, edi
imul ebx, ebx, 0x68
cmp byte [ebx + ecx + 8], 0
jne 0x401d93
test ecx, ecx
je 0x401d6e
sub esi, ecx
mov eax, 0x4ec4ec4f
imul esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x401d7a
call fcn.00441c3e
mov ecx, dword [esp + 0xd0]
mov al, byte [esp + 0xe4]
mov byte [ebx + ecx + 8], al
mov esi, dword [esp + 0xd4]
mov ecx, dword [esp + 0xd0]
test ecx, ecx
je 0x401dae
sub esi, ecx
mov eax, 0x4ec4ec4f
imul esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x401dba
call fcn.00441c3e
mov ecx, dword [esp + 0xd0]
lea edx, [esp + 0xec]
push edx
lea eax, [ebx + ecx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x401de2
lea eax, [esp + 0xdc]
lea esi, [esp + 0xcc]
call fcn.00403cd0
add ebp, 1
cmp ebp, 0x100
jl 0x401c5d
mov esi, dword [esp + 0xd0]
test esi, esi
je 0x401e8c
mov ebx, dword [esp + 0xd4]
mov ecx, ebx
sub ecx, esi
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
je 0x401e8c
cmp esi, ebx
mov edi, ebx
jbe 0x401e40
call fcn.00441c3e
mov ebx, dword [esp + 0xd4]
mov esi, dword [esp + 0xd0]
cmp esi, ebx
jbe 0x401e40
call fcn.00441c3e
mov ecx, edi
sub ecx, esi
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
push 0x401690
add eax, edx
push eax
push edi
push esi
call fcn.00404660
mov ebx, dword [esp + 0x44]
mov esi, dword [ebx + 4]
mov edx, dword [esi + 4]
add esp, 0x10
lea ecx, [esp + 0x54]
push ecx
push edx
push esi
call fcn.004042d0
mov ecx, ebx
mov edi, eax
call fcn.00404370
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
mov byte [esp + 0x410], 0
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
mov edi, 1
je 0x401eaf
test eax, eax
je 0x401eaf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
mov esi, dword [esp + 0x2c]
push 0x46fc50
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [esp + 0x24], 0
je 0x401f1e
test edi, edi
jne 0x401f1e
lea edi, [esp + 0x20]
call fcn.00414c30
push 0x474aec
mov ecx, edi
push ecx
call fcn.00441455
mov byte [esp + 0x410], 0
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
mov edi, 1
je 0x401f03
test eax, eax
je 0x401f03
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
mov esi, dword [esp + 0x2c]
push 0x46fc50
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [esp + 0x24], 0
je 0x401f1e
test edi, edi
je 0x401f9a
push esi
call fcn.004410ea
mov dword [esp + 0x414], 0xffffffff
mov eax, dword [esp + 0xd4]
add esp, 4
test eax, eax
je 0x401f46
push eax
call fcn.00440ac8
add esp, 4
xor ebx, ebx
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, 0x20
mov dword [esp + 0x1c], eax
jb 0x401820
mov ecx, dword [esp + 0x408]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3f0]
xor ecx, esp
call fcn.00440e94
add esp, 0x400
ret
lea edi, [esp + 0x20]
call fcn.00414c30
push 0x474aec
mov eax, edi
push eax
call fcn.00441455
lea edi, [esp + 0x20]
call fcn.00414c30
push 0x474aec
mov edx, edi
push edx
call fcn.00441455
int3