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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x664
mov eax, dword [0x5ee10c]
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 0x57432f
cmp byte [esi], 0
je 0x57432f
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5742ea
sub ecx, edx
mov ebx, 0x104
cmp ecx, ebx
jae 0x57432f
push ebx
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.0054ae60
add esp, 0xc
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeA]
cmp eax, 1
lea eax, [esp + 0x38]
jne 0x574346
push 0
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x57432f
cmp eax, ebx
jb 0x574356
xor al, al
mov ecx, dword [esp + 0x66c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00531192
mov esp, ebp
pop ebp
ret
push esi
push 0x5c37c8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dl, byte [esp + 0x38]
test dl, dl
je 0x57432f
lea ecx, [esp + 0x38]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x574365
sub ecx, esi
cmp ecx, ebx
jae 0x57432f
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 0x57432f
push ebx
lea eax, [esp + 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
mov esi, eax
cmp esi, 0xffffffff
je 0x57432f
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 0x5743ea
test al, al
je 0x5743e6
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x5743ea
add ecx, 2
add edx, 2
test al, al
jne 0x5743ca
xor eax, eax
jmp 0x5743ef
sbb eax, eax
or eax, 1
test eax, eax
jne 0x5744bc
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 0x574459
test dl, dl
je 0x574455
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x574459
add eax, 2
add ecx, 2
test dl, dl
jne 0x574439
xor eax, eax
jmp 0x57445e
sbb eax, eax
or eax, 1
test eax, eax
jne 0x5744bc
push 0x10
lea eax, [esp + 0x354]
push str.System_Reserved
push eax
call fcn.0054b15a
add esp, 0xc
test eax, eax
je 0x5744bc
push dword [esp + 0x2c]
lea eax, [esp + 0x45c]
push 0x5c37dc
push eax
call fcn.0040768c
add esp, 0xc
lea eax, [esp + 0x458]
lea ecx, [esp + 0x10]
push eax
call fcn.004036c4
push eax
mov ecx, edi
call fcn.00405548
push 0
push 1
lea ecx, [esp + 0x18]
call fcn.00403ac2
push 0x104
lea eax, [esp + 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeA]
test eax, eax
jne 0x5743bc
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 0x574331