Function at 0x46f130
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50dd88
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5522c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jne 0x46f181
mov edx, dword [0x55ad8c]
push ecx
push 0x51ed88
call fcn.0046ab50
xor eax, eax
jmp 0x46f6a5
add eax, 0xfffffff0
call fcn.0045cfd0
lea ebx, [eax + 0x10]
mov dword [ebp - 0x28], ebx
mov eax, 1
mov dword [ebp - 4], eax
cmp dword [ebx - 4], eax
jle 0x46f1ac
mov ecx, dword [ebx - 0xc]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.00459650
mov ebx, dword [ebp - 0x28]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x46f1fd
mov edx, dword [0x55ad8c]
push 0
push 0x51ed9c
xor ecx, ecx
call fcn.0046ab50
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f1f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x46f6a5
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathSkipRootW]
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
call fcn.004595b0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx - 0xc]
test eax, eax
js 0x46f27d
push 0x51edb4
push ecx
call fcn.004e851e
mov ecx, dword [ebp - 0x24]
add esp, 8
test eax, eax
je 0x46f27d
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x46f27d
mov edx, dword [0x55ad8c]
push 0
push 0x51edbc
xor ecx, ecx
call fcn.0046ab50
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46f1d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x46f1d3
mov dword [ebp - 0x20], 0x3a002f
mov dword [ebp - 0x1c], 0x3f002a
mov dword [ebp - 0x18], 0x3c0022
mov dword [ebp - 0x14], 0x7c003e
xor edi, edi
jmp 0x46f2a0
cmp dword [ecx - 0xc], 0
movzx eax, word [ebp + edi*2 - 0x20]
jle 0x46f2c9
push eax
push ecx
call fcn.004e764c
mov ecx, dword [ebp - 0x24]
add esp, 8
test eax, eax
je 0x46f2c9
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x46f36b
inc edi
cmp edi, 8
jb 0x46f2a0
lea ecx, [ebp - 0x2c]
push ecx
push ecx
add ebx, 0xfffffff0
mov edi, esp
mov eax, ebx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], esp
mov dword [ebp - 0x38], edi
call fcn.0045cfd0
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 4
mov byte [ebp - 4], 2
call fcn.004731f0
add esp, 8
test eax, eax
jne 0x46f39b
mov edx, dword [0x55ad8c]
push eax
push 0x51edf0
xor ecx, ecx
call fcn.0046ab50
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46f340
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f1f6
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
xor eax, eax
jmp 0x46f6a5
mov edx, dword [0x55ad8c]
push 0
push 0x51edd8
xor ecx, ecx
call fcn.0046ab50
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x46f268
cmp dword [ebp - 0x2c], 0x64
jge 0x46f592
lea eax, [ebp - 0x30]
push eax
mov ecx, 0x51a1b4
call fcn.004595b0
lea ecx, [ebp - 0x30]
push ecx
mov byte [ebp - 4], 5
call fcn.00473290
add esp, 4
test eax, eax
jne 0x46f47e
mov edx, dword [0x55ad8c]
push eax
push 0x51ee08
xor ecx, ecx
call fcn.0046ab50
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x46f40d
call fcn.00498010
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46f40d
push 0
push 0xf060
push 0x112
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46f430
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f453
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f1f6
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
xor eax, eax
jmp 0x46f6a5
lea eax, [ebp - 0x2c]
push eax
mov ecx, 0x51a1b4
call fcn.004595b0
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x34]
push edx
mov ebx, 0x51ed5c
mov byte [ebp - 4], 6
call fcn.0045ce00
mov byte [ebp - 4], 7
mov eax, dword [eax]
push eax
push 0x51ee28
lea edi, [ebp - 0x2c]
call fcn.004597f0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f4dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [0x55ad8c]
push 4
push ecx
xor ecx, ecx
call fcn.0046ab50
cmp eax, 1
je 0x46f52e
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.004591f0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.004591f0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.004591f0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.004591f0
xor eax, eax
jmp 0x46f6a5
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x34]
push eax
mov ebx, 0x51ed5c
call fcn.0045ce00
add esp, 8
mov edi, esi
mov byte [ebp - 4], 8
call fcn.0045cee0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.004591f0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.004591f0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.004591f0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.004591f0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.004591f0
jmp 0x46f6a0
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0x100
jle 0x46f5ff
mov edx, dword [0x55ad8c]
push 0
push 0x51ee50
xor ecx, ecx
call fcn.0046ab50
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46f5d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f1f6
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
xor eax, eax
jmp 0x46f6a5
mov eax, esi
lea edi, [ebp - 0x28]
call fcn.0045cee0
mov edi, dword [ebp - 0x28]
cmp dword [edi - 4], 1
jle 0x46f622
mov eax, dword [edi - 0xc]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00459650
mov edi, dword [ebp - 0x28]
push edi
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
xor eax, eax
test edi, edi
setne al
test eax, eax
jne 0x46f63e
push 0x80004005
call fcn.0045a440
mov eax, dword [esi]
push edi
push eax
call fcn.004e7407
add esp, 8
test eax, eax
jne 0x46f65a
mov edx, 0x51ed5c
mov eax, esi
call fcn.0045b3c0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46f67d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f6a0
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e4840
mov esp, ebp
pop ebp
ret 4