Function at 0x10bad47
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x47c
mov eax, dword [0x10e3200]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x474], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
push 0x103eba4
mov dword [ebp - 0x460], eax
mov dword [ebp - 0x444], ebx
mov dword [ebp - 0x440], 1
call fcn.010bd0c6
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x232]
push ebx
push eax
mov dword [ebp - 0x450], ebx
call sub.msvcrt.dll_memset
xor eax, eax
push esi
mov word [ebp - 0x43c], ax
lea eax, [ebp - 0x43a]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
xor eax, eax
push 9
mov word [ebp - 0x2c], ax
pop ecx
lea edi, [ebp - 0x2a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
or eax, 0xffffffff
mov dword [ebp - 0x44c], ebx
mov dword [ebp - 0x458], eax
mov dword [ebp - 0x448], eax
mov dword [ebp - 0x47c], eax
mov dword [ebp - 0x45c], eax
mov dword [ebp - 0x470], eax
mov dword [ebp - 0x464], ebx
mov dword [ebp - 0x468], ebx
cmp dword [ebp - 0x460], ebx
je 0x10bae1c
mov eax, dword [ebp - 0x460]
mov dword [eax], ebx
mov eax, dword [ebp - 0x474]
cmp eax, ebx
jne 0x10bae61
push 0x57
pop ecx
mov dword [ebp - 0x440], ebx
mov dword [ebp - 0x444], ecx
mov eax, dword [0x10e308c]
cmp eax, 0x10e308c
je 0x10bb6c7
test byte [eax + 0x1c], 8
je 0x10bb6c7
push 0x103eb94
push ecx
push 0x103dfb8
push 0x1c
jmp 0x10bb64d
cmp dword [ebp - 0x460], ebx
jne 0x10baea4
push 0x57
pop ecx
mov dword [ebp - 0x440], ebx
mov dword [ebp - 0x444], ecx
mov eax, dword [0x10e308c]
cmp eax, 0x10e308c
je 0x10bb6c7
test byte [eax + 0x1c], 8
je 0x10bb6c7
push 0x103eb80
push ecx
push 0x103dfb8
push 0x1d
jmp 0x10bb64d
cmp dword [eax + 4], ebx
je 0x10baed6
call fcn.010b8f14
test eax, eax
je 0x10baeeb
mov eax, dword [0x10e308c]
cmp eax, 0x10e308c
je 0x10baed6
test byte [eax + 0x1c], 2
je 0x10baed6
push 0x103dfb8
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010acd65
mov dword [ebp - 0x440], 1
mov dword [ebp - 0x444], ebx
jmp 0x10bb6c7
call fcn.010b5d42
mov dword [ebp - 0x46c], eax
cmp eax, ebx
jne 0x10baf37
mov ecx, 0x65e
mov dword [ebp - 0x440], ebx
mov dword [ebp - 0x444], ecx
mov eax, dword [0x10e308c]
cmp eax, 0x10e308c
je 0x10bb6c7
test byte [eax + 0x1c], 8
je 0x10bb6c7
push 0x103da28
push ecx
push 0x103dfb8
push 0x1f
jmp 0x10bb64d
cmp eax, 1
jne 0x10baf8e
lea eax, [ebp - 0x47c]
push eax
call fcn.010b9363
test eax, eax
jne 0x10baf8e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x440], ebx
call esi
mov dword [ebp - 0x444], eax
mov eax, dword [0x10e308c]
cmp eax, 0x10e308c
je 0x10bb6c7
test byte [eax + 0x1c], 8
je 0x10bb6c7
push 0x103eb54
call esi
push eax
push 0x103dfb8
push 0x20
jmp 0x10bb648
push 0x104
lea eax, [ebp - 0x43c]
push eax
call fcn.010bab87
test eax, eax
jne 0x10bafe5
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x440], ebx
call esi
mov dword [ebp - 0x444], eax
mov eax, dword [0x10e308c]
cmp eax, 0x10e308c
je 0x10bb6c7
test byte [eax + 0x1c], 8
je 0x10bb6c7
push 0x103eb08
call esi
push eax
push 0x103dfb8
push 0x21
jmp 0x10bb648
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push 0x2000000
push 3
push ebx
push 3
mov edi, 0x80000000
push edi
lea eax, [ebp - 0x43c]
push eax
call esi
mov dword [ebp - 0x458], eax
cmp eax, ebx
je 0x10bb68c
cmp eax, 0xffffffff
je 0x10bb68c
push ebx
lea ecx, [ebp - 0x464]
push ecx
push ebx
push ebx
push 0x560000
push eax
call fcn.010be73b
test eax, eax
jne 0x10bb077
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x440], ebx
call esi
mov dword [ebp - 0x444], eax
mov eax, dword [0x10e308c]
cmp eax, 0x10e308c
je 0x10bb6c7
test byte [eax + 0x1c], 8
je 0x10bb6c7
push 0x103ea90
call esi
push eax
push 0x103dfb8
push 0x23
jmp 0x10bb648
lea eax, [ebp - 0x44c]
push eax
call fcn.010bdb51
test eax, eax
jne 0x10bb0c9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x440], ebx
call esi
mov dword [ebp - 0x444], eax
mov eax, dword [0x10e308c]
cmp eax, 0x10e308c
je 0x10bb6c7
test byte [eax + 0x1c], 8
je 0x10bb6c7
push 0x103ea60
call esi
push eax
push 0x103dfb8
push 0x24
jmp 0x10bb648
mov ecx, dword [ebp - 0x44c]
cmp word [ecx], bx
je 0x10bb123
mov eax, ecx
lea edx, [eax + 2]
mov dword [ebp - 0x448], edx
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x10bb0df
sub eax, dword [ebp - 0x448]
sar eax, 1
cmp word [ecx + eax*2 - 2], 0x5c
jne 0x10bb123
mov eax, ecx
lea edx, [eax + 2]
mov dword [ebp - 0x448], edx
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x10bb104
sub eax, dword [ebp - 0x448]
sar eax, 1
xor edx, edx
mov word [ecx + eax*2 - 2], dx
mov ecx, dword [ebp - 0x44c]
push ebx
push 0x2000000
push 3
push ebx
push 3
push edi
push ecx
call esi
mov dword [ebp - 0x448], eax
cmp eax, ebx
je 0x10bb65a
cmp eax, 0xffffffff
je 0x10bb65a
push ebx
lea ecx, [ebp - 0x468]
push ecx
push ebx
push ebx
push 0x560000
push eax
call fcn.010be73b
test eax, eax
jne 0x10bb1a4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x440], ebx
call esi
mov dword [ebp - 0x444], eax
mov eax, dword [0x10e308c]
cmp eax, 0x10e308c
je 0x10bb6c7
test byte [eax + 0x1c], 8
je 0x10bb6c7
push 0x103e9f0
call esi
push eax
push 0x103dfb8
push 0x26
jmp 0x10bb648
mov esi, dword [ebp - 0x474]
mov eax, dword [esi + 4]
shl eax, 4
push eax
call fcn.010bd463
mov dword [ebp - 0x450], eax
cmp eax, ebx
jne 0x10bb1fb
push 0xe
pop ecx
mov dword [ebp - 0x440], ebx
mov dword [ebp - 0x444], ecx
mov eax, dword [0x10e308c]
cmp eax, 0x10e308c
je 0x10bb6c7
test byte [eax + 0x1c], 8
je 0x10bb6c7
push 0x103e9dc
push ecx
push 0x103dfb8
push 0x27
jmp 0x10bb64d
mov dword [ebp - 0x454], ebx
cmp dword [esi + 4], ebx
jbe 0x10bb538
mov edx, dword [ebp - 0x450]
add edx, 8
mov ebx, esi
mov dword [ebp - 0x478], edx
add ebx, 0x50
mov eax, dword [ebp - 0x454]
mov dword [edx - 4], eax
cmp dword [ebx - 8], 0
je 0x10bb506
mov ecx, dword [ebx - 0x20]
test ecx, ecx
jne 0x10bb252
mov al, byte [ebx]
test al, al
je 0x10bb506
cmp al, 5
je 0x10bb506
cmp al, 0xf
je 0x10bb506
cmp ecx, 1
jne 0x10bb26b
push 4
pop ecx
mov edi, 0x103034c
mov esi, ebx
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x10bb506
mov eax, dword [ebp - 0x464]
mov ecx, dword [eax]
xor esi, esi
test ecx, ecx
jbe 0x10bb2e8
add eax, 0x10
mov edi, dword [eax - 8]
cmp edi, dword [ebp + 8]
jne 0x10bb293
mov edi, dword [eax]
cmp edi, dword [ebx - 0x18]
jne 0x10bb293
mov edi, dword [eax + 4]
cmp edi, dword [ebx - 0x14]
je 0x10bb29d
inc esi
add eax, 0x18
cmp esi, ecx
jb 0x10bb27c
jmp 0x10bb2e8
mov cx, word [edx]
or cx, 2
cmp dword [ebp - 0x46c], 1
movzx eax, cx
mov word [edx], cx
jne 0x10bb2be
mov ecx, dword [ebp - 0x47c]
cmp ecx, dword [ebp + 8]
je 0x10bb2c7
cmp dword [ebp - 0x46c], 2
jne 0x10bb2e8
or eax, 4
cmp dword [ebp - 0x46c], 2
mov word [edx], ax
jne 0x10bb2e8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x45c], eax
mov eax, dword [ebx - 8]
mov dword [ebp - 0x470], eax
mov eax, dword [ebp - 0x468]
mov ecx, dword [eax]
xor esi, esi
test ecx, ecx
jbe 0x10bb31e
add eax, 0x10
mov edi, dword [eax - 8]
cmp edi, dword [ebp + 8]
jne 0x10bb310
mov edi, dword [eax]
cmp edi, dword [ebx - 0x18]
jne 0x10bb310
mov edi, dword [eax + 4]
cmp edi, dword [ebx - 0x14]
je 0x10bb31a
inc esi
add eax, 0x18
cmp esi, ecx
jb 0x10bb2f9
jmp 0x10bb31e
or word [edx], 1
push 0x104
lea eax, [ebp - 0x234]
push eax
push 0
push dword [ebx - 8]
push dword [ebp + 8]
call fcn.010bf019
test eax, eax
je 0x10bb551
mov eax, dword [ebp - 0x478]
add eax, 0xfffffff8
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.010c0e60
test eax, eax
jne 0x10bb384
mov eax, dword [0x10e308c]
cmp eax, 0x10e308c
je 0x10bb389
test byte [eax + 0x1c], 2
je 0x10bb389
lea ecx, [ebp - 0x234]
push ecx
push 0x103dfb8
push 0x29
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010ace2a
mov eax, dword [0x10e308c]
cmp dword [ebp - 0x46c], 2
jne 0x10bb506
cmp dword [ebx - 0x20], 1
jne 0x10bb3ac
push 4
pop ecx
mov edi, 0x103035c
mov esi, ebx
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x10bb3ca
mov ecx, dword [ebp - 0x45c]
cmp dword [ebp + 8], ecx
jne 0x10bb506
mov ecx, dword [ebp - 0x470]
cmp dword [ebx - 8], ecx
jne 0x10bb506
mov ecx, dword [ebp - 0x45c]
cmp dword [ebp + 8], ecx
jne 0x10bb3e0
mov ecx, dword [ebp - 0x470]
cmp dword [ebx - 8], ecx
je 0x10bb405
cmp eax, 0x10e308c
je 0x10bb405
test byte [eax + 0x1c], 4
je 0x10bb405
push dword [ebx - 8]
push dword [ebp + 8]
push 0x103dfb8
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010acf36
push dword [ebx - 8]
lea eax, [ebp - 0x234]
push dword [ebp + 8]
push 0x103e9bc
push 0x103e978
push 0x104
push eax
call fcn.010475bf
xor edi, edi
add esp, 0x18
cmp eax, edi
jl 0x10bb596
mov esi, dword [ebp - 0x478]
push 0x14
xor eax, eax
add esi, 2
mov byte [esi], 0
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x2c]
push eax
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x10bb4f4
mov eax, dword [0x10e308c]
mov esi, 0x10e308c
cmp eax, esi
je 0x10bb49d
test byte [eax + 0x1c], 4
je 0x10bb49d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebx - 8]
mov eax, dword [0x10e308c]
push dword [ebp + 8]
push 0x103dfb8
push 0x2c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010b8df2
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x45c]
jne 0x10bb506
mov eax, dword [ebp - 0x470]
cmp dword [ebx - 8], eax
jne 0x10bb506
mov dword [ebp - 0x440], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x444], eax
mov eax, dword [0x10e308c]
cmp eax, esi
je 0x10bb6c7
test byte [eax + 0x1c], 8
je 0x10bb6c7
push 0x103a670
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x103dfb8
push 0x2d
jmp 0x10bb648
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.010cbdee
test eax, eax
je 0x10bb609
inc dword [ebp - 0x454]
mov edx, dword [ebp - 0x478]
mov eax, dword [ebp - 0x474]
mov ecx, dword [ebp - 0x454]
add edx, 0x10
add ebx, 0x90
mov dword [ebp - 0x478], edx
cmp ecx, dword [eax + 4]
jb 0x10bb21e
xor ebx, ebx
mov ecx, dword [ebp - 0x450]
mov eax, dword [ebp - 0x460]
mov dword [eax], ecx
mov dword [ebp - 0x450], ebx
jmp 0x10bb6c7
and dword [ebp - 0x440], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x444], eax
mov eax, dword [0x10e308c]
cmp eax, 0x10e308c
je 0x10bb6c7
test byte [eax + 0x1c], 8
je 0x10bb6c7
push 0x103e900
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x103dfb8
push 0x28
jmp 0x10bb648
mov ecx, eax
mov dword [ebp - 0x440], edi
call fcn.010bd152
mov dword [ebp - 0x444], eax
mov eax, dword [0x10e308c]
cmp eax, 0x10e308c
je 0x10bb6c7
test byte [eax + 0x1c], 8
je 0x10bb6c7
push 0x103e858
push dword [ebx - 8]
lea eax, [ebp - 0x234]
push dword [ebp + 8]
push 0x103e9bc
push 0x103e978
push 0x104
push eax
call fcn.010475bf
add esp, 0x18
push eax
mov eax, dword [0x10e308c]
push 0x103dfb8
push 0x2b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010acf68
jmp 0x10bb6c7
mov dword [ebp - 0x440], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x444], eax
mov eax, dword [0x10e308c]
cmp eax, 0x10e308c
je 0x10bb6c7
test byte [eax + 0x1c], 8
je 0x10bb6c7
push 0x103e810
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x103dfb8
push 0x2e
mov eax, dword [0x10e308c]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010acf68
jmp 0x10bb6c7
mov dword [ebp - 0x440], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x444], eax
mov eax, dword [0x10e308c]
cmp eax, 0x10e308c
je 0x10bb6c7
test byte [eax + 0x1c], 8
je 0x10bb6c7
push 0x103e804
push 0x103dfb8
push 0x25
jmp 0x10bb6bc
mov dword [ebp - 0x440], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x444], eax
mov eax, dword [0x10e308c]
cmp eax, 0x10e308c
je 0x10bb6c7
test byte [eax + 0x1c], 8
je 0x10bb6c7
push 0x103e7f4
push 0x103dfb8
push 0x22
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010af793
push dword [ebp - 0x450]
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
call esi
push dword [ebp - 0x464]
call esi
push dword [ebp - 0x468]
xor edi, edi
mov dword [ebp - 0x464], edi
call esi
push dword [ebp - 0x44c]
mov dword [ebp - 0x468], edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x44c], edi
cmp dword [ebp - 0x458], edi
je 0x10bb720
cmp dword [ebp - 0x458], 0xffffffff
je 0x10bb720
push dword [ebp - 0x458]
call esi
cmp dword [ebp - 0x448], edi
je 0x10bb739
cmp dword [ebp - 0x448], 0xffffffff
je 0x10bb739
push dword [ebp - 0x448]
call esi
push 0x103eba4
call fcn.010bd0fb
push dword [ebp - 0x444]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x440]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010989ab
leave
ret 0xc