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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x664
mov eax, dword [0x5f1114]
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 0x5749d9
cmp byte [esi], 0
je 0x5749d9
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x574994
sub ecx, edx
mov ebx, 0x104
cmp ecx, ebx
jae 0x5749d9
push ebx
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.0054b1f0
add esp, 0xc
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeA]
cmp eax, 1
lea eax, [esp + 0x38]
jne 0x5749f0
push 0
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x5749d9
cmp eax, ebx
jb 0x574a00
xor al, al
mov ecx, dword [esp + 0x66c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00531526
mov esp, ebp
pop ebp
ret
push esi
push 0x5c5aa0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dl, byte [esp + 0x38]
test dl, dl
je 0x5749d9
lea ecx, [esp + 0x38]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x574a0f
sub ecx, esi
cmp ecx, ebx
jae 0x5749d9
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 0x5749d9
push ebx
lea eax, [esp + 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
mov esi, eax
cmp esi, 0xffffffff
je 0x5749d9
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 0x574a94
test al, al
je 0x574a90
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x574a94
add ecx, 2
add edx, 2
test al, al
jne 0x574a74
xor eax, eax
jmp 0x574a99
sbb eax, eax
or eax, 1
test eax, eax
jne 0x574b66
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 0x574b03
test dl, dl
je 0x574aff
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x574b03
add eax, 2
add ecx, 2
test dl, dl
jne 0x574ae3
xor eax, eax
jmp 0x574b08
sbb eax, eax
or eax, 1
test eax, eax
jne 0x574b66
push 0x10
lea eax, [esp + 0x354]
push str.System_Reserved
push eax
call fcn.0054b4ea
add esp, 0xc
test eax, eax
je 0x574b66
push dword [esp + 0x2c]
lea eax, [esp + 0x45c]
push 0x5c5ab4
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 0x574a66
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 0x5749db