Function at 0x410180
Capabilities:
Get storage device properties

Disassembly:
push ebp
lea ebp, [esp - 0x37c0]
mov eax, 0x37c0
call fcn.00489470
push 0xffffffffffffffff
push 0x49ccb3
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x4bfdd0]
xor eax, ebp
mov dword [ebp + 0x37bc], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x37c8]
xor edi, edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x88], 0xffffffff
mov dword [ebp - 0x3c], edi
mov dword [ebp - 4], edi
call fcn.00410980
mov dword [ebp - 0x48], eax
mov byte [eax + 0x11], 1
mov eax, dword [ebp - 0x48]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x48]
mov dword [eax], eax
mov eax, dword [ebp - 0x48]
mov dword [eax + 8], eax
mov dword [ebp - 0x44], edi
mov byte [ebp - 4], 1
call fcn.00411aa0
mov dword [ebp - 0x24], eax
mov byte [eax + 0x15], 1
mov eax, dword [ebp - 0x24]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [eax], eax
mov eax, dword [ebp - 0x24]
mov dword [eax + 8], eax
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 2
call fcn.00411aa0
mov dword [ebp - 0x30], eax
mov byte [eax + 0x15], 1
mov eax, dword [ebp - 0x30]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [eax], eax
mov eax, dword [ebp - 0x30]
mov dword [eax + 8], eax
mov dword [ebp - 0x2c], edi
mov byte [ebp - 4], 3
xor ebx, ebx
cmp ebx, 0x10
mov dword [ebp - 0x14], ebx
jge 0x410610
push 0x4a6221
lea ecx, [ebp - 0x18]
call fcn.004051c0
push 0x4a6221
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.004051c0
push 0xff
lea ecx, [ebp + 0x36bd]
push edi
mov byte [ebp - 4], 5
push ecx
mov byte [ebp + 0x36bc], 0
call fcn.00487460
push ebx
lea edx, [ebp + 0x36bc]
push str..PhysicalDrive_d
push edx
call fcn.0048536a
add esp, 0x18
push edi
push edi
push 3
push edi
push 3
push edi
lea eax, [ebp + 0x36bc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x38], esi
je 0x4105c2
xor eax, eax
push 0x2710
lea ecx, [ebp + 0xc]
push edi
mov dword [ebp], eax
mov dword [ebp + 4], eax
push ecx
mov dword [ebp - 0x68], edi
mov dword [ebp + 8], eax
mov dword [ebp], edi
mov dword [ebp + 4], edi
call fcn.00487460
add esp, 0xc
push edi
lea edx, [ebp - 0x68]
push edx
push 0x2710
lea eax, [ebp + 0xc]
push eax
push 0xc
lea ecx, [ebp]
push ecx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4105b6
push 0x3e7
lea edx, [ebp + 0x32d5]
push 0
push edx
mov byte [ebp + 0x32d4], 0
call fcn.00487460
push 0x3e7
lea eax, [ebp + 0x2eed]
push 0
push eax
mov byte [ebp + 0x2eec], 0
call fcn.00487460
push 0x3e7
lea ecx, [ebp + 0x271d]
push 0
push ecx
call fcn.00487460
push 0x3e7
lea edx, [ebp + 0x2b05]
push 0
push edx
call fcn.00487460
mov eax, dword [ebp + 0x18]
add esp, 0x30
test eax, eax
mov byte [ebp + 0x271c], 0
jle 0x410394
push 0
lea edi, [ebp + 0x271c]
lea ecx, [ebp + 0xc]
call fcn.004120a0
mov eax, dword [ebp + 0x1c]
test eax, eax
mov byte [ebp + 0x2eec], 0
jle 0x4103b2
push 0
lea edi, [ebp + 0x2eec]
lea ecx, [ebp + 0xc]
call fcn.004120a0
mov eax, dword [ebp + 0x20]
test eax, eax
mov byte [ebp + 0x2b04], 0
jle 0x4103d0
push 0
lea edi, [ebp + 0x2b04]
lea ecx, [ebp + 0xc]
call fcn.004120a0
mov eax, dword [ebp + 0x24]
test eax, eax
mov byte [ebp + 0x32d4], 0
jle 0x4103ee
push 1
lea edi, [ebp + 0x32d4]
lea ecx, [ebp + 0xc]
call fcn.004120a0
movsx eax, byte [ebp + 0x32d4]
push eax
call fcn.0048664b
add esp, 4
test eax, eax
jne 0x41041a
movsx ecx, byte [ebp + 0x32e7]
push ecx
call fcn.0048664b
add esp, 4
test eax, eax
je 0x4105b6
cmp dword [ebp + 0x28], 7
je 0x4105b6
lea edx, [ebp + 0x32d4]
push edx
lea eax, [ebp - 0x18]
push 0x4a6224
push eax
call fcn.004051a0
add esp, 0xc
lea ecx, [ebp + 0x2eec]
push ecx
lea edx, [ebp - 0x40]
push 0x4a6224
push edx
call fcn.004051a0
add esp, 0xc
lea ebx, [ebp - 0x18]
call fcn.00404290
mov edi, eax
call fcn.00404f70
mov eax, dword [eax]
push 0x4a6221
push eax
call fcn.00485357
add esp, 8
test eax, eax
je 0x4105b6
mov eax, ebx
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea ebx, [ebp - 0xac]
call fcn.00412210
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push edx
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x70], esp
mov esi, esp
push eax
call fcn.00404650
add eax, 0x10
add esp, 4
lea edi, [ebp - 0x84]
mov dword [esi], eax
call fcn.00412b50
add esp, 8
mov esi, eax
mov byte [ebp - 4], 6
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.00404650
lea edi, [eax + 0x10]
mov eax, dword [esi + 4]
add esp, 4
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x28]
push edx
lea ebx, [ebp - 0x94]
mov byte [ebp - 4], 7
call fcn.00412760
lea eax, [edi - 0x10]
mov byte [ebp - 4], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410510
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov bl, 5
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x84]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410537
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x40]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x70], esp
mov esi, esp
push eax
call fcn.00404650
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x18]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x58], esp
mov esi, esp
push eax
call fcn.00404650
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea esi, [ebp - 0x7c]
mov byte [ebp - 4], bl
call fcn.004130a0
add esp, 8
lea ecx, [ebp - 0x54]
push ecx
mov edi, eax
mov byte [ebp - 4], 9
call fcn.00413030
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x34]
push eax
lea ebx, [ebp - 0xa0]
mov byte [ebp - 4], 0xa
call fcn.00412bd0
lea esi, [ebp - 0x54]
call fcn.00413140
lea esi, [ebp - 0x7c]
call fcn.00413140
mov esi, dword [ebp - 0x38]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x14]
xor edi, edi
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4105e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410608
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 1
jmp 0x41024c
mov ecx, dword [ebp - 0x48]
mov edi, dword [ecx]
lea esi, [ebp - 0x4c]
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x5c], esi
mov edi, edi
test esi, esi
mov ebx, dword [ebp - 0x48]
je 0x41062e
lea edx, [ebp - 0x4c]
cmp esi, edx
je 0x410633
call fcn.00486280
cmp edi, ebx
je 0x410924
test esi, esi
mov dword [ebp - 0x14], 0xffffffff
jne 0x41064b
call fcn.00486280
cmp edi, dword [esi + 4]
jne 0x410655
call fcn.00486280
mov ebx, dword [ebp - 0x1c]
mov eax, dword [edi + 0xc]
mov esi, dword [ebx + 0x248]
lea ecx, [ebx + 0x248]
lea edi, [eax - 0x10]
sub esi, 0x10
cmp edi, esi
je 0x410718
cmp dword [esi + 0xc], 0
jl 0x41070e
mov edx, dword [edi]
cmp edx, dword [esi]
jne 0x41070e
mov eax, dword [edx]
mov ecx, edx
mov edx, dword [eax + 0x10]
call edx
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x4106ac
cmp eax, dword [edi]
jne 0x4106ac
mov ebx, edi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x4106e3
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
jne 0x4106c5
call fcn.004046c0
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 4]
add eax, 1
push eax
add edi, 0x10
push edi
push eax
lea ecx, [ebx + 0x10]
push ecx
call fcn.0048437d
add esp, 0x10
lea eax, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x4106fc
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [ebp - 0x1c]
add ebx, 0x10
add eax, 0x248
mov dword [eax], ebx
mov ebx, dword [ebp - 0x1c]
jmp 0x410718
mov edx, dword [eax - 0xc]
push edx
push eax
call fcn.00404530
mov esi, dword [ebp - 0x24]
mov edi, dword [esi + 4]
mov dword [ebp - 0x78], esi
cmp byte [edi + 0x15], 0
jne 0x410757
mov eax, dword [ebx + 0x248]
test eax, eax
jne 0x41073b
push 0x80004005
call fcn.00404970
mov ecx, dword [edi + 0xc]
push eax
push ecx
call fcn.00485357
add esp, 8
test eax, eax
jge 0x410751
mov edi, dword [edi + 8]
jmp 0x410721
mov esi, edi
mov edi, dword [edi]
jmp 0x410721
cmp esi, dword [ebp - 0x24]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], eax
je 0x41079b
mov eax, dword [esi + 0xc]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41077d
push 0x80004005
call fcn.00404970
mov ecx, dword [ebx + 0x248]
push eax
push ecx
call fcn.00485357
add esp, 8
test eax, eax
setl al
test al, al
jne 0x41079b
lea eax, [ebp - 0x54]
jmp 0x4107aa
mov ecx, dword [ebp - 0x24]
lea edx, [ebp - 0x28]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x64], edx
lea eax, [ebp - 0x64]
mov ecx, dword [eax]
test ecx, ecx
mov esi, dword [eax + 4]
je 0x4107ba
lea eax, [ebp - 0x28]
cmp ecx, eax
je 0x4107bf
call fcn.00486280
cmp esi, dword [ebp - 0x78]
je 0x4107d8
lea eax, [ebx + 0x248]
push eax
lea ecx, [ebp - 0x28]
call fcn.004131d0
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov esi, dword [ebp - 0x30]
mov edi, dword [esi + 4]
mov dword [ebp - 0x80], esi
cmp byte [edi + 0x15], 0
jne 0x410817
mov eax, dword [ebx + 0x248]
test eax, eax
jne 0x4107fb
push 0x80004005
call fcn.00404970
mov ecx, dword [edi + 0xc]
push eax
push ecx
call fcn.00485357
add esp, 8
test eax, eax
jge 0x410811
mov edi, dword [edi + 8]
jmp 0x4107e1
mov esi, edi
mov edi, dword [edi]
jmp 0x4107e1
cmp esi, dword [ebp - 0x30]
lea edx, [ebp - 0x34]
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x74], edx
je 0x41085b
mov eax, dword [esi + 0xc]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41083d
push 0x80004005
call fcn.00404970
mov ecx, dword [ebx + 0x248]
push eax
push ecx
call fcn.00485357
add esp, 8
test eax, eax
setl al
test al, al
jne 0x41085b
lea eax, [ebp - 0x74]
jmp 0x41086a
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x6c], ecx
lea eax, [ebp - 0x6c]
mov ecx, dword [eax]
test ecx, ecx
mov esi, dword [eax + 4]
je 0x41087a
lea eax, [ebp - 0x34]
cmp ecx, eax
je 0x41087f
call fcn.00486280
cmp esi, dword [ebp - 0x80]
je 0x4108eb
lea esi, [ebx + 0x24c]
push esi
lea ecx, [ebp - 0x34]
call fcn.00413500
mov eax, dword [eax]
mov edi, dword [esi]
lea ecx, [eax - 0x10]
sub edi, 0x10
cmp ecx, edi
je 0x4108eb
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x4108dc
mov edx, dword [ecx]
cmp edx, dword [edi]
jne 0x4108dc
push ecx
call fcn.00404650
mov dword [ebp - 0x38], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4108d2
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [ebp - 0x38]
add ecx, 0x10
mov dword [esi], ecx
jmp 0x4108e8
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
call fcn.00404530
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x88]
test eax, eax
jl 0x410914
cmp eax, dword [ebp - 0x14]
je 0x410914
lea esi, [ebp - 0x5c]
mov dword [ebp - 0x3c], 0
call fcn.00411410
mov edi, dword [ebp - 0x58]
mov esi, dword [ebp - 0x5c]
jmp 0x410620
mov edx, dword [ebp - 0x14]
mov dword [ebx + 0x240], edx
mov dword [ebp - 0x3c], 1
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.00411b40
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00411550
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 0
call fcn.00410a20
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x37bc]
xor ecx, ebp
call fcn.00483c76
add ebp, 0x37c0
mov esp, ebp
pop ebp
ret 4