Function at 0x4be988
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.00405b5c
xor eax, eax
push ebp
push 0x4beba5
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, 0x4bebc4
mov eax, dword [ebp - 4]
call fcn.004bdcb8
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 4]
call fcn.00405774
test bl, bl
je 0x4beb51
mov byte [ebp - 9], 0
call sub.kernel32.dll_GetLogicalDrives
mov ebx, eax
test ebx, ebx
je 0x4beb75
mov dword [ebp - 0x10], 4
lea eax, [ebp - 8]
call fcn.004056dc
cmp dword [ebp - 0x10], 0x1f
jge 0x4bea70
mov ecx, dword [ebp - 0x10]
mov eax, 1
shl eax, cl
test eax, ebx
jne 0x4bea67
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.0040399c
mov edx, 0x4bebc8
lea eax, [ebp - 0x1c]
mov cl, 2
call fcn.0040396c
lea edx, [ebp - 0x1c]
lea eax, [ebp - 8]
call fcn.00405940
jmp 0x4bea70
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x1f
jl 0x4bea23
cmp dword [ebp - 8], 0
jne 0x4bea92
mov eax, dword [0x4f9254]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4beb75
call fcn.004be904
jmp 0x4be9fb
or ebx, 0xffffffff
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.0040a1c4
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x10]
mov eax, dword [0x4f9254]
mov edi, dword [eax]
call dword [edi + 0x8c]
test al, al
je 0x4beacd
mov ebx, dword [ebp - 0x10]
lea ecx, [ebp - 8]
mov edx, ebx
mov eax, dword [0x4f9258]
mov edi, dword [eax]
call dword [edi + 0xc]
xor eax, eax
jmp 0x4beae6
mov eax, dword [ebp - 8]
call fcn.00405b6c
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00405b6c
push eax
call sub.mpr.dll_WNetAddConnectionA
test eax, eax
jne 0x4beb75
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, 0x4bebc4
mov eax, dword [ebp - 8]
call fcn.004bdcb8
mov eax, dword [ebp - 0x24]
call fcn.00405b6c
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
test ebx, ebx
jge 0x4beb75
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.0040a1c4
mov edx, dword [ebp - 0x28]
mov eax, dword [0x4f9254]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov ebx, eax
mov ecx, dword [ebp - 8]
mov edx, ebx
mov eax, dword [0x4f9258]
mov ebx, dword [eax]
call dword [ebx + 0x60]
jmp 0x4beb75
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.00405b6c
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 0x4bebac
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00405700
lea eax, [ebp - 0x14]
call fcn.004056dc
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405700
ret