Function at 0x526c60
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c5295
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc90
mov eax, ecx
push ebx
push esi
mov esi, dword [eax + 4]
lea ebx, [eax + 4]
push edi
mov edi, dword [ebx + 4]
mov dword [ebp - 0x10], eax
cmp esi, edi
je 0x526cb1
lea ecx, [esi + 0x18]
call fcn.00449550
mov ecx, esi
call fcn.00449550
add esi, 0x40
cmp esi, edi
jne 0x526c93
mov eax, dword [ebx]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x10]
call fcn.0048d130
lea eax, [ebp - 0xc98]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [ebp - 0xc98], 0
lea esi, [ebp - 0xc98]
je 0x526ee2
nop
push 0x20a
lea eax, [ebp - 0x498]
push 0
push eax
call fcn.00585a40
push 0x20a
lea eax, [ebp - 0x288]
push 0
push eax
call fcn.00585a40
add esp, 0x18
mov dword [ebp - 0x58], 0
lea eax, [ebp - 0x288]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x10], 0
push 0x105
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x58]
push eax
push 0x105
lea eax, [ebp - 0x498]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x526ebf
xor eax, eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
mov ecx, esi
mov dword [ebp - 4], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x526d85
sub ecx, edx
sar ecx, 1
dec ecx
lea eax, [esi + ecx*2]
sub eax, esi
lea ecx, [ebp - 0x50]
sar eax, 1
push eax
push esi
push 0
call fcn.004a27d0
push 3
push 0x5ee23c
lea ecx, [ebp - 0x38]
call fcn.004496e0
lea eax, [ebp - 0x70]
mov dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov eax, dword [ebp - 0x68]
mov edi, dword [ebx + 4]
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x14], ecx
push eax
cmp edi, dword [ebx + 8]
je 0x526e28
mov ecx, edi
mov dword [ebp - 0x5c], edi
call fcn.00446f20
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 1
lea ecx, [edi + 0x18]
push eax
call fcn.00446f20
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], ecx
add dword [ebx + 4], 0x40
jmp 0x526e30
push edi
mov ecx, ebx
call fcn.0052b3d0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x24]
cmp ecx, 8
jb 0x526e71
mov edx, dword [ebp - 0x38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x526e67
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x52701b
push ecx
push edx
call fcn.00583877
add esp, 8
mov ecx, dword [ebp - 0x3c]
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
cmp ecx, 8
jb 0x526ebf
mov edx, dword [ebp - 0x50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x526eb5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x52701b
push ecx
push edx
call fcn.00583877
add esp, 8
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x526ec4
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2]
add esi, 2
cmp word [esi], cx
jne 0x526ce0
mov eax, dword [0x6d38e0]
cmp eax, dword [0x6d38e4]
je 0x527004
xor eax, eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
push 7
push str.Network
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 2
call fcn.004496e0
push 3
push 0x5f37c0
lea ecx, [ebp - 0x38]
call fcn.004496e0
push 0x6d38ec
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x5c], 0x6d38ec
call fcn.00571f54
add esp, 4
test eax, eax
jne 0x527015
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 3
push eax
mov ecx, ebx
call fcn.0052a970
push 0x6d38ec
call fcn.00571f79
mov ecx, dword [ebp - 0x24]
add esp, 4
cmp ecx, 8
jb 0x526fce
mov edx, dword [ebp - 0x38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x526fc4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x52701b
push ecx
push edx
call fcn.00583877
add esp, 8
mov ecx, dword [ebp - 0x3c]
cmp ecx, 8
jb 0x527004
mov edx, dword [ebp - 0x50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x526ffa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x52701b
push ecx
push edx
call fcn.00583877
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call fcn.00570e47
call fcn.00591c98
int3