Function at 0x10055a68
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
xor ebx, ebx
push 0x1410
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
call fcn.10045fcc
mov esi, dword [ebp - 0x1c]
lea eax, [esi + 0x800]
push 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
lea edi, [esi + 0x400]
mov dword [ebp - 0x18], eax
mov byte [ebp - 2], bl
mov byte [ebp - 3], bl
mov byte [ebp - 1], bl
call fcn.100b40f0
push 0x28
push ebx
push edi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov byte [esi + 8], bl
call fcn.100b40f0
add esp, 0x18
push ebx
lea eax, [ebp - 0x10]
push eax
push 0x828
push edi
push 0xc
push esi
push 0x2d1400
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, ebx
mov ecx, dword [edi + 0x1c]
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], ecx
jg 0x10055af0
mov dword [edi + 0x18], ebx
mov dword [edi + 0x10], ebx
cmp byte [0x100e2e70], bl
je 0x10055b1a
push dword [edi + 0x18]
push dword [edi + 0x10]
push eax
push ecx
push dword [ebp + 0x14]
push 0x36a5
push str.DBGG__d__d__d:__d__d__d_r_n
push 0x100e3108
call fcn.10011029
add esp, 0x20
mov eax, dword [ebp + 0x10]
mov word [eax], 0x22
mov ecx, dword [edi + 0x10]
inc eax
inc eax
cmp ecx, ebx
mov dword [ebp + 0x10], eax
jbe 0x10055b46
mov eax, dword [edi + 4]
sub eax, ecx
push eax
add ecx, edi
push ecx
lea eax, [ebp + 0x10]
push eax
call fcn.1004372e
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov word [eax], 0x22
inc eax
inc eax
mov word [eax], 0x20
inc eax
inc eax
mov word [eax], 0x22
mov ecx, dword [edi + 0x18]
inc eax
inc eax
cmp ecx, ebx
mov dword [ebp + 0x10], eax
jbe 0x10055b7d
mov eax, dword [edi + 4]
sub eax, ecx
push eax
add ecx, edi
push ecx
lea eax, [ebp + 0x10]
push eax
call fcn.1004372e
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov word [eax], 0x22
inc eax
inc eax
cmp dword [ebp + 0x14], ebx
mov dword [ebp + 0x10], eax
mov word [eax], bx
je 0x10055c24
movzx ecx, byte [edi + 0xb]
push ecx
movzx ecx, byte [edi + 0xa]
push ecx
movzx ecx, byte [edi + 9]
push ecx
movzx ecx, byte [edi + 8]
push ecx
push dword [edi]
push str.__d__d__d__d__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp + 0x10]
lea eax, [ecx + eax*2]
mov ecx, dword [edi + 0xc]
add esp, 0x1c
cmp ecx, ebx
mov dword [ebp + 0x10], eax
jbe 0x10055be0
mov eax, dword [edi + 4]
sub eax, ecx
push eax
add ecx, edi
push ecx
lea eax, [ebp + 0x10]
push eax
call fcn.1004372e
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov word [eax], 0x22
push 2
pop esi
add eax, esi
mov word [eax], 0x20
add eax, esi
mov word [eax], 0x22
mov ecx, dword [edi + 0x14]
add eax, esi
cmp ecx, ebx
mov dword [ebp + 0x10], eax
jbe 0x10055c1a
mov eax, dword [edi + 4]
sub eax, ecx
push eax
add ecx, edi
push ecx
lea eax, [ebp + 0x10]
push eax
call fcn.1004372e
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov word [eax], 0x22
jmp 0x10056068
cmp dword [ebp - 0x14], 0x11
je 0x10055e9d
cmp dword [ebp - 0x14], 7
je 0x10055c3e
cmp dword [ebp - 0x14], 5
jne 0x10055da9
push 0x2c
push ebx
push dword [ebp - 0xc]
mov byte [ebp - 3], 1
call fcn.100b40f0
push 0x2c
push ebx
push esi
call fcn.100b40f0
push 0x100
push ebx
push edi
call fcn.100b40f0
add esp, 0x24
push ebx
lea eax, [ebp - 0x10]
push eax
push 0xf4
push esi
push 0x2c
push esi
push 0x4d014
push dword [ebp + 8]
mov word [esi], 0x2c
mov byte [esi + 6], 6
mov byte [esi + 8], 1
mov dword [esi + 0xc], 0x100
mov dword [esi + 0x10], 2
mov dword [esi + 0x14], edi
mov byte [esi + 0x1c], 0x12
mov byte [esi + 0x20], 0xc8
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 4
mov dword [ebp + 0x14], eax
movzx eax, byte [esi + 2]
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
call fcn.100b40f0
mov eax, dword [ebp - 0xc]
push 0x2c
push ebx
push esi
mov dword [eax + 4], ebx
call fcn.100b40f0
mov eax, dword [ebp - 0xc]
add esp, 0x18
push ebx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x20]
push eax
push 0xf4
push esi
push 0x2c
push esi
mov word [esi], 0x2c
mov byte [esi + 6], 6
mov byte [esi + 8], 1
mov dword [esi + 0xc], 0x100
mov dword [esi + 0x10], 2
or byte [esi + 0x1d], 1
push 0x4d014
push dword [ebp + 8]
mov byte [esi + 0x1c], 0x12
mov byte [esi + 0x1e], 0x80
mov dword [ebp - 0x20], ebx
mov byte [esi + 0x20], 0xc8
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp dword [ebp + 0x14], ebx
mov dword [ebp - 8], eax
movzx eax, byte [esi + 2]
jne 0x10055d2d
mov byte [edi + 0x10], bl
cmp dword [ebp - 8], ebx
mov ecx, dword [ebp - 0xc]
jne 0x10055d38
mov byte [ecx + 4], bl
cmp dword [ebp + 0x14], ebx
jle 0x10055d57
cmp dword [ebp - 8], ebx
jle 0x10055d57
cmp byte [ecx + 3], bl
jbe 0x10055d57
cmp dword [ebp - 0x14], ebx
jne 0x10055d57
cmp eax, ebx
mov dword [ebp + 0x10], 1
je 0x10055d5a
mov dword [ebp + 0x10], ebx
cmp byte [0x100e2e70], bl
je 0x10055d8e
push eax
push dword [ebp - 0x14]
movzx eax, byte [ecx + 3]
push eax
push dword [ebp + 0x10]
push dword [ebp - 8]
push dword [ebp + 0x14]
push 0x3742
push str.DBGS__d:__d__d__d__d__d__d_r_n
push 0x100e3108
call fcn.10011029
mov ecx, dword [ebp - 0xc]
add esp, 0x24
cmp dword [ebp + 0x10], ebx
jne 0x10055f9f
cmp byte [ebp - 1], bl
je 0x10055e9d
cmp byte [ebp - 2], bl
jne 0x1005606d
push 0x400
push ebx
push edi
mov byte [ebp - 2], 1
call fcn.100b40f0
push 0x25
push ebx
push esi
call fcn.100b40f0
add esp, 0x18
push ebx
lea eax, [ebp - 0x10]
push eax
push 0x400
push edi
push 0x21
push esi
push 0x7c088
push dword [ebp + 8]
mov dword [esi], 0x200
mov byte [esi + 5], 1
mov byte [esi + 6], 1
mov byte [esi + 9], 0xa0
mov byte [esi + 0xa], 0xec
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp byte [0x100e2e70], bl
mov dword [ebp - 8], eax
je 0x10055e24
movzx ecx, word [edi + 0x46]
push ecx
movzx ecx, word [edi + 0x24]
push ecx
push eax
push 0x36df
push str.DBGA__d:__d_0x_X_0x_X_r_n
push 0x100e3108
call fcn.10011029
add esp, 0x18
cmp dword [ebp - 8], ebx
je 0x10055e94
lea ecx, [edi + 0x10]
cmp word [ecx + 0x14], 0x2000
jb 0x10055e94
cmp word [ecx + 0x36], 0x2000
jb 0x10055e94
mov eax, dword [ebp - 0x18]
mov word [eax], 0x22
add eax, 2
push eax
push 0x2e
push 0x1b
push ecx
call fcn.100436aa
mov word [eax], 0x22
inc eax
inc eax
mov word [eax], 0x20
inc eax
inc eax
mov word [eax], 0x22
inc eax
inc eax
push eax
push 0x13
mov dword [ebp + 0x10], eax
lea eax, [edi + 0x10]
push 0xa
push eax
call fcn.100436aa
mov ecx, dword [ebp + 0x10]
mov cx, word [ecx]
mov word [eax], 0x22
add esp, 0x20
inc eax
inc eax
cmp cx, bx
mov word [eax], bx
jne 0x1005606d
cmp byte [ebp - 1], bl
jne 0x10055f91
push 0x1030
push ebx
push esi
mov byte [ebp - 1], 1
call fcn.100b40f0
add esp, 0xc
mov dword [esi], 0x31
mov dword [esi + 4], ebx
xor eax, eax
inc eax
push ebx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov eax, 0x1030
push eax
push esi
push eax
push esi
push 0x2d1400
push dword [ebp + 8]
mov dword [esi + 8], 2
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], 0x28
mov dword [esi + 0x1c], 0x1000
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], ebx
mov eax, dword [esi + 0x18]
lea ecx, [eax + esi + 8]
mov dword [ebp + 0x14], ecx
jle 0x10055f35
cmp dword [esi], 0x30
jne 0x10055f35
cmp dword [esi + 4], 0x30
jne 0x10055f35
cmp eax, 0x28
jb 0x10055f35
cmp dword [esi + 0x1c], 0x1000
jb 0x10055f35
cmp word [ecx], bx
je 0x10055f35
cmp dword [ecx + 0x204], ebx
mov dword [ebp + 0x10], 1
jne 0x10055f38
mov dword [ebp + 0x10], ebx
cmp byte [0x100e2e70], bl
je 0x10055f7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 0x14]
push dword [eax + 0x204]
movzx eax, word [eax]
push eax
push dword [esi + 0x1c]
push dword [esi + 0x18]
push dword [esi]
push dword [ebp - 0x10]
push dword [ebp + 0x10]
push dword [ebp - 8]
push 0x370b
push str.DBGN__d:__d__d__d___d__d__d__d__d_err_d_r_n
push 0x100e3108
call fcn.10011029
mov ecx, dword [ebp + 0x14]
add esp, 0x30
cmp dword [ebp + 0x10], ebx
jne 0x10056015
cmp byte [ebp - 2], bl
je 0x10055da9
cmp byte [ebp - 3], bl
jne 0x10055d97
jmp 0x10055c3e
mov eax, dword [ebp - 0x18]
push 0x22
pop esi
mov word [eax], si
add eax, 2
cmp dword [ebp + 0x14], ebx
mov dword [ebp + 0x10], eax
je 0x10055fcb
push 0x10
add edi, 0x10
lea eax, [ebp + 0x10]
push edi
push eax
call fcn.1004372e
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov word [eax], si
push 2
pop edi
add eax, edi
mov word [eax], 0x20
add eax, edi
mov word [eax], si
add eax, edi
cmp dword [ebp - 8], ebx
mov dword [ebp + 0x10], eax
mov word [eax], bx
je 0x10056008
mov dl, byte [ecx + 3]
cmp dl, bl
jbe 0x10056008
movzx eax, dl
push eax
add ecx, 4
push ecx
lea eax, [ebp + 0x10]
push eax
call fcn.1004372e
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov word [eax], si
add eax, edi
xor esi, esi
mov word [eax], bx
inc esi
jmp 0x10056070
mov eax, dword [ebp - 0x18]
push 0x22
pop edi
mov word [eax], di
add eax, 2
push 0x28
add ecx, 0x18
mov dword [ebp + 0x10], eax
push ecx
lea eax, [ebp + 0x10]
push eax
call fcn.1004372e
mov eax, dword [ebp + 0x10]
mov word [eax], di
push 2
pop esi
add eax, esi
mov word [eax], 0x20
add eax, esi
mov word [eax], di
add eax, esi
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x14]
add eax, 4
push 0x14
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.1004372e
mov eax, dword [ebp + 0x10]
add esp, 0x18
mov word [eax], di
add eax, esi
mov word [eax], bx
mov esi, dword [ebp - 8]
lea ecx, [ebp - 0x1c]
call fcn.1003f96c
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret