Function at 0x4018b0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e808
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x473b80]
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, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x94], 0
cmp dword [0x477d3c], 0
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x88], eax
jne 0x401c6a
xor ecx, ecx
push 0xc
mov word [ebp - 0x64], cx
xor esi, esi
push str.SYSTEMROOT_
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], esi
call fcn.00403570
mov dword [ebp - 4], esi
push 0x24
lea esi, [ebp - 0x80]
call fcn.0040ece0
add esp, 4
push eax
mov eax, 0x465b30
lea edi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00402970
add esp, 4
mov esi, eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.00401f10
push esi
mov ecx, eax
call fcn.00403f40
cmp dword [ebp - 0x18], 8
jb 0x401974
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00444884
add esp, 4
xor edi, edi
xor eax, eax
mov esi, 8
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], ax
cmp dword [ebp - 0x6c], esi
jb 0x40199c
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.00444884
add esp, 4
xor edx, edx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], edi
mov word [ebp - 0x80], dx
cmp dword [ebp - 0x50], esi
jb 0x4019c4
mov eax, dword [ebp - 0x64]
push eax
call fcn.00444884
add esp, 4
xor ecx, ecx
push edi
mov word [ebp - 0x48], cx
push 0x1b
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], edi
call fcn.00403be0
mov ecx, dword [ebp - 0x48]
cmp dword [ebp - 0x34], esi
jae 0x4019ea
lea ecx, [ebp - 0x48]
xor edx, edx
mov ax, dx
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], eax
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], eax
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x2c], eax
mov dword [ecx + 0x30], eax
mov word [ecx + 0x34], ax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x38], 0x1b
cmp dword [ebp - 0x34], esi
jae 0x401a35
lea eax, [ebp - 0x48]
xor ecx, ecx
mov word [eax + 0x36], cx
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], esi
jae 0x401a4d
lea eax, [ebp - 0x48]
mov edx, dword [ebp - 0x38]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp eax, edi
je 0x401dd0
mov ecx, dword [ebp - 0x38]
cmp eax, ecx
ja 0x401a74
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x48]
call fcn.00403a90
jmp 0x401a80
sub eax, ecx
push edi
push eax
lea ecx, [ebp - 0x48]
call fcn.00403810
push 1
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x48]
xor ebx, ebx
push ecx
xor eax, eax
mov dword [ebp - 0x8c], ebx
call fcn.00402140
mov dword [ebp - 0x84], eax
cmp eax, dword [ebp - 0x38]
jae 0x401c51
jmp 0x401ab0
mov ecx, dword [ebp - 0x84]
lea edx, [ebp - 0x48]
sub ecx, ebx
push edx
dec ecx
mov edx, ebx
lea esi, [ebp - 0x64]
call fcn.004034a0
xor eax, eax
mov byte [ebp - 4], 4
push eax
push 0x104
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.00403be0
cmp dword [ebp - 0x18], 8
mov edi, dword [ebp - 0x2c]
jae 0x401af9
lea edi, [ebp - 0x2c]
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov ecx, 0x82
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x2c]
mov esi, 8
mov dword [ebp - 0x1c], 0x104
cmp dword [ebp - 0x18], esi
jae 0x401b23
lea eax, [ebp - 0x2c]
xor ecx, ecx
mov word [eax + 0x208], cx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x401b3b
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x50], esi
jae 0x401b46
lea eax, [ebp - 0x64]
mov edx, dword [ebp - 0x1c]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x401d49
mov ecx, dword [ebp - 0x1c]
add eax, 0xfffffffe
cmp eax, ecx
ja 0x401b71
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403a90
jmp 0x401b7e
sub eax, ecx
push 0
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403810
push 0x5c
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403810
push 0x5c
push 1
lea ecx, [ebp - 0x64]
call fcn.00403810
lea ecx, [ebp - 0x2c]
call fcn.00401f10
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x64]
push ecx
mov ecx, eax
call fcn.00403e20
mov ebx, dword [ebp - 0x84]
mov edi, dword [ebp - 0x38]
inc ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x94], 0
cmp ebx, edi
jae 0x401c00
sub edi, ebx
cmp edi, 1
jb 0x401c00
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], esi
jae 0x401bdd
lea eax, [ebp - 0x48]
lea eax, [eax + ebx*2]
mov dword [ebp - 0x84], eax
mov ecx, edi
test edi, edi
je 0x401c00
lea esp, [esp]
cmp word [eax], 0
je 0x401cdf
add eax, 2
dec ecx
jne 0x401bf0
or esi, 0xffffffff
mov edi, 8
mov dword [ebp - 0x84], esi
cmp dword [ebp - 0x18], edi
jb 0x401c1f
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00444884
add esp, 4
xor ecx, ecx
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x50], edi
jb 0x401c48
mov edx, dword [ebp - 0x64]
push edx
call fcn.00444884
add esp, 4
cmp esi, dword [ebp - 0x38]
jb 0x401ab0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x34], 8
jb 0x401c6a
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00444884
add esp, 4
mov eax, dword [0x477d38]
mov ebx, dword [eax]
mov esi, dword [ebp - 0x88]
cmp ebx, eax
je 0x401e2e
nop
mov eax, dword [ebx + 0x1c]
lea ecx, [ebx + 0xc]
mov edx, eax
or edi, 0xffffffff
cmp edx, 0xffffffff
jae 0x401c92
mov edi, edx
cmp dword [ecx + 0x14], 8
jb 0x401c9a
mov ecx, dword [ecx]
push ecx
mov ecx, esi
call fcn.00402210
test eax, eax
je 0x401e70
cmp byte [ebx + 0x45], 0
jne 0x401e22
mov eax, dword [ebx + 8]
cmp byte [eax + 0x45], 0
jne 0x401e05
mov ebx, eax
mov eax, dword [ebx]
cmp byte [eax + 0x45], 0
jne 0x401e22
nop
mov ebx, eax
mov eax, dword [ebx]
cmp byte [eax + 0x45], 0
je 0x401cd0
jmp 0x401e22
test eax, eax
je 0x401c00
mov esi, 1
lea edx, [ebp - 0x94]
mov ecx, eax
mov bx, word [ecx]
cmp bx, word [edx]
jne 0x401d22
add ecx, 2
add edx, 2
dec esi
jne 0x401cf4
cmp dword [ebp - 0x34], 8
mov ecx, dword [ebp - 0x48]
jae 0x401d11
lea ecx, [ebp - 0x48]
mov ebx, dword [ebp - 0x8c]
sub eax, ecx
sar eax, 1
mov esi, eax
jmp 0x401c03
sbb edx, edx
and edx, 0xfffffffe
inc edx
je 0x401d05
mov ebx, dword [ebp - 0x8c]
mov ecx, eax
sub ecx, dword [ebp - 0x84]
or edx, 0xffffffff
sar ecx, 1
sub edx, ecx
add edi, edx
add eax, 2
jmp 0x401be0
mov edi, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x88]
xor eax, eax
push 0xffffffffffffffff
push eax
mov ebx, 7
push ecx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x10], 0
mov ecx, edi
mov word [edi], ax
call fcn.00403e20
cmp dword [ebp - 0x18], esi
jb 0x401d85
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00444884
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp dword [ebp - 0x50], esi
jb 0x401da6
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.00444884
add esp, 4
xor edx, edx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], 0
mov word [ebp - 0x64], dx
cmp dword [ebp - 0x34], esi
jb 0x401e52
mov eax, dword [ebp - 0x48]
push eax
call fcn.00444884
add esp, 4
jmp 0x401e52
mov eax, dword [ebp - 0x88]
push 0xffffffffffffffff
push edi
xor edx, edx
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], edi
push eax
mov ecx, ebx
mov word [ebx], dx
call fcn.00403e20
cmp dword [ebp - 0x34], esi
jb 0x401e01
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00444884
add esp, 4
mov eax, ebx
jmp 0x401e54
mov eax, dword [ebx + 4]
cmp byte [eax + 0x45], 0
jne 0x401e20
mov edi, edi
cmp ebx, dword [eax + 8]
jne 0x401e20
mov ebx, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x45], 0
je 0x401e10
mov ebx, eax
cmp ebx, dword [0x477d38]
jne 0x401c80
mov edi, dword [ebp - 0x90]
xor edx, edx
push 0xffffffffffffffff
push edx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push esi
mov ecx, edi
mov word [edi], dx
call fcn.00403e20
mov eax, edi
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.00444627
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0x1c]
mov eax, esi
push eax
or ecx, 0xffffffff
lea esi, [ebp - 0x80]
call fcn.004034a0
mov esi, eax
mov edi, dword [ebp - 0x90]
lea eax, [ebx + 0x28]
mov dword [ebp - 4], 6
call fcn.004029c0
cmp dword [ebp - 0x6c], 8
jb 0x401e52
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.00444884
add esp, 4
jmp 0x401e52