Function at 0x4512f9
Capabilities:
Get disk information

Disassembly:
push 0x444
mov eax, 0x46e0f6
call fcn.0046791c
mov edi, ecx
mov dword [ebp - 0x43c], edi
mov eax, dword [ebp + 0xc]
lea ebx, [edi + 0x3c]
mov dword [ebp - 0x450], eax
xor esi, esi
mov dword [ebp - 0x18], 0x3a0020
mov dword [ebp - 0x14], 0x5c
mov dword [eax], esi
mov eax, dword [ebp + 8]
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x438], ebx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
cmp eax, 3
je 0x451351
mov ebx, 0x80004001
jmp 0x4513bf
movzx edx, word [ebx]
lea eax, [ebp - 0x428]
push ecx
mov ecx, dword [ebp + 8]
push eax
push dword [edi + 0x14]
mov dword [ebp - 0x42c], ebx
call fcn.00441d57
mov edx, dword [ebp - 0x42c]
mov ebx, eax
mov dword [ebp - 0x438], edx
test ebx, ebx
js 0x4513bf
mov edx, dword [edi + 0x10]
lea ecx, [ebp - 0x428]
call fcn.00441927
mov ebx, eax
cmp ebx, 1
jne 0x4513a4
mov edx, dword [ebp - 0x42c]
mov ebx, esi
mov dword [ebp - 0x438], edx
jmp 0x4513bf
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 0x438], eax
test ebx, ebx
js 0x4513bf
mov ebx, 0x80004005
mov dword [ebp - 0x438], eax
mov ecx, esi
mov dword [ebp - 0x440], ecx
mov dword [ebp - 4], esi
test ebx, ebx
js 0x4513e1
lea ecx, [ebp - 0x440]
call fcn.00490d07
mov ecx, dword [ebp - 0x440]
mov ebx, eax
mov dword [ebp - 0x430], esi
mov byte [ebp - 4], 1
test ebx, ebx
js 0x45168d
lea eax, [ebp - 0x430]
push eax
lea edx, [ebp - 0x428]
call fcn.00463516
mov ebx, eax
cmp ebx, 1
jne 0x45163e
push 0x200
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 0x3a0020
push esi
push eax
mov dword [ebp - 0x21c], 0x5c
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov eax, dword [ebp - 0x438]
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, 0x104
cmp word [eax], cx
jne 0x45145e
push 0x40abd0
lea ecx, [ebp - 0x220]
call fcn.0042f10c
jmp 0x451475
mov word [ebp - 0x220], cx
lea ecx, [ebp - 0x220]
push 0x4066b0
call fcn.0042f0c9
mov ebx, eax
test ebx, ebx
js 0x4514a1
push esi
lea eax, [ebp - 0x220]
push eax
push esi
call dword [sym.imp.api_ms_win_shell_shdirectory_l1_1_0.dll_Ordinal_290]
test eax, eax
je 0x45149f
cmp eax, 0x50
je 0x45149f
mov ebx, 0x80070003
cmp eax, 0xb7
jne 0x4514a1
mov ebx, esi
mov dword [ebp - 0x434], esi
mov byte [ebp - 4], 2
test ebx, ebx
js 0x4514c2
lea edx, [ebp - 0x428]
lea ecx, [ebp - 0x434]
call fcn.004638c2
mov ebx, eax
mov edi, esi
mov dword [ebp - 0x44c], edi
mov byte [ebp - 4], 3
test ebx, ebx
js 0x4514eb
lea edx, [ebp - 0x220]
lea ecx, [ebp - 0x44c]
call fcn.004638c2
mov edi, dword [ebp - 0x44c]
mov ebx, eax
mov dword [ebp - 0x42c], esi
mov byte [ebp - 4], 4
test ebx, ebx
js 0x451618
mov edx, 0x40acbc
lea ecx, [ebp - 0x42c]
call fcn.004638c2
mov esi, dword [ebp - 0x42c]
mov ebx, eax
test ebx, ebx
js 0x451618
mov eax, dword [ebp - 0x440]
mov ecx, dword [eax]
mov ebx, dword [ecx + 0x28]
lea ecx, [ebp - 0x430]
push ecx
push esi
push edi
push dword [ebp - 0x434]
mov ecx, ebx
push eax
call dword [0x4a47a8]
call ebx
mov ebx, eax
test ebx, ebx
js 0x451618
xor edi, edi
mov esi, edi
cmp esi, 0x18
jae 0x45160c
mov dword [ebp - 0x448], edi
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x448]
mov edx, dword [esi + 0x4031e8]
call fcn.004638c2
mov ebx, eax
mov dword [ebp - 0x444], edi
mov byte [ebp - 4], 6
test ebx, ebx
js 0x4515dc
mov eax, dword [ebp - 0x430]
mov ecx, dword [eax]
mov ebx, dword [ecx + 0x48]
lea ecx, [ebp - 0x444]
push ecx
push eax
mov ecx, ebx
call dword [0x4a47a8]
call ebx
mov ebx, eax
test ebx, ebx
js 0x4515dc
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x444]
mov ecx, dword [eax]
mov ebx, dword [ecx + 0x28]
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x448]
mov ecx, ebx
push eax
call dword [0x4a47a8]
call ebx
lea ecx, [ebp - 0x14]
mov ebx, eax
call fcn.004193ae
test ebx, ebx
jns 0x4515ea
mov eax, dword [esi + 0x4031ec]
neg eax
sbb eax, eax
not eax
and ebx, eax
lea ecx, [ebp - 0x444]
call fcn.004193ae
push dword [ebp - 0x448]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esi, 0xc
test ebx, ebx
jns 0x451550
mov esi, dword [ebp - 0x42c]
mov edi, dword [ebp - 0x44c]
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 1
push dword [ebp - 0x434]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov edi, dword [ebp - 0x43c]
xor esi, esi
test ebx, ebx
js 0x45168d
cmp dword [ebp - 0x430], 0
jne 0x451650
call fcn.0049292c
mov dword [ebp - 0x434], esi
lea eax, [ebp - 0x434]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x430]
call fcn.00486dbe
mov ebx, eax
test ebx, ebx
js 0x451682
mov edx, dword [edi + 0x10]
mov ecx, dword [ebp - 0x434]
call fcn.0046313d
mov ebx, eax
lea ecx, [ebp - 0x434]
call fcn.004193ae
mov edi, esi
mov dword [ebp - 0x42c], edi
mov byte [ebp - 4], 9
test ebx, ebx
js 0x4516f5
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x428]
mov ecx, dword [ebp - 0x43c]
push eax
lea eax, [ebp - 0x42c]
push eax
push edi
call fcn.00451f14
mov ebx, eax
test ebx, ebx
js 0x4516ef
mov eax, dword [ebp - 0x438]
cmp word [eax], di
mov edi, dword [ebp - 0x42c]
mov ecx, edi
sete dl
call fcn.00490b81
mov ebx, eax
test ebx, ebx
js 0x4516f5
mov eax, dword [ebp - 0x450]
mov dword [ebp - 0x42c], esi
mov dword [eax], edi
jmp 0x451749
mov edi, dword [ebp - 0x42c]
mov ecx, dword [ebp - 0x430]
test ecx, ecx
je 0x45170d
mov eax, dword [ebp - 0x43c]
mov edx, dword [eax + 0x10]
call fcn.00463358
test edi, edi
je 0x451749
mov eax, dword [ebp - 0x43c]
cmp dword [eax + 0x30], esi
jbe 0x451749
add eax, 0x2c
mov dword [ebp - 0x14], eax
push esi
mov ecx, eax
call fcn.00486fc7
cmp dword [eax], edi
je 0x45173f
mov eax, dword [ebp - 0x43c]
inc esi
cmp esi, dword [eax + 0x30]
jae 0x451749
mov eax, dword [ebp - 0x14]
jmp 0x451722
push ecx
mov ecx, dword [ebp - 0x14]
push esi
call fcn.0048798b
lea ecx, [ebp - 0x42c]
call fcn.004193ae
lea ecx, [ebp - 0x430]
call fcn.004193ae
lea ecx, [ebp - 0x440]
call fcn.004193ae
mov eax, ebx
call fcn.004678b9
ret 0xc