Function at 0x460074
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44bef8
mov eax, dword fs:[0]
push eax
mov eax, 0x1600
call fcn.00447ce0
mov eax, dword [0x4a0cb8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x160c], ecx
test byte [0x4a2941], 8
je 0x4600d2
lea eax, [ebp - 0x2c8]
mov edx, 0x40eed8
push eax
push 1
push ecx
mov ecx, 0x4a05c0
call fcn.004664cb
lea ecx, [ebp - 0x36c]
call fcn.004253b2
and dword [ebp - 4], 0
lea ecx, [ebp - 0xdec]
push dword [0x4a1588]
call fcn.0041b4ea
mov byte [ebp - 4], 1
cmp dword [0x4a1588], 0
je 0x46015d
lea ecx, [ebp - 0x1600]
call fcn.0041b51c
mov edx, ecx
mov byte [ebp - 4], 2
mov ecx, esi
call fcn.004646fb
push 0
push dword [ebp - 0x15fc]
lea eax, [ebp - 0xdec]
push 0x800003f0
push eax
call fcn.00465400
mov byte [ebp - 4], 1
add esp, 0x10
mov eax, dword [ebp - 0x15fc]
mov dword [ebp - 0x1600], 0x40100c
test eax, eax
je 0x46015d
lea ecx, [ebp - 0x15f0]
cmp eax, ecx
je 0x46015d
push eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push ecx
push 0x20019
push 0x407210
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x4ac]
call fcn.00431e7e
lea eax, [ebp - 0x36c]
mov byte [ebp - 4], 3
push eax
push 0x407504
lea ecx, [ebp - 0x4ac]
xor edi, edi
call fcn.00424cf0
mov ebx, 0x409960
test eax, eax
jne 0x4601ca
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x4601b3
movzx edi, di
or edi, 0x80070000
mov ecx, dword [ebp + 4]
mov edx, 0x750
push edi
push ebx
call fcn.004649e6
test edi, edi
js 0x4602ac
mov eax, dword [ebp - 0x368]
mov edx, dword [ebp - 0x360]
mov cx, word [eax + edx*2 - 2]
call fcn.0042caa0
test eax, eax
je 0x4601f9
lea eax, [edx - 1]
push eax
lea ecx, [ebp - 0x36c]
call fcn.00424f02
mov edx, dword [ebp - 0x360]
mov eax, dword [ebp - 0x36c]
push 0xffffffffffffffff
push edx
push 0x40e734
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x4a3670]
lea ecx, [ebp - 0x36c]
call esi
test byte [0x4a2941], 8
je 0x460238
push dword [ebp - 0x368]
mov edx, 0x40f138
mov ecx, 0x4a05c0
call fcn.004665e0
xor edx, edx
push ecx
mov ecx, dword [ebp - 0x368]
inc edx
call fcn.004703bc
test eax, eax
jne 0x4602ac
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x91
jne 0x460270
push ecx
mov ecx, dword [ebp - 0x368]
xor edx, edx
call fcn.004703bc
test eax, eax
jne 0x4602ac
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
je 0x4602ac
cmp eax, 2
je 0x4602ac
cmp eax, 3
je 0x4602ac
test eax, eax
jg 0x460286
mov edi, eax
jmp 0x46028f
movzx edi, ax
or edi, 0x80070000
push dword [ebp - 0x368]
push 0x40e754
push edi
push ebx
push 0x76b
push dword [ebp + 4]
call fcn.00464a06
add esp, 0x18
call fcn.0042e353
test al, al
je 0x4603f3
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetLogicalDrives]
mov edx, eax
xor ebx, ebx
mov dword [ebp - 0x1604], edx
xor eax, eax
mov ecx, ebx
inc eax
shl eax, cl
test edx, eax
je 0x4603e9
lea eax, [ebx + 0x41]
mov dword [ebp - 0x18], 0x3a0020
movzx eax, ax
mov dword [ebp - 0x1608], eax
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x14], 0x5c
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4603e3
mov eax, dword [ebp - 0x36c]
push 0xffffffffffffffff
push 0
push 0x40b8e0
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x4a3670]
lea ecx, [ebp - 0x36c]
call esi
push 0
lea ecx, [ebp - 0x36c]
call fcn.0042e5c5
mov ecx, dword [ebp - 0x1608]
push 0xffffffffffffffff
mov word [eax], cx
mov eax, dword [ebp - 0x36c]
push dword [ebp - 0x360]
push 0x40e770
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x4a3670]
lea ecx, [ebp - 0x36c]
call esi
xor edx, edx
push ecx
mov ecx, dword [ebp - 0x368]
inc edx
call fcn.004703bc
test eax, eax
jne 0x4603e3
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x91
jne 0x46039f
push ecx
mov ecx, dword [ebp - 0x368]
xor edx, edx
call fcn.004703bc
test eax, eax
jne 0x4603e3
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
je 0x4603e3
cmp eax, 2
je 0x4603e3
cmp eax, 3
je 0x4603e3
test edi, edi
js 0x4603e3
test eax, eax
jg 0x4603b9
mov edi, eax
jmp 0x4603c2
movzx edi, ax
or edi, 0x80070000
push dword [ebp - 0x368]
push 0x40e7d8
push edi
push 0x409960
push 0x78a
push dword [ebp + 4]
call fcn.00464a06
add esp, 0x18
mov edx, dword [ebp - 0x1604]
inc ebx
cmp ebx, 0x1a
jb 0x4602c9
xor ebx, ebx
mov dword [ebp - 0x2b8], 0x40e7f4
cmp dword [ebp - 0x160c], 3
push 2
sete bl
mov dword [ebp - 0x2b4], 0x40e810
xor esi, esi
mov dword [ebp - 0x2b0], 0x40e82c
pop ecx
mov dword [ebp - 0x2ac], 0x40e840
add ebx, 7
mov dword [ebp - 0x2a8], 0x40e850
mov dword [ebp - 0x2a4], 0x40e890
mov dword [ebp - 0x2a0], 0x4099e0
mov dword [ebp - 0x29c], 0x40e8a8
mov dword [ebp - 0x1604], esi
call fcn.0043ec6b
mov dword [ebp - 0x160c], eax
lea ecx, [ebp - 0x408]
mov dword [ebp - 0x40c], 0x401524
call fcn.004253b2
and dword [ebp - 0x374], 0
and dword [ebp - 0x370], 0
mov dword [ebp - 0x40c], 0x4014c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40c]
push dword [ebp - 0x4a4]
mov eax, dword [ebp + esi*4 - 0x2b8]
push 0xf003f
push eax
push dword [ebp - 0x410]
mov dword [ebp - 0x14], eax
call fcn.00429520
mov esi, eax
test esi, esi
js 0x46051a
lea eax, [ebp - 0x1608]
mov dword [ebp - 0x1608], 0x100
push eax
lea eax, [ebp - 0x298]
push eax
push 0
lea ecx, [ebp - 0x40c]
call fcn.00425231
test eax, eax
je 0x46051a
lea eax, [ebp - 0x298]
push eax
lea ecx, [ebp - 0x40c]
call fcn.0046fbc0
test eax, eax
jne 0x4604c6
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x46051a
movzx esi, si
or esi, 0x80070000
cmp dword [ebp - 0x160c], esi
je 0x46052e
push 3
pop ecx
call fcn.0043ec6b
cmp eax, esi
jne 0x460530
xor esi, esi
push dword [ebp - 0x14]
push 0x40e8dc
push esi
push 0x409960
push 0x7c8
push dword [ebp + 4]
call fcn.00464a2e
add esp, 0x18
test edi, edi
js 0x460554
mov edi, esi
lea ecx, [ebp - 0x40c]
mov byte [ebp - 4], 3
call fcn.0042535f
mov esi, dword [ebp - 0x1604]
inc esi
mov dword [ebp - 0x1604], esi
cmp esi, ebx
jb 0x460468
cmp dword [0x4a1588], 0
je 0x460638
push 0
test edi, edi
js 0x4605c7
lea eax, [ebp - 0xdec]
push 0x400003f2
push eax
call fcn.0041b223
add esp, 0xc
test byte [0x4a2941], 8
je 0x460638
lea eax, [ebp - 0x2d8]
mov edx, 0x40f288
push eax
push 1
push ecx
mov ecx, 0x4a05c0
call fcn.004664cb
jmp 0x460638
push 0x4077e4
lea eax, [ebp - 0x98]
push 0x20
push eax
call fcn.0041d6f4
push edi
push 0x40e8f0
lea eax, [ebp - 0x58]
push 0x20
push eax
call fcn.0041d6f4
push 0
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0xdec]
push 0xc00003f3
push eax
call fcn.0046517c
add esp, 0x34
test byte [0x4a2941], 0x80
je 0x460625
push edi
mov edx, 0x40f068
mov ecx, 0x4a05c0
call fcn.00466513
mov ecx, dword [ebp + 4]
mov edx, 0x7df
push edi
push 0x409960
call fcn.004649e6
lea ecx, [ebp - 0x4ac]
call fcn.0042535f
mov eax, dword [ebp - 0xcbc]
mov dword [ebp - 0xcc0], 0x40100c
test eax, eax
je 0x460669
lea ecx, [ebp - 0xcb0]
cmp eax, ecx
je 0x460669
push eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, dword [ebp - 0xd50]
mov esi, 0x401558
mov dword [ebp - 0xcc0], esi
mov ebx, 0x401028
mov dword [ebp - 0xd54], ebx
test eax, eax
je 0x46069b
lea ecx, [ebp - 0xd44]
cmp eax, ecx
je 0x46069b
push eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, dword [ebp - 0xde4]
mov dword [ebp - 0xd54], esi
mov dword [ebp - 0xde8], ebx
test eax, eax
je 0x4606c3
lea ecx, [ebp - 0xdd8]
cmp eax, ecx
je 0x4606c3
push eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, dword [ebp - 0x368]
mov dword [ebp - 0xde8], esi
mov dword [ebp - 0x36c], ebx
test eax, eax
je 0x4606eb
lea ecx, [ebp - 0x35c]
cmp eax, ecx
je 0x4606eb
push eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043b590
leave
ret