Function at 0x4ff548
Capabilities:
Connect network resource
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405bbc
xor eax, eax
push ebp
push 0x4ff765
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
lea ecx, [ebp - 0x14]
mov edx, 0x4ff784
mov eax, dword [ebp - 4]
call fcn.004fe830
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 4]
call fcn.004057d4
test bl, bl
je 0x4ff711
mov byte [ebp - 9], 0
call sub.kernel32.dll_GetLogicalDrives
mov ebx, eax
test ebx, ebx
je 0x4ff735
mov dword [ebp - 0x10], 4
lea eax, [ebp - 8]
call fcn.0040573c
cmp dword [ebp - 0x10], 0x1f
jge 0x4ff630
mov ecx, dword [ebp - 0x10]
mov eax, 1
shl eax, cl
test eax, ebx
jne 0x4ff627
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x10]
add edx, 0x41
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x1c]
call fcn.004039dc
mov edx, 0x4ff788
lea eax, [ebp - 0x1c]
mov cl, 2
call fcn.004039ac
lea edx, [ebp - 0x1c]
lea eax, [ebp - 8]
call fcn.004059a0
jmp 0x4ff630
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x1f
jl 0x4ff5e3
cmp dword [ebp - 8], 0
jne 0x4ff652
mov eax, dword [0x560814]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4ff735
call fcn.004ff4c4
jmp 0x4ff5bb
or ebx, 0xffffffff
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.0040a760
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x10]
mov eax, dword [0x560814]
mov edi, dword [eax]
call dword [edi + 0x8c]
test al, al
je 0x4ff68d
mov ebx, dword [ebp - 0x10]
lea ecx, [ebp - 8]
mov edx, ebx
mov eax, dword [0x560818]
mov edi, dword [eax]
call dword [edi + 0xc]
xor eax, eax
jmp 0x4ff6a6
mov eax, dword [ebp - 8]
call fcn.00405bcc
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00405bcc
push eax
call sub.mpr.dll_WNetAddConnectionA
test eax, eax
jne 0x4ff735
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
push esi
lea ecx, [ebp - 0x24]
mov edx, 0x4ff784
mov eax, dword [ebp - 8]
call fcn.004fe830
mov eax, dword [ebp - 0x24]
call fcn.00405bcc
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
test ebx, ebx
jge 0x4ff735
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.0040a760
mov edx, dword [ebp - 0x28]
mov eax, dword [0x560814]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov ebx, eax
mov ecx, dword [ebp - 8]
mov edx, ebx
mov eax, dword [0x560818]
mov ebx, dword [eax]
call dword [ebx + 0x60]
jmp 0x4ff735
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
push esi
mov eax, dword [ebp - 4]
call fcn.00405bcc
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ff76c
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00405760
lea eax, [ebp - 0x14]
call fcn.0040573c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405760
ret