Function at 0x414570
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4253ee
mov eax, dword fs:[0]
push eax
sub esp, 0x4c0
mov eax, dword [0x42d414]
xor eax, esp
mov dword [esp + 0x4bc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42d414]
xor eax, esp
push eax
lea eax, [esp + 0x4d4]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
lea eax, [esp + 0x2c8]
push eax
push 0x104
mov dword [esp + 0x4e4], ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x4148cc
lea ebp, [esp + 0x2c8]
mov edi, 7
jmp 0x4145f0
movzx eax, word [ebp]
cmp ax, bx
je 0x4148cc
push 0x104
lea ecx, [esp + 0xc4]
push ecx
lea edx, [esp + 0xc0]
push edx
mov word [esp + 0xc4], ax
mov word [esp + 0xc6], 0x3a
mov word [esp + 0xc8], bx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x414894
lea eax, [esp + 0xb8]
mov dword [esp + 0x98], edi
mov dword [esp + 0x94], ebx
mov word [esp + 0x84], bx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x414660
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x88]
call fcn.0040d9b0
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], bx
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], bx
mov dword [esp + 0x7c], ebx
push 1
push 0x4273c8
lea ecx, [esp + 0x88]
mov byte [esp + 0x4e4], 2
call fcn.004153c0
lea eax, [esp + 0xc0]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4146c7
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0xc4]
push ecx
lea ecx, [esp + 0x4c]
call fcn.0040d9b0
lea eax, [esp + 0xb8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4146f2
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xbc]
push edx
lea ecx, [esp + 0x68]
call fcn.0040d9b0
lea eax, [esp + 0xc0]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x414720
sub eax, edx
sar eax, 1
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x1c]
call fcn.00418c50
mov eax, dword [esp + 0x84]
mov esi, 8
cmp dword [esp + 0x98], esi
jae 0x41475d
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
je 0x414834
cmp eax, 4
je 0x414834
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb0], ebx
mov word [esp + 0xa0], bx
lea ecx, [esp + 0xc0]
push ecx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4e0], 3
call fcn.0040ace0
lea edx, [esp + 0x28]
push edx
lea esi, [esp + 0xa0]
mov byte [esp + 0x4e0], 4
call fcn.00412a40
mov esi, 8
add esp, 4
cmp dword [esp + 0x40], esi
mov byte [esp + 0x17], al
mov byte [esp + 0x4dc], 3
jb 0x4147e5
mov eax, dword [esp + 0x2c]
push eax
call fcn.00419cac
add esp, 4
cmp byte [esp + 0x17], bl
je 0x41481b
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0xa4]
push ecx
lea ecx, [esp + 0x50]
call fcn.0040bfb0
mov edx, dword [esp + 0xb0]
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x80], edx
call fcn.00418c50
cmp dword [esp + 0xb4], esi
jb 0x414834
mov ecx, dword [esp + 0xa0]
push ecx
call fcn.00419cac
add esp, 4
cmp dword [esp + 0x78], esi
jb 0x414847
mov edx, dword [esp + 0x64]
push edx
call fcn.00419cac
add esp, 4
cmp dword [esp + 0x5c], esi
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], bx
jb 0x414867
mov eax, dword [esp + 0x48]
push eax
call fcn.00419cac
add esp, 4
cmp dword [esp + 0x98], esi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], bx
mov byte [esp + 0x4dc], bl
jb 0x414894
mov ecx, dword [esp + 0x84]
push ecx
call fcn.00419cac
add esp, 4
mov eax, ebp
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4148a0
sub eax, edx
sar eax, 1
lea ebp, [ebp + eax*2 + 2]
mov edx, ebp
lea eax, [esp + 0x2c8]
sub edx, eax
sar edx, 1
cmp edx, 0x104
jb 0x4145f0
push 0x42e610
mov dword [esp + 0xbc], vtable.nfapi::AutoLock.0
mov dword [esp + 0xc0], 0x42e610
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esp + 0x18]
push ecx
mov ecx, 0x42e600
mov byte [esp + 0x4e0], 5
call fcn.00418650
push 0x42e610
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x41493c
mov edx, dword [esp + 0xb8]
push edx
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x1c]
push ecx
push edx
push eax
call fcn.00415db0
mov eax, dword [esp + 0x2c]
push eax
call fcn.00419cac
add esp, 0x14
mov ecx, dword [esp + 0x4d4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4bc]
xor ecx, esp
call fcn.00419af5
add esp, 0x4cc
ret