Function at 0x1006b9d1
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
push ebx
push edi
mov edi, ecx
push 0x100e3d7c
mov dword [ebp - 0x20], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp + 8]
push eax
call fcn.1003f9c4
pop ecx
push 5
lea ecx, [ebp - 8]
call fcn.10046141
push 0x14
lea ecx, [ebp - 0xc]
call fcn.10046141
lea ecx, [ebp - 0x10]
call fcn.10046123
xor ebx, ebx
mov byte [ebp - 1], 0xff
mov byte [ebp - 2], bl
mov byte [ebp - 3], bl
jmp 0x1006bad7
push 9
lea eax, [ebp + 8]
push eax
push str._userfree
call fcn.10048195
add esp, 0xc
test al, al
je 0x1006ba42
mov byte [ebp - 1], bl
jmp 0x1006bad7
push 8
lea eax, [ebp + 8]
push eax
push str._userall
call fcn.10048195
add esp, 0xc
test al, al
je 0x1006ba5f
mov byte [ebp - 1], 1
jmp 0x1006bad7
push 5
lea eax, [ebp + 8]
push eax
push str._free
call fcn.10048195
add esp, 0xc
test al, al
je 0x1006ba7c
mov byte [ebp - 1], 2
jmp 0x1006bad7
push 4
lea eax, [ebp + 8]
push eax
push 0x100d0294
call fcn.10048195
add esp, 0xc
test al, al
je 0x1006ba99
mov byte [ebp - 2], 1
jmp 0x1006bad7
push 2
lea eax, [ebp + 8]
push eax
push 0x100d021c
call fcn.10048195
add esp, 0xc
test al, al
je 0x1006bab6
mov byte [ebp - 3], 1
jmp 0x1006bad7
push 6
lea eax, [ebp + 8]
push eax
push str._clear
call fcn.10048195
add esp, 0xc
test al, al
jne 0x1006bb49
lea eax, [ebp + 8]
push eax
call fcn.10008e60
pop ecx
mov eax, dword [ebp + 8]
cmp word [eax], 0x2d
je 0x1006ba23
push 0x3d
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.1004907a
add esp, 0xc
push ebx
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.10002f54
mov eax, dword [ebp + 8]
cmp word [eax], 0x3d
jne 0x1006bb21
add dword [ebp + 8], 2
push 0x2c
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
call fcn.1004907a
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
mov dword [ebp + 8], eax
mov dword [ebp - 8], ebx
call fcn.100132bf
pop ecx
push eax
lea ecx, [ebp - 8]
call fcn.1005026c
lea ecx, [ebp + 8]
call fcn.1003f96c
mov eax, dword [ebp - 0xc]
xor ecx, ecx
jmp 0x1006bb66
push 8
push ebx
push 0x100e3470
call fcn.100b40f0
add esp, 0xc
jmp 0x1006bed8
cmp cx, 0x2c
je 0x1006bb70
inc eax
inc eax
mov cx, word [eax]
cmp cx, bx
jne 0x1006bb5e
jmp 0x1006bb8a
mov word [eax], bx
inc eax
inc eax
mov dword [ebp + 8], eax
push 0x2c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.1004907a
add esp, 0xc
push esi
push ebx
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.10002f54
push dword [ebp - 0xc]
call fcn.10010e64
mov eax, dword [ebp - 0xc]
cmp word [eax], bx
pop ecx
jne 0x1006bbb0
mov eax, dword [ebp - 0x10]
cmp word [eax], bx
je 0x1006bbb8
mov esi, dword [ebp - 8]
cmp word [esi], bx
jne 0x1006bbc0
xor ebx, ebx
inc ebx
jmp 0x1006bed7
push esi
push 0x100cb458
call fcn.10040e34
test al, al
pop ecx
pop ecx
je 0x1006bc09
push 0xca
lea ecx, [ebp - 0x10]
call fcn.10046168
mov eax, dword [ebp - 0x10]
push ebx
push ebx
push ebx
push 1
mov word [eax], bx
lea eax, [ebp - 8]
push 0x7c
push eax
call fcn.1005697d
add esp, 0x18
push dword [ebp - 8]
mov ecx, edi
push dword [ebp - 0xc]
call fcn.100457c2
jmp 0x1006bed7
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea eax, [esi + 0x19]
push eax
lea ecx, [ebp - 8]
call fcn.10046168
cmp byte [ebp - 1], bl
jl 0x1006bcdb
cmp esi, 1
mov edx, dword [ebp - 8]
jne 0x1006bc45
cmp word [edx], 0x2e
je 0x1006bc5b
mov word [edx + 2], 0x3a
mov word [edx + 4], 0x5c
mov word [edx + 6], bx
cmp esi, 2
jne 0x1006bc5b
cmp word [edx + 2], 0x3a
jne 0x1006bc5b
mov word [edx + 4], 0x5c
mov word [edx + 6], bx
mov esi, 0x100cc244
lea edi, [ebp - 0xf8]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
push 0x1d
pop ecx
lea edi, [ebp - 0xf2]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x3c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov esi, eax
cmp esi, ebx
je 0x1006bcbb
movsx eax, byte [ebp - 1]
push dword [ebp + eax*8 - 0x38]
push dword [ebp + eax*8 - 0x3c]
lea eax, [ebp - 0xf8]
push eax
call fcn.100a0e5d
add esp, 0xc
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0xf8]
push eax
push dword [ebp - 0xc]
call fcn.100457c2
xor eax, eax
cmp esi, ebx
sete al
mov ebx, eax
jmp 0x1006bed7
mov esi, dword [ebp - 8]
mov ax, word [esi]
cmp ax, 0x61
jb 0x1006bcf0
cmp ax, 0x7a
ja 0x1006bcf0
and byte [esi], 0xdf
push str..C:
lea ecx, [ebp - 0x24]
call fcn.100501eb
mov ax, word [esi]
mov edi, dword [ebp - 0x24]
or dword [ebp - 0x14], 0xffffffff
or dword [ebp - 0x18], 0xffffffff
push 4
mov word [edi + 8], ax
push esi
mov word [edi + 0xe], bx
push 0x100d0c24
mov word [edi + 0xc], bx
mov dword [ebp - 0x1c], esi
mov dword [ebp + 8], 0x800
call fcn.10040df5
add esp, 0xc
test al, al
jne 0x1006bde7
push 8
push esi
push str.Device_
call fcn.10040df5
add esp, 0xc
test al, al
jne 0x1006bde7
cmp byte [ebp - 3], bl
mov word [esi + 2], 0x3a
mov word [esi + 4], 0x5c
mov word [esi + 6], bx
mov dword [ebp - 0x1c], edi
je 0x1006bd8c
mov ax, word [esi]
cmp ax, 0x41
jb 0x1006bde7
cmp ax, 0x42
ja 0x1006bde7
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x1006bde7
movzx esi, word [esi]
sub esi, 0x41
jmp 0x1006bdea
mov eax, dword [ebp - 0xc]
cmp word [eax], bx
je 0x1006bd9f
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov esi, eax
jmp 0x1006bda2
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
cmp word [eax], bx
jne 0x1006bdbe
cmp byte [ebp - 2], bl
jne 0x1006bdca
cmp esi, 2
je 0x1006bdbe
cmp esi, 3
je 0x1006bdbe
cmp esi, 5
jne 0x1006bdca
push ebx
push edi
call fcn.100480aa
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
or eax, 0xffffffff
cmp byte [ebp - 2], bl
jne 0x1006bdd5
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x7c]
push eax
push esi
call fcn.100438ac
mov esi, eax
jmp 0x1006be86
mov esi, dword [ebp + 8]
cmp esi, 1
mov dword [ebp + 8], ebx
mov edi, 0x80000000
jg 0x1006be07
lea eax, [esi*4 + 0x100e3470]
cmp dword [eax], ebx
je 0x1006be07
movsx eax, word [eax]
jmp 0x1006be35
mov eax, dword [ebp - 0xc]
cmp word [eax], bx
je 0x1006be38
push ebx
push 0x20000000
push 3
push ebx
push 3
push edi
push dword [ebp - 0x1c]
lea ecx, [ebp + 8]
call fcn.10005b9d
push esi
push 1
push ebx
push dword [ebp + 8]
call fcn.1004b0ea
add esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
cmp word [eax], bx
je 0x1006be6a
cmp dword [ebp + 8], ebx
jne 0x1006be5c
push ebx
push 0x20000000
push 3
push ebx
push 3
push edi
push dword [ebp - 0x1c]
lea ecx, [ebp + 8]
call fcn.10005b9d
push dword [ebp + 8]
push ebx
call fcn.100480aa
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
lea ecx, [ebp + 8]
call fcn.10002d56
push dword [ebp - 0x14]
lea esi, [ebp - 0x7c]
mov eax, esi
push 0x100c72f0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp - 0xc]
add esp, 0xc
cmp word [eax], bx
je 0x1006be9b
mov ecx, dword [ebp - 0x20]
push esi
push eax
call fcn.100457c2
mov eax, dword [ebp - 0x10]
cmp word [eax], bx
je 0x1006bec7
push dword [ebp - 0x18]
lea eax, [ebp - 0x7c]
push 0x100c72f0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 0x20]
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x10]
call fcn.100457c2
cmp word [esi], bx
jne 0x1006becf
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x24]
call fcn.1003f96c
pop esi
lea ecx, [ebp - 0x10]
call fcn.1003f96c
lea ecx, [ebp - 0xc]
call fcn.1003f96c
lea ecx, [ebp - 8]
call fcn.1003f96c
push 0x100e3d7c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, ebx
pop ebx
leave
ret 8