Function at 0x1002f405
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.100b8c3f
add esp, 4
mov dword [ebp - 0xc], eax
mov edi, eax
mov esi, 0x100d5289
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push 0x80000301
push 0
push 0xff
push 1
mov ebx, 0x1bc
call fcn.100b9960
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1002f47a
push ebx
call fcn.100b8c45
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp - 4]
test eax, eax
je 0x1002f48b
add eax, 8
push eax
push 0xff
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x1002f4b7
push 0x4f
push 0x4060d42
push 6
call fcn.100b8c4b
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x1002f770
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x1002f4e4
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x1002f4e0
imul eax, dword [ebx]
jmp 0x1002f4d5
mov ecx, eax
test ecx, ecx
je 0x1002f503
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x1002f4fc
push ebx
push eax
call fcn.100b8c45
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x1002f4ea
call fcn.100b8c45
add esp, 4
mov eax, 0x100d5289
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
push 0x80000301
push 0
push dword [ebp - 8]
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x1002f532
mov eax, 0x100d5289
push eax
push 2
mov ebx, 0x1a0
call fcn.100bb760
add esp, 0x1c
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1002f55c
push ebx
call fcn.100b8c45
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0
push 0
push 0
push reloc.WS2_32.dll_getpeername
push 0
push 0x100d5278
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x1002f585
mov eax, 0x100d5289
push eax
push 3
mov ebx, 0x1c4
call fcn.100bf4f0
add esp, 0x28
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0xc]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x1002f5bd
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x1002f5b9
imul eax, dword [ebx]
jmp 0x1002f5ae
mov ecx, eax
test ecx, ecx
je 0x1002f5dc
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x1002f5d5
push ebx
push eax
call fcn.100b8c45
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x1002f5c3
call fcn.100b8c45
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 0xc]
call fcn.100027cb
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
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 0x1002f76d
mov ebx, dword [ebp - 0xc]
call fcn.100020b9
push ebx
push ecx
mov eax, dword [ebp - 0x14]
dec eax
jns 0x1002f634
push 0x1be
push 0x4060d42
push 4
call fcn.100b8c4b
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x1002f651
push 0x1be
push 0x4060d42
push 1
call fcn.100b8c4b
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
test eax, eax
jne 0x1002f66e
mov eax, 0x100d5289
push eax
push 1
mov ebx, 0x168
call fcn.100b9a00
add esp, 0x10
mov dword [ebp - 0x1c], eax
push 0x80000301
push 0
push 1
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x1002f6a3
mov eax, 0x100d520e
push eax
push 2
mov ebx, 0x134
call fcn.100bae70
add esp, 0x1c
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x1002f6c9
push ebx
call fcn.100b8c45
add esp, 4
push dword [ebp + 8]
push 4
mov eax, 2
call fcn.100b96f0
add esp, 8
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov dword [ebp - 0x28], ebx
call fcn.100020b9
mov dword [ebp - 0x2c], ecx
mov edi, dword [ebp - 0x28]
mov dword [edi], 1
add edi, 4
mov eax, ecx
inc eax
mov dword [edi], eax
add edi, 4
cmp edi, ebx
je 0x1002f70d
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x2c]
inc eax
shl eax, 2
add eax, 8
push eax
push dword [ebp - 0x28]
call fcn.100b8c57
add esp, 8
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
mov edi, eax
add edi, 8
mov eax, dword [ebp - 0x2c]
shl eax, 2
add edi, eax
mov eax, dword [ebp - 0x24]
push edi
test eax, eax
je 0x1002f752
push eax
mov ebx, eax
call fcn.1000101d
inc eax
push eax
call fcn.100b8c3f
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
pop edi
mov dword [edi], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x1002f765
push ebx
call fcn.100b8c45
add esp, 4
pop eax
pop ebx
pop ecx
jmp 0x1002f5ff
add esp, 0xc
mov eax, dword [ebp - 0x10]
jmp 0x1002f778
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1002f789
push ebx
call fcn.100b8c45
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x1002f7a7
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x1002f7a3
imul eax, dword [ebx]
jmp 0x1002f798
mov ecx, eax
test ecx, ecx
je 0x1002f7c6
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x1002f7bf
push ebx
push eax
call fcn.100b8c45
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x1002f7ad
call fcn.100b8c45
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8