Function at 0x4575c0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x557159
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x5b3890]
xor eax, esp
mov dword [esp + 0x9c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b3890]
xor eax, esp
push eax
lea eax, [esp + 0xb4]
mov dword fs:[0], eax
mov esi, dword [esp + 0xc8]
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0xcc]
mov ebp, dword [esp + 0xd4]
xor ebx, ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x1c], ebx
cmp esi, ebx
je 0x457641
cmp dword [esi], 0x18
je 0x45763a
or eax, 0xffffffff
jmp 0x4578ee
mov edx, dword [esi + 8]
mov dword [esp + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push 1
mov dword [esp + 0x3c], eax
mov byte [esp + 0x54], 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [esp + 0x54], eax
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x44]
mov dword [esp + 0xc4], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
call fcn.0049eff0
mov dword [esp + 0x3c], vtable.cWCStr.0
mov byte [esp + 0xbc], 1
xor edi, edi
lea esp, [esp]
mov ecx, edi
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x38]
test ecx, eax
je 0x45785a
mov edx, dword [0x56f41c]
mov eax, dword [0x56f420]
mov dword [esp + 0x58], edx
lea edx, [esp + 0x58]
lea ecx, [edi + 0x41]
push edx
mov dword [esp + 0x60], eax
mov word [esp + 0x5c], cx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x45785a
cmp byte [esp + 0xd0], bl
je 0x4576f2
lea eax, [esp + 0x58]
push eax
call fcn.0041c050
add esp, 4
cmp eax, ebx
je 0x45785a
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x64]
push 0x28
push edx
call fcn.0041be60
add esp, 0xc
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x28]
lea esi, [esp + 0x68]
call fcn.0049eff0
mov dword [esp + 0x20], vtable.cWCStr.0
mov byte [esp + 0xbc], 2
cmp dword [esp + 0x1c], ebx
je 0x457759
lea eax, [esp + 0x58]
push eax
call fcn.004303a0
add esp, 4
test al, al
jne 0x457759
mov ecx, dword [esp + 0x1c]
push ecx
mov edx, esi
push edx
lea eax, [esp + 0x28]
push 0x56be54
push eax
call fcn.00401080
add esp, 0x10
mov esi, eax
mov eax, dword [esp + 0x34]
cmp eax, 1
jne 0x457800
mov ecx, dword [esp + 0x30]
mov eax, esi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x457796
cmp dx, bx
je 0x457792
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x457796
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x457770
xor eax, eax
jmp 0x45779b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x45783d
mov ecx, dword [esp + 0x4c]
push ebx
push ebx
push ecx
mov ecx, edi
mov edx, 1
shl edx, cl
push edx
call fcn.00424b90
lea eax, [esp + 0x68]
push eax
call fcn.0041c050
mov edi, vtable.cWCS.0
add esp, 0x14
lea ecx, [esp + 0x20]
mov esi, eax
mov byte [esp + 0xbc], 1
mov dword [esp + 0x20], edi
call fcn.0049ee80
lea ecx, [esp + 0x3c]
mov byte [esp + 0xbc], bl
mov dword [esp + 0x3c], edi
call fcn.0049ee80
mov ecx, dword [esp + 0x54]
push ecx
jmp 0x4578e6
cmp eax, ebx
je 0x45781d
push esi
lea ecx, [esp + 0x40]
push 0x573f10
push ecx
call fcn.00408140
add esp, 0xc
inc dword [esp + 0x18]
jmp 0x45783d
cmp ebp, ebx
je 0x45783d
push 1
push ebx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
push esi
call fcn.004be8b0
add esp, 0x14
add dword [ebp], eax
adc dword [ebp + 4], edx
lea ecx, [esp + 0x20]
mov byte [esp + 0xbc], 1
mov dword [esp + 0x20], vtable.cWCS.0
call fcn.0049ee80
mov esi, dword [esp + 0x30]
inc edi
cmp edi, 0x1a
jl 0x457690
mov edi, dword [esp + 0x34]
cmp edi, ebx
je 0x4578c5
mov edx, dword [esp + 0x40]
push 0xffffffffffffffff
push edx
lea ecx, [esp + 0x28]
call fcn.0049eff0
mov dword [esp + 0x20], vtable.cWCStr.0
lea eax, [esp + 0x20]
push 1
push eax
mov byte [esp + 0xc4], 3
call fcn.00431550
mov ecx, dword [esp + 0x2c]
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push esi
call edi
add esp, 0x24
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], eax
mov byte [esp + 0xbc], 1
mov dword [esp + 0x20], vtable.cWCS.0
call fcn.0049ee80
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x3c]
mov byte [esp + 0xbc], bl
mov dword [esp + 0x3c], vtable.cWCS.0
call fcn.0049ee80
mov edx, dword [esp + 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, esi
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.0051916c
add esp, 0xac
ret