Function at 0x10015bc1
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.1002ffeb
add esp, 4
mov dword [ebp - 0xc], eax
mov edi, eax
mov esi, 0x1005430c
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0
push 8
call fcn.1002ffeb
add esp, 4
mov dword [ebp - 0x14], eax
mov edi, eax
mov esi, 0x1005430c
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
push 8
call fcn.1002ffeb
add esp, 4
mov dword [ebp - 0x18], eax
mov edi, eax
mov esi, 0x1005430c
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
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], esp
mov eax, 0x1005430c
test eax, eax
je 0x10015c54
add eax, 8
push eax
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x10015c80
push 0x19
push 0x402e1c1
push 6
call fcn.1002fffd
add esp, 0xc
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x1bc
call fcn.10031690
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10015cb6
push ebx
call fcn.1002fff1
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x28], esp
mov eax, dword [ebp - 8]
test eax, eax
je 0x10015cc7
add eax, 8
push eax
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x10015cf1
push 0x6c
push 0x402e1c1
push 6
call fcn.1002fffd
add esp, 0xc
push 0
push 0
push 0
push htons
push 0
push 0x10060132
push htons
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x10015d16
mov eax, 0x1005430c
push eax
push 3
mov ebx, 0x1c4
call fcn.100327a0
add esp, 0x28
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0xc]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x10015d4e
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x10015d4a
imul eax, dword [ebx]
jmp 0x10015d3f
mov ecx, eax
test ecx, ecx
je 0x10015d6d
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x10015d66
push ebx
push eax
call fcn.1002fff1
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x10015d54
call fcn.1002fff1
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 0xc]
call fcn.10001546
mov dword [ebp - 0x30], eax
fild dword [ebp - 0x30]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fsub qword [0x1005ff41]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
call fcn.1000114b
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x1001648a
mov dword [ebp - 0x2c], 1
mov eax, dword [ebp - 0x10]
cmp eax, 0
jge 0x10015dd1
push 0x166
push 0x402e1c1
push 0xa
call fcn.1002fffd
add esp, 0xc
mov dword [ebp - 0x28], eax
lea ebx, [ebp - 0x2c]
call fcn.1000155f
push ecx
shl ecx, 2
add ecx, 8
push ecx
call fcn.1002ffeb
add esp, 4
mov edi, eax
mov dword [edi], 1
add edi, 4
pop ecx
push eax
push ecx
lea esi, [ebp - 0x28]
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov ebx, dword [ebp - 0x14]
call fcn.1000155f
pop edx
test ecx, ecx
je 0x10015e2d
push edi
push edx
push ecx
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x10015e23
push ebx
call fcn.1002fff1
add esp, 4
pop ebx
pop ecx
add ebx, 4
dec ecx
jne 0x10015e12
pop edx
pop edi
test edx, edx
je 0x10015e3b
mov ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
push dword [ebp - 0x14]
call fcn.1002fff1
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], 1
mov eax, dword [ebp - 0x10]
cmp eax, 0
jge 0x10015e70
push 0x18a
push 0x402e1c1
push 0xa
call fcn.1002fffd
add esp, 0xc
mov dword [ebp - 0x28], eax
lea ebx, [ebp - 0x2c]
call fcn.1000155f
push ecx
shl ecx, 2
add ecx, 8
push ecx
call fcn.1002ffeb
add esp, 4
mov edi, eax
mov dword [edi], 1
add edi, 4
pop ecx
push eax
push ecx
lea esi, [ebp - 0x28]
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov ebx, dword [ebp - 0x18]
call fcn.1000155f
pop edx
test ecx, ecx
je 0x10015ecc
push edi
push edx
push ecx
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x10015ec2
push ebx
call fcn.1002fff1
add esp, 4
pop ebx
pop ecx
add ebx, 4
dec ecx
jne 0x10015eb1
pop edx
pop edi
test edx, edx
je 0x10015eda
mov ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
push dword [ebp - 0x18]
call fcn.1002fff1
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
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 0x100161c7
mov ebx, dword [ebp - 0xc]
call fcn.1000155f
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x10015f2a
push 0x1cf
push 0x402e1c1
push 4
call fcn.1002fffd
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10015f47
push 0x1cf
push 0x402e1c1
push 1
call fcn.1002fffd
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx]
test eax, eax
je 0x10015f6b
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.1002ffeb
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10015f7c
push ebx
call fcn.1002fff1
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
call fcn.1000155f
push ebx
push ecx
push htons
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x10015f9d
mov eax, 0x1005430c
push eax
push 1
mov ebx, 0x194
call fcn.100314b0
add esp, 0x10
dec eax
jns 0x10015fca
push 0x210
push 0x402e1c1
push 4
call fcn.1002fffd
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10015fe7
push 0x210
push 0x402e1c1
push 1
call fcn.1002fffd
add esp, 0xc
add ebx, eax
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp - 0x2c]
mov byte [ebx], 0
mov ebx, dword [ebp - 0x14]
call fcn.1000155f
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x10016019
push 0x235
push 0x402e1c1
push 4
call fcn.1002fffd
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10016036
push 0x235
push 0x402e1c1
push 1
call fcn.1002fffd
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x28], ebx
push htons
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x10016051
mov eax, 0x1005430c
push eax
push 1
mov ebx, 0x168
call fcn.10030ed0
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x28]
mov ebx, dword [ebx]
test ebx, ebx
je 0x1001607d
push ebx
call fcn.1002fff1
add esp, 4
pop eax
mov ebx, dword [ebp - 0x28]
mov dword [ebx], eax
push 0x80000301
push 0
push 0x104
push 1
mov ebx, 0x184
call fcn.100314d0
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x100160b8
push ebx
call fcn.1002fff1
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x14]
call fcn.1000155f
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x100160e3
push 0x2b9
push 0x402e1c1
push 4
call fcn.1002fffd
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10016100
push 0x2b9
push 0x402e1c1
push 1
call fcn.1002fffd
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], esp
push 0x104
push dword [ebp - 0x20]
mov ebx, dword [ebp - 0x28]
push dword [ebx]
xor eax, eax
call dword [0x1014886a]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x1001613e
push 0x2b9
push 0x402e1c1
push 6
call fcn.1002fffd
add esp, 0xc
mov ebx, dword [ebp - 0x18]
call fcn.1000155f
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x10016165
push 0x2ea
push 0x402e1c1
push 4
call fcn.1002fffd
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10016182
push 0x2ea
push 0x402e1c1
push 1
call fcn.1002fffd
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x100161a6
push eax
mov ebx, eax
call fcn.1000188c
inc eax
push eax
call fcn.1002ffeb
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x28]
mov ebx, dword [ebx]
test ebx, ebx
je 0x100161b9
push ebx
call fcn.1002fff1
add esp, 4
pop eax
mov ebx, dword [ebp - 0x28]
mov dword [ebx], eax
pop eax
pop ebx
pop ecx
jmp 0x10015ef5
add esp, 0xc
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x10]
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 0x10016487
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov eax, str.Device_
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
call fcn.100165b4
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x1001622a
push ebx
call fcn.1002fff1
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x1001623e
push ebx
call fcn.1002fff1
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov eax, 0x100543a8
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.10016777
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x10016282
push ebx
call fcn.1002fff1
add esp, 4
push dword [ebp - 0x34]
push str.Device_
mov ecx, 2
call fcn.100018f7
add esp, 8
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x100162aa
push ebx
call fcn.1002fff1
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x100162be
push ebx
call fcn.1002fff1
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x18]
call fcn.1000155f
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x100162e9
push 0x41e
push 0x402e1c1
push 4
call fcn.1002fffd
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10016306
push 0x41e
push 0x402e1c1
push 1
call fcn.1002fffd
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx]
push eax
push dword [ebp - 0x24]
call fcn.100017ef
add esp, 8
cmp eax, 0
jne 0x1001647f
mov ebx, dword [ebp - 0x18]
call fcn.1000155f
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x1001634f
push 0x4b4
push 0x402e1c1
push 4
call fcn.1002fffd
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x1001636c
push 0x4b4
push 0x402e1c1
push 1
call fcn.1002fffd
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x14]
call fcn.1000155f
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x1001639b
push 0x4b4
push 0x402e1c1
push 4
call fcn.1002fffd
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x100163b8
push 0x4b4
push 0x402e1c1
push 1
call fcn.1002fffd
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x2c], ebx
push connect
push 0
push 0
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x100163f9
mov eax, 0x100542f9
push eax
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx]
test eax, eax
jne 0x1001640f
mov eax, 0x100542f9
push eax
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x10016425
mov eax, 0x100542f9
push eax
push 6
mov ebx, 0x180
call fcn.10032540
add esp, 0x4c
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x10016451
push ebx
call fcn.1002fff1
add esp, 4
pop eax
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x10016475
push eax
mov ebx, eax
call fcn.1000188c
inc eax
push eax
call fcn.1002ffeb
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x100164ad
pop eax
pop ebx
pop ecx
jmp 0x100161dd
add esp, 0xc
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x100164a8
push eax
mov ebx, eax
call fcn.1000188c
inc eax
push eax
call fcn.1002ffeb
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x100164ad
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x100164be
push ebx
call fcn.1002fff1
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x100164dc
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x100164d8
imul eax, dword [ebx]
jmp 0x100164cd
mov ecx, eax
test ecx, ecx
je 0x100164fb
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x100164f4
push ebx
push eax
call fcn.1002fff1
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x100164e2
call fcn.1002fff1
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x10016521
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x1001651d
imul eax, dword [ebx]
jmp 0x10016512
mov ecx, eax
test ecx, ecx
je 0x10016540
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x10016539
push ebx
push eax
call fcn.1002fff1
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x10016527
call fcn.1002fff1
add esp, 4
mov ebx, dword [ebp - 0x18]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x10016566
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x10016562
imul eax, dword [ebx]
jmp 0x10016557
mov ecx, eax
test ecx, ecx
je 0x10016585
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x1001657e
push ebx
push eax
call fcn.1002fff1
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x1001656c
call fcn.1002fff1
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x1001659d
push ebx
call fcn.1002fff1
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x100165ad
push ebx
call fcn.1002fff1
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4