Function at 0x5a7130
Capabilities:
Get disk information
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5e95a2
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x694114]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x7c]
xor edi, edi
push edi
xor ebx, ebx
push 0x6c0c94
mov dword [esp + 0x7c], edi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x6c0c98], edi
jne 0x5a71be
push str.mpr.dll
lea ecx, [esp + 0x48]
call fcn.00402c90
push 2
lea eax, [esp + 0x48]
mov ebx, 1
push eax
mov ecx, 0x6c0c98
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x20], ebx
call fcn.0046f170
mov byte [esp + 0x17], bl
test al, al
jne 0x5a71c3
mov byte [esp + 0x17], 0
mov dword [esp + 0x74], edi
test bl, 1
je 0x5a720d
mov ecx, dword [esp + 0x60]
and ebx, 0xfffffffe
push ecx
mov dword [esp + 0x1c], ebx
call fcn.005844d1
mov esi, 8
add esp, 4
cmp dword [esp + 0x58], esi
jb 0x5a71f8
mov edx, dword [esp + 0x44]
push edx
call fcn.00584768
add esp, 4
xor eax, eax
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], edi
mov word [esp + 0x44], ax
jmp 0x5a7212
mov esi, 8
cmp byte [esp + 0x17], 0
je 0x5a730d
push str.WNetOpenEnumW
lea ecx, [esp + 0x24]
call fcn.00402c90
push edi
lea ecx, [esp + 0x24]
push ecx
mov ecx, 0x6c0c98
mov dword [esp + 0x7c], 2
call fcn.0046efa0
mov edx, dword [esp + 0x3c]
push edx
mov dword [0x6c0c90], eax
mov byte [esp + 0x78], 0
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x34], esi
jb 0x5a726d
mov eax, dword [esp + 0x20]
push eax
call fcn.00584768
add esp, 4
push str.WNetEnumResourceW
lea ecx, [esp + 0x24]
call fcn.00402c90
push edi
lea ecx, [esp + 0x24]
push ecx
mov ecx, 0x6c0c98
mov dword [esp + 0x7c], 3
call fcn.0046efa0
mov edx, dword [esp + 0x3c]
push edx
mov dword [0x6c0c8c], eax
mov byte [esp + 0x78], 0
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x34], esi
jb 0x5a72bd
mov eax, dword [esp + 0x20]
push eax
call fcn.00584768
add esp, 4
push str.WNetCloseEnum
lea ecx, [esp + 0x24]
call fcn.00402c90
push edi
lea ecx, [esp + 0x24]
push ecx
mov ecx, 0x6c0c98
mov dword [esp + 0x7c], 4
call fcn.0046efa0
mov edx, dword [esp + 0x3c]
push edx
mov dword [0x6c0c88], eax
mov byte [esp + 0x78], 0
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x34], esi
jb 0x5a730d
mov eax, dword [esp + 0x20]
push eax
call fcn.00584768
add esp, 4
push edi
mov ecx, ebp
call fcn.0041df80
push edi
push edi
mov dword [esp + 0x7c], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
or ebx, 2
mov dword [esp + 0x20], ebx
call edi
mov esi, eax
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0058229a
add esp, 4
mov ebp, eax
push ebp
push esi
call edi
cmp word [ebp], 0
mov ebx, dword [esp + 0x84]
mov esi, ebp
je 0x5a739c
mov edi, edi
mov eax, dword [esp + 0x80]
mov edi, dword [esp + 0x1c]
push ebx
push eax
call fcn.005a6020
mov eax, esi
add esp, 8
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5a7380
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 2], cx
lea esi, [esi + eax*2 + 2]
jne 0x5a7360
jmp 0x5a73a0
mov edi, dword [esp + 0x1c]
push ebp
call fcn.00585c9e
add esp, 4
test bl, 8
jne 0x5a7419
test byte [esp + 0x80], 2
jne 0x5a7419
push 0
lea ecx, [esp + 0x24]
call fcn.0041df80
mov ecx, dword [esp + 0x80]
push ebx
push 0
lea edx, [esp + 0x28]
mov dword [esp + 0x7c], 5
call fcn.005a6a50
add esp, 8
test al, al
je 0x5a740b
xor ebp, ebp
cmp dword [esp + 0x28], ebp
jbe 0x5a740b
xor esi, esi
nop
mov ecx, dword [esp + 0x2c]
lea edx, [esi + ecx]
push 1
push edx
mov ecx, edi
call fcn.0041ef80
inc ebp
add esi, 0x24
cmp ebp, dword [esp + 0x28]
jb 0x5a73f0
lea ecx, [esp + 0x20]
mov byte [esp + 0x74], 0
call fcn.0041e1d0
mov eax, edi
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.00585b7b
add esp, 0x64
ret