Function at 0x10031ce0
Capabilities:
Get disk information
Get volume information via ioctl

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3f4
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x3f0], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x3f
mov edi, edx
lea edx, [esp + 0xa5]
push 0
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
mov byte [esp + 0xac], 0
call fcn.10116880
add esp, 0xc
test ebx, ebx
je 0x10031d33
mov byte [ebx], 0
test esi, esi
je 0x10031d3a
mov byte [esi], 0
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1e8]
mov byte [eax], 0
mov eax, edi
sub edx, edi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10031d50
cmp byte [esp + 0x1e8], cl
je 0x10031d99
lea eax, [esp + 0x1e8]
lea ebx, [ebx]
inc eax
cmp byte [eax], 0
jne 0x10031d70
lea ecx, [esp + 0x1e8]
sub eax, ecx
je 0x10031d99
cmp byte [esp + eax + 0x1e7], 0x5c
je 0x10031d99
push 0x10149ea8
mov edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [esp + 0x14]
push 0x40
lea eax, [esp + 0xa4]
push eax
push 0
push 0
push ecx
push 0
push 0
lea edx, [esp + 0x204]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x10031e27
push 0x103
push eax
mov byte [esp + 0x2f8], al
lea eax, [esp + 0x2f9]
push eax
call fcn.10116880
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x104
mov edi, eax
lea esi, [esp + 0x2f4]
call fcn.10049ce0
add esp, 4
test ebx, ebx
je 0x10031e10
mov ecx, esi
push ecx
push str.GetVolumeInformation_Fails___s
push ebx
call fcn.1010d6a8
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3f0]
xor ecx, esp
call fcn.1010d699
mov esp, ebp
pop ebp
ret
xor ebx, ebx
cmp esi, ebx
je 0x10031e4a
lea eax, [esp + 0xa0]
mov edx, esi
mov ecx, eax
sub edx, ecx
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10031e40
lea edx, [esp + 0xa0]
push 0x10149b74
push edx
call fcn.1011c280
add esp, 8
test eax, eax
jne 0x10031fab
push 0x5c
lea eax, [esp + 0x28]
push ebx
push eax
mov dword [esp + 0x2c], ebx
call fcn.10116880
movsx ecx, byte [edi]
xor eax, eax
add esp, 0xc
push ecx
lea edx, [esp + 0x84]
push str.._c:
push edx
mov byte [esp + 0x8c], bl
mov dword [esp + 0x8d], eax
mov dword [esp + 0x91], eax
mov dword [esp + 0x95], eax
mov dword [esp + 0x99], eax
mov dword [esp + 0x9d], eax
mov dword [esp + 0xa1], eax
mov dword [esp + 0xa5], eax
mov word [esp + 0xa9], ax
mov byte [esp + 0xab], al
call fcn.1010d6a8
add esp, 0xc
push 0
push 3
push 3
push closesocket
lea edi, [esp + 0x90]
call fcn.10033690
add esp, 0x10
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x10031fab
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x60
lea edx, [esp + 0x2c]
push edx
push 0
push 0
push 0x90064
push eax
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x10031f9d
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
push eax
lea ecx, [esp + 0xe4]
push str._0.8I32x
push ecx
mov ebx, 1
call fcn.1010d6a8
mov edi, dword [esp + 0x1c]
add esp, 0xc
push 0
mov edx, edi
lea ecx, [esp + 0xe4]
call fcn.10031b80
add esp, 4
push esi
lea edx, [esp + 0xe4]
push str._0.8I32x
push edx
call fcn.1010d6a8
mov eax, edi
add esp, 0xc
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10031f80
sub eax, edx
push 0
lea edx, [eax + edi]
lea ecx, [esp + 0xe4]
call fcn.10031b80
add esp, 4
lea eax, [esp + 0x1c]
push eax
call fcn.100673f0
test ebx, ebx
jne 0x10031fdc
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edx
lea eax, [esp + 0xe4]
push str._0.8I32x
push eax
call fcn.1010d6a8
mov edx, dword [esp + 0x1c]
add esp, 0xc
push 1
lea ecx, [esp + 0xe4]
call fcn.10031b80
add esp, 4
mov ecx, dword [esp + 0x3fc]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.1010d699
mov esp, ebp
pop ebp
ret