Function at 0x1002f04c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push 8
call fcn.100b8c3f
add esp, 4
mov dword [ebp - 4], 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 - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 1
lea eax, [ebp - 4]
push eax
call fcn.1002f405
mov ebx, dword [ebp - 4]
call fcn.100027cb
xor ecx, ecx
push eax
lea eax, [ebp - 8]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x1002f225
mov ebx, dword [ebp - 4]
call fcn.100020b9
push ebx
push ecx
mov eax, dword [ebp - 8]
dec eax
jns 0x1002f0d6
push 0x84
push 0x4031b69
push 4
call fcn.100b8c4b
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x1002f0f3
push 0x84
push 0x4031b69
push 1
call fcn.100b8c4b
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x14], ebx
push 0x100de907
mov ebx, dword [ebp - 0x14]
push dword [ebx]
mov ecx, 2
call fcn.10001088
add esp, 8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push dword [ebp - 0x18]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x1002f141
push 0x84
push 0x4031b69
push 6
call fcn.100b8c4b
add esp, 0xc
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x1002f154
push ebx
call fcn.100b8c45
add esp, 4
cmp dword [ebp - 0x20], 2
je 0x1002f21d
mov ebx, dword [ebp - 4]
call fcn.100020b9
push ebx
push ecx
mov eax, dword [ebp - 8]
dec eax
jns 0x1002f185
push 0xfd
push 0x4031b69
push 4
call fcn.100b8c4b
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x1002f1a2
push 0xfd
push 0x4031b69
push 1
call fcn.100b8c4b
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x14], ebx
push 0x100de907
mov ebx, dword [ebp - 0x14]
push dword [ebx]
mov ecx, 2
call fcn.10001088
add esp, 8
mov dword [ebp - 0x18], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x1002f1d7
mov eax, 0x100d520e
push eax
push 1
mov ebx, 0x218
call fcn.100bf450
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x1002f1fd
push ebx
call fcn.100b8c45
add esp, 4
fild dword [ebp - 0xc]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x2c]
fadd qword [ebp - 0x2c]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.10001795
mov dword [ebp - 0xc], eax
pop eax
pop ebx
pop ecx
jmp 0x1002f0a1
add esp, 0xc
fild dword [ebp - 0xc]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fdiv qword [0x100d5dfd]
fstp qword [ebp - 0x20]
push 0
push 0
push 0
push 0x80000601
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push 2
mov ebx, 0x68
call fcn.100bf250
add esp, 0x1c
push 0x80000601
push edx
push eax
push 1
mov ebx, 0x168
call fcn.100b9a00
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1002f28d
push ebx
call fcn.100b8c45
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push 0x80000301
push 0
push 1
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x1002f2b0
mov eax, 0x100d520e
push eax
push 2
mov ebx, 0x134
call fcn.100bae70
add esp, 0x1c
mov dword [ebp - 0x14], eax
push 0x100d53a8
push dword [ebp - 0x14]
call fcn.100027e4
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1002f2f4
push ebx
call fcn.100b8c45
add esp, 4
cmp dword [ebp - 0x18], 0
je 0x1002f38a
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x1002f311
mov eax, 0x100d520e
push eax
push 1
mov ebx, 0x130
call fcn.100baa20
add esp, 0x10
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fsub qword [0x100d537e]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.10001795
push 0x80000301
push 0
push eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x1002f35c
mov eax, 0x100d520e
push eax
push 2
mov ebx, 0x138
call fcn.100bb7f0
add esp, 0x1c
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1002f386
push ebx
call fcn.100b8c45
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push 0x100de47c
push dword [ebp - 0x10]
mov ecx, 2
call fcn.10001088
add esp, 8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
jmp 0x1002f3aa
push eax
mov ebx, dword [ebp - 4]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x1002f3c9
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x1002f3c5
imul eax, dword [ebx]
jmp 0x1002f3ba
mov ecx, eax
test ecx, ecx
je 0x1002f3e8
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x1002f3e1
push ebx
push eax
call fcn.100b8c45
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x1002f3cf
call fcn.100b8c45
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1002f400
push ebx
call fcn.100b8c45
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret