Function at 0x574b00
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x664
mov eax, dword [0x5f2114]
xor eax, esp
mov dword [esp + 0x660], eax
push ebx
push esi
mov esi, edx
mov dword [esp + 8], ecx
push edi
test esi, esi
je 0x574b76
cmp byte [esi], 0
je 0x574b76
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x574b31
sub ecx, edx
mov ebx, 0x104
cmp ecx, ebx
jae 0x574b76
push ebx
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.0054b330
add esp, 0xc
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeA]
cmp eax, 1
lea eax, [esp + 0x38]
jne 0x574b8d
push 0
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x574b76
cmp eax, ebx
jb 0x574b9d
xor al, al
mov ecx, dword [esp + 0x66c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00531668
mov esp, ebp
pop ebp
ret
push esi
push 0x5c6ac0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dl, byte [esp + 0x38]
test dl, dl
je 0x574b76
lea ecx, [esp + 0x38]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x574bac
sub ecx, esi
cmp ecx, ebx
jae 0x574b76
push ebx
lea eax, [esp + 0x24c]
mov dword [esp + 0x2c], 0x5c3a63
push eax
lea eax, [esp + 0x30]
mov byte [esp + 0x30], dl
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointA]
test eax, eax
je 0x574b76
push ebx
lea eax, [esp + 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
mov esi, eax
cmp esi, 0xffffffff
je 0x574b76
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
call edi
mov edi, dword [esp + 0xc]
mov ebx, eax
lea edx, [esp + 0x140]
lea ecx, [esp + 0x248]
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x574c31
test al, al
je 0x574c2d
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x574c31
add ecx, 2
add edx, 2
test al, al
jne 0x574c11
xor eax, eax
jmp 0x574c36
sbb eax, eax
or eax, 1
test eax, eax
jne 0x574d03
mov ecx, 0x104
lea eax, [esp + 0x560]
push ecx
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x3c]
push eax
push ecx
lea eax, [esp + 0x368]
push eax
lea eax, [esp + 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
lea ecx, [esp + 0x140]
lea eax, [esp + 0x248]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x574ca0
test dl, dl
je 0x574c9c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x574ca0
add eax, 2
add ecx, 2
test dl, dl
jne 0x574c80
xor eax, eax
jmp 0x574ca5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x574d03
push 0x10
lea eax, [esp + 0x354]
push str.System_Reserved
push eax
call fcn.0054b62a
add esp, 0xc
test eax, eax
je 0x574d03
push dword [esp + 0x2c]
lea eax, [esp + 0x45c]
push 0x5c6ad4
push eax
call fcn.004076ac
add esp, 0xc
lea eax, [esp + 0x458]
lea ecx, [esp + 0x10]
push eax
call fcn.004036e4
push eax
mov ecx, edi
call fcn.00405568
push 0
push 1
lea ecx, [esp + 0x18]
call fcn.00403ae2
push 0x104
lea eax, [esp + 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeA]
test eax, eax
jne 0x574c03
push esi
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebx
call edi
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x10], 1
sbb al, al
inc al
jmp 0x574b78