Function at 0x10018d74
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 8
call fcn.10027390
add esp, 4
mov dword [ebp - 0x10], eax
mov edi, eax
mov esi, 0x1003f2c9
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
cmp dword [ebp + 8], 0
je 0x10019442
push 0x80000301
push 0
push 0x800
push 1
mov ebx, 0x1bc
call fcn.10028670
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10018dfa
push ebx
call fcn.1002738a
add esp, 4
pop eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.100070ad
mov dword [ebp - 0x1c], eax
mov eax, 0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 0x800
push dword [ebp - 0x1c]
push 0x2b
push dword [ebp + 8]
call fcn.10003913
test eax, eax
je 0x10018ef4
push 0x80000301
push 0
push 0x7d0
push 0x80000301
push 0
push 9
push htons
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x10018e5e
mov eax, 0x1003f2c9
push eax
push 3
mov ebx, 0x1a8
call fcn.100289f0
add esp, 0x28
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.1000ee0c
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x10018e90
push ebx
call fcn.1002738a
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x10018ea6
push ebx
call fcn.1002738a
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov dword [ebp - 0x1c], esp
mov ebx, dword [ebp + 0xc]
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x10018ed0
push 6
call fcn.10027396
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x10018eef
push eax
mov ebx, eax
call fcn.100018ba
inc eax
push eax
call fcn.10027390
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x1001946a
lea eax, [ebp - 4]
push eax
call fcn.100070ad
mov dword [ebp - 0x1c], eax
mov eax, 0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 0x800
push dword [ebp - 0x1c]
push 0x1b
push dword [ebp + 8]
call fcn.10003913
test eax, eax
je 0x10019442
push 0x80000301
push 0
push 0x7d0
push 0x80000301
push 0
push 9
push htons
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x10018f54
mov eax, 0x1003f2c9
push eax
push 3
mov ebx, 0x1a8
call fcn.100289f0
add esp, 0x28
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.100194e7
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x10018f86
push ebx
call fcn.1002738a
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x10018f9c
push ebx
call fcn.1002738a
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
cmp dword [ebp + 0x10], 0
jne 0x10018ff4
mov dword [ebp - 0x1c], esp
mov ebx, dword [ebp + 0xc]
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x10018fd0
push 6
call fcn.10027396
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x10018fef
push eax
mov ebx, eax
call fcn.100018ba
inc eax
push eax
call fcn.10027390
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x1001946a
push 0x80000301
push 0
push pe_nt_image_headers32
push 1
mov ebx, 0x1bc
call fcn.10028670
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10019029
push ebx
call fcn.1002738a
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], esp
mov eax, dword [ebp - 8]
test eax, eax
je 0x1001903a
add eax, 8
push eax
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x1001905c
push 6
call fcn.10027396
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push dword [ebp - 0xc]
push htons
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x1001907c
mov eax, 0x1003f2c9
push eax
push 2
mov ebx, 0x1a0
call fcn.10028cf0
add esp, 0x1c
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x100190a6
push ebx
call fcn.1002738a
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push htons
push 0
push 0x10041429
push htons
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x100190cf
mov eax, 0x1003f2c9
push eax
push 3
mov ebx, 0x1c4
call fcn.10028f70
add esp, 0x28
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x10]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x10019107
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x10019103
imul eax, dword [ebx]
jmp 0x100190f8
mov ecx, eax
test ecx, ecx
je 0x10019126
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x1001911f
push ebx
push eax
call fcn.1002738a
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x1001910d
call fcn.1002738a
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0x10]
call fcn.100018a1
xor ecx, ecx
push eax
lea eax, [ebp - 0x14]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x1001943f
push 0x80000301
push 0
push 0x80
push 1
mov ebx, 0x184
call fcn.10027f50
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x10019186
push ebx
call fcn.1002738a
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x10]
call fcn.1000100e
push ebx
push ecx
mov eax, dword [ebp - 0x14]
dec eax
jns 0x100191a7
push 4
call fcn.10027396
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x100191ba
push 1
call fcn.10027396
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x10]
call fcn.1000100e
push ebx
push ecx
mov eax, dword [ebp - 0x14]
dec eax
jns 0x100191df
push 4
call fcn.10027396
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x100191f2
push 1
call fcn.10027396
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
push 0x10041433
mov ebx, dword [ebp - 0x20]
push dword [ebx]
mov ecx, 2
call fcn.100091d9
add esp, 8
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x1c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x1001922a
push ebx
call fcn.1002738a
add esp, 4
pop eax
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
call fcn.1000100e
push ebx
push ecx
mov eax, dword [ebp - 0x14]
dec eax
jns 0x1001924d
push 4
call fcn.10027396
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x10019260
push 1
call fcn.10027396
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], esp
push 0x80
push dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
test eax, eax
je 0x1001927f
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x1001929c
push 6
call fcn.10027396
add esp, 4
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push 0x80000004
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x100192c1
mov eax, 0x1003f2d1
push eax
push 0x80000004
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x100192d7
mov eax, 0x1003f2d1
push eax
push 4
mov ebx, 0x148
call fcn.10027f90
add esp, 0x34
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x10019437
mov ebx, dword [ebp - 0x10]
call fcn.1000100e
push ebx
push ecx
mov eax, dword [ebp - 0x14]
dec eax
jns 0x10019314
push 4
call fcn.10027396
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x10019327
push 1
call fcn.10027396
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
push htons
push 0
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
test eax, eax
jne 0x10019344
mov eax, 0x1003f2c9
push eax
push 1
mov ebx, 0x168
call fcn.100279d0
add esp, 0x10
mov dword [ebp - 0x20], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 1
mov ebx, 6
call fcn.1000ff9f
push 0x80000004
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x10019383
mov eax, 0x1003f2d1
push eax
push 0x80000004
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x10019397
mov eax, 0x1003f2d1
push eax
push 0x80000004
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x100193ad
mov eax, 0x1003f2d1
push eax
push 6
mov ebx, 0x180
call fcn.10029110
add esp, 0x4c
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x100193d3
push ebx
call fcn.1002738a
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x100193e9
push ebx
call fcn.1002738a
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov dword [ebp - 0x1c], esp
mov ebx, dword [ebp + 0xc]
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x10019413
push 6
call fcn.10027396
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x10019432
push eax
mov ebx, eax
call fcn.100018ba
inc eax
push eax
call fcn.10027390
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x1001946a
pop eax
pop ebx
pop ecx
jmp 0x10019143
add esp, 0xc
mov eax, 0x1003f2d1
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x1001945a
push ebx
call fcn.1002738a
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov eax, 0x1003f2d1
jmp 0x1001946a
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1001947b
push ebx
call fcn.1002738a
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x1001948b
push ebx
call fcn.1002738a
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x100194a9
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x100194a5
imul eax, dword [ebx]
jmp 0x1001949a
mov ecx, eax
test ecx, ecx
je 0x100194c8
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x100194c1
push ebx
push eax
call fcn.1002738a
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x100194af
call fcn.1002738a
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x100194e0
push ebx
call fcn.1002738a
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc