Function at 0x1000f297
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.1002d2ff
add esp, 4
mov dword [ebp - 0xc], eax
mov edi, eax
mov esi, 0x1005137a
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.1002e900
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1000f30c
push ebx
call fcn.1002d305
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp - 4]
test eax, eax
je 0x1000f31d
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 0x1000f349
push 0x4f
push 0x402255e
push 6
call fcn.1002d311
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x1000f602
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x1000f376
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x1000f372
imul eax, dword [ebx]
jmp 0x1000f367
mov ecx, eax
test ecx, ecx
je 0x1000f395
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x1000f38e
push ebx
push eax
call fcn.1002d305
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x1000f37c
call fcn.1002d305
add esp, 4
mov eax, 0x1005137a
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
push 0x80000301
push 0
push dword [ebp - 8]
push htons
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x1000f3c4
mov eax, 0x1005137a
push eax
push 2
mov ebx, 0x1a0
call fcn.1002ec90
add esp, 0x1c
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1000f3ee
push ebx
call fcn.1002d305
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0
push 0
push 0
push htons
push 0
push 0x1005d18a
push htons
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x1000f417
mov eax, 0x1005137a
push eax
push 3
mov ebx, 0x1c4
call fcn.1002f9f0
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 0x1000f44f
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x1000f44b
imul eax, dword [ebx]
jmp 0x1000f440
mov ecx, eax
test ecx, ecx
je 0x1000f46e
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x1000f467
push ebx
push eax
call fcn.1002d305
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x1000f455
call fcn.1002d305
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 0xc]
call fcn.10002fca
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 0x1000f5ff
mov ebx, dword [ebp - 0xc]
call fcn.10002805
push ebx
push ecx
mov eax, dword [ebp - 0x14]
dec eax
jns 0x1000f4c6
push 0x1be
push 0x402255e
push 4
call fcn.1002d311
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x1000f4e3
push 0x1be
push 0x402255e
push 1
call fcn.1002d311
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
push htons
push 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
test eax, eax
jne 0x1000f500
mov eax, 0x1005137a
push eax
push 1
mov ebx, 0x168
call fcn.1002e150
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 0x1000f535
mov eax, 0x100513b3
push eax
push 2
mov ebx, 0x134
call fcn.1002fbb0
add esp, 0x1c
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x1000f55b
push ebx
call fcn.1002d305
add esp, 4
push dword [ebp + 8]
push 4
mov eax, 2
call fcn.1002dbf0
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.10002805
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 0x1000f59f
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.1002d329
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 0x1000f5e4
push eax
mov ebx, eax
call fcn.1000284c
inc eax
push eax
call fcn.1002d2ff
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 0x1000f5f7
push ebx
call fcn.1002d305
add esp, 4
pop eax
pop ebx
pop ecx
jmp 0x1000f491
add esp, 0xc
mov eax, dword [ebp - 0x10]
jmp 0x1000f60a
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1000f61b
push ebx
call fcn.1002d305
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x1000f639
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x1000f635
imul eax, dword [ebx]
jmp 0x1000f62a
mov ecx, eax
test ecx, ecx
je 0x1000f658
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x1000f651
push ebx
push eax
call fcn.1002d305
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x1000f63f
call fcn.1002d305
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8