Function at 0x1006023e
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push 8
call fcn.10101428
add esp, 4
mov dword [ebp - 0x18], eax
mov edi, eax
mov esi, 0x1010b24e
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
cmp dword [ebp + 8], 0
je 0x10060992
push 0x80000301
push 0
push 0x800
push 1
mov ebx, 0x1bc
call fcn.10102410
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x100602d2
push ebx
call fcn.10101422
add esp, 4
pop eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.10008331
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], esp
lea eax, [ebp - 8]
push eax
push 0x800
push dword [ebp - 0x24]
push 0x2b
push dword [ebp + 8]
call dword [0x102bdacb]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x1006031f
push 0xbb
push 0x42430bb
push 6
call fcn.1010142e
add esp, 0xc
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x100603d4
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 0x10060357
mov eax, 0x1010b24e
push eax
push 3
mov ebx, 0x1a8
call fcn.10106030
add esp, 0x28
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
lea eax, [ebp - 0x24]
push eax
call fcn.10016f9c
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x10060395
push ebx
call fcn.10101422
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x100603ab
push ebx
call fcn.10101422
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
push dword [ebp + 0x10]
call fcn.10018c28
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x100603d0
push ebx
call fcn.10101422
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
test eax, eax
jne 0x100603e9
mov eax, 0x1010b29a
push eax
push 1
mov ebx, 0x24c
call fcn.101032a0
add esp, 0x10
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x10060971
lea eax, [ebp - 4]
push eax
call fcn.10008331
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], esp
lea eax, [ebp - 8]
push eax
push 0x800
push dword [ebp - 0x24]
push 0x1b
push dword [ebp + 8]
call dword [0x102bdacb]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x10060452
push 0x209
push 0x42430bb
push 6
call fcn.1010142e
add esp, 0xc
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x10060971
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 0x1006048a
mov eax, 0x1010b24e
push eax
push 3
mov ebx, 0x1a8
call fcn.10106030
add esp, 0x28
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
lea eax, [ebp - 0x24]
push eax
call fcn.10016f9c
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x100604c8
push ebx
call fcn.10101422
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x100604de
push ebx
call fcn.10101422
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
push 0x80000301
push 0
push pe_nt_image_headers32
push 1
mov ebx, 0x1bc
call fcn.10102410
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10060519
push ebx
call fcn.10101422
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24], esp
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1006052a
add eax, 8
push eax
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
nop
nop
nop
nop
cmp dword [ebp - 0x24], esp
je 0x10060556
push 0x2de
push 0x42430bb
push 6
call fcn.1010142e
add esp, 0xc
mov dword [ebp - 0x14], eax
push 0x80000301
push 0
push dword [ebp - 0x14]
push htons
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x10060576
mov eax, 0x1010b24e
push eax
push 2
mov ebx, 0x1a0
call fcn.10102f30
add esp, 0x1c
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x100605a0
push ebx
call fcn.10101422
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push htons
push 0
push 0x10161d01
push htons
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x100605c9
mov eax, 0x1010b24e
push eax
push 3
mov ebx, 0x1c4
call fcn.10105e90
add esp, 0x28
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x18]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x10060601
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x100605fd
imul eax, dword [ebx]
jmp 0x100605f2
mov ecx, eax
test ecx, ecx
je 0x10060620
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x10060619
push ebx
push eax
call fcn.10101422
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x10060607
call fcn.10101422
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x18]
call fcn.10001089
xor ecx, ecx
push eax
lea eax, [ebp - 0x1c]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x1006094b
push 0x80000301
push 0
push 0x80
push 1
mov ebx, 0x184
call fcn.10102690
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x10060680
push ebx
call fcn.10101422
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x18]
call fcn.10001069
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x100606ab
push 0x3f0
push 0x42430bb
push 4
call fcn.1010142e
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x100606c8
push 0x3f0
push 0x42430bb
push 1
call fcn.1010142e
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x18]
call fcn.10001069
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x100606f7
push 0x410
push 0x42430bb
push 4
call fcn.1010142e
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10060714
push 0x410
push 0x42430bb
push 1
call fcn.1010142e
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x28], ebx
push 0x10139350
mov ebx, dword [ebp - 0x28]
push dword [ebx]
mov ecx, 2
call fcn.10007af0
add esp, 8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x24]
mov ebx, dword [ebx]
test ebx, ebx
je 0x1006074c
push ebx
call fcn.10101422
add esp, 4
pop eax
mov ebx, dword [ebp - 0x24]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x18]
call fcn.10001069
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x10060779
push 0x446
push 0x42430bb
push 4
call fcn.1010142e
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10060796
push 0x446
push 0x42430bb
push 1
call fcn.1010142e
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], esp
push 0x80
push dword [ebp - 0x20]
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
test eax, eax
je 0x100607b5
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x100607dc
push 0x446
push 0x42430bb
push 6
call fcn.1010142e
add esp, 0xc
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x10060801
mov eax, 0x1010b29a
push eax
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
test eax, eax
jne 0x10060817
mov eax, 0x1010b29a
push eax
push 4
mov ebx, 0x148
call fcn.10103350
add esp, 0x34
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
je 0x10060943
mov ebx, dword [ebp - 0x18]
call fcn.10001069
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x1006085e
push 0x504
push 0x42430bb
push 4
call fcn.1010142e
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x1006087b
push 0x504
push 0x42430bb
push 1
call fcn.1010142e
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x24], ebx
push htons
push 0
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
test eax, eax
jne 0x10060898
mov eax, 0x1010b24e
push eax
push 1
mov ebx, 0x168
call fcn.10102fd0
add esp, 0x10
mov dword [ebp - 0x28], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 1
mov ebx, 6
call fcn.100024e1
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x100608d7
mov eax, 0x1010b29a
push eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x100608eb
mov eax, 0x1010b29a
push eax
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
test eax, eax
jne 0x10060901
mov eax, 0x1010b29a
push eax
push 6
mov ebx, 0x180
call fcn.10102440
add esp, 0x4c
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x10060927
push ebx
call fcn.10101422
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x1006093d
push ebx
call fcn.10101422
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
pop eax
pop ebx
pop ecx
jmp 0x1006063d
add esp, 0xc
push dword [ebp + 0x10]
call fcn.10018c28
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x1006096d
push ebx
call fcn.10101422
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x1006098d
push eax
mov ebx, eax
call fcn.100026e7
inc eax
push eax
call fcn.10101428
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x100609b3
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x100609ae
push eax
mov ebx, eax
call fcn.100026e7
inc eax
push eax
call fcn.10101428
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x100609b3
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x100609c4
push ebx
call fcn.10101422
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x100609d4
push ebx
call fcn.10101422
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x100609e4
push ebx
call fcn.10101422
add esp, 4
mov ebx, dword [ebp - 0x18]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x10060a02
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x100609fe
imul eax, dword [ebx]
jmp 0x100609f3
mov ecx, eax
test ecx, ecx
je 0x10060a21
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x10060a1a
push ebx
push eax
call fcn.10101422
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x10060a08
call fcn.10101422
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x10060a39
push ebx
call fcn.10101422
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10