Function at 0x100b7410
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1022e555
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x102db080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x20], ebx
call fcn.10088a70
mov ecx, eax
test ecx, ecx
je 0x100b76e6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
call fcn.10087a70
test al, al
jne 0x100b7499
test ebx, ebx
jne 0x100b7477
xor ecx, ecx
jmp 0x100b748f
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100b7480
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x1c]
call fcn.10088120
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 1
call fcn.100b7720
mov edi, dword [ebp - 0x1c]
cmp dword [edi - 0xc], 2
lea eax, [edi - 0x10]
jg 0x100b74c2
push eax
call fcn.100874b0
add esp, 4
lea esi, [eax + 0x10]
jmp 0x100b7540
mov ecx, dword [eax]
test ecx, ecx
je 0x100b74d3
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x100b74e9
call fcn.10088a70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x100b76f0
test edi, edi
je 0x100b7709
lfence
mov eax, dword [ecx]
push 2
push 2
call dword [eax]
test eax, eax
je 0x100b76fa
cmp dword [eax + 8], 2
lea esi, [eax + 0x10]
jl 0x100b7709
mov dword [eax + 4], 2
xor eax, eax
mov word [esi + 4], ax
test edi, edi
je 0x100b7528
mov eax, dword [edi]
mov dword [esi], eax
jmp 0x100b7540
mov dword [esi], eax
test edi, edi
jne 0x100b7540
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0x16
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov ecx, 0x102385f4
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100b756d
test dx, dx
je 0x100b7569
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100b756d
add eax, 4
add ecx, 4
test dx, dx
jne 0x100b7547
xor ebx, ebx
jmp 0x100b7572
sbb ebx, ebx
or ebx, 1
test ebx, ebx
mov byte [ebp - 4], 1
lea edx, [esi - 0x10]
sete byte [ebp - 0x15]
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100b7599
lfence
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x100b76ad
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], eax
call fcn.10088a70
mov ecx, eax
test ecx, ecx
je 0x100b76ff
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x20]
lea ecx, [ebp - 0x14]
push esi
mov byte [ebp - 4], 3
call fcn.10087a70
test al, al
jne 0x100b7609
test esi, esi
jne 0x100b75e4
xor ecx, ecx
jmp 0x100b75ff
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100b75f0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x14]
call fcn.10088120
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 4
mov esi, dword [eax - 0xc]
test esi, esi
js 0x100b7709
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or edx, ecx
jge 0x100b763b
push esi
lea ecx, [ebp - 0x14]
lfence
call fcn.10087d30
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x100b764d
xor ecx, ecx
jmp 0x100b7667
push dword [eax - 8]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x100b7709
mov eax, dword [ebp - 0x14]
cmp ecx, dword [eax - 8]
jg 0x100b7709
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 0x14]
mov word [eax + ecx*2], dx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov edx, dword [ebp - 0x14]
cmp eax, 4
sete bl
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100b76b0
lfence
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x100b76b0
mov bl, byte [ebp - 0x15]
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x100b76c8
lfence
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100b9f43
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10088c90
push 0x80004005
call fcn.10088c90
call fcn.10087cb0
push 0x80004005
call fcn.10088c90
push 0x80070057
call fcn.10088c90
int3