Function at 0x535f80
Capabilities:
Get disk information

Disassembly:
sub esp, 0x208
mov eax, dword [str.data_]
mov cx, word [0x5b6e00]
push ebx
push esi
push edi
mov dword [esp + 0x14], eax
mov word [esp + 0x18], cx
mov ecx, 0x3e
xor eax, eax
lea edi, [esp + 0x1a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0xb08604]
mov esi, 5
inc eax
cmp eax, 0x15
mov dword [0xb08604], eax
jbe 0x53604b
mov edx, dword [0x59a760]
push ebp
mov byte [esp + 0x13], 0x41
mov dword [esp + 0x14], edx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
test ebx, ebx
je 0x536040
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edi, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov al, byte [esp + 0x13]
cmp al, 0x5a
jg 0x536040
test bl, 1
je 0x536030
mov byte [esp + 0x14], al
lea eax, [esp + 0x14]
push eax
call ebp
cmp eax, 3
jne 0x536030
push 0
push 0
push 0
push 0
push 0x5b6f50
lea ecx, [esp + 0x12c]
push 0x100
lea edx, [esp + 0x2c]
push ecx
push edx
call edi
test eax, eax
jne 0x536040
mov cl, byte [esp + 0x13]
shr ebx, 1
inc cl
test ebx, ebx
mov byte [esp + 0x13], cl
jne 0x535fee
mov dword [0xb08604], 0
pop ebp
mov edx, dword [esp + 0x218]
cmp byte [edx], 0x63
jne 0x536060
cmp byte [edx + 1], 0x3a
jne 0x536060
add edx, 0xf
mov al, byte [edx]
mov ecx, 4
test al, al
mov byte [esp + 0x19], al
je 0x536091
mov al, byte [esp + esi + 0x14]
cmp al, 0x2f
jne 0x53607e
mov byte [esp + esi + 0x14], 0x5c
jmp 0x536082
cmp al, 0x5c
jne 0x536084
mov ecx, esi
mov al, byte [edx + 1]
inc esi
inc edx
test al, al
mov byte [esp + esi + 0x14], al
jne 0x53606f
mov al, byte [esp + ecx + 0x32]
mov byte [esp + ecx + 0x33], 0
lea ecx, [esp + ecx + 0x32]
cmp al, 0x2e
jne 0x5360a5
mov byte [ecx], 0
mov cl, byte [esp + esi + 0x13]
lea eax, [esp + esi + 0x14]
mov dl, 0x78
cmp cl, dl
mov byte [eax], 0
jne 0x5360c5
cmp byte [eax - 2], 0x65
jne 0x5360c5
cmp byte [eax - 3], 0x74
jne 0x5360c5
mov byte [eax - 2], dl
cmp cl, 0x65
jne 0x5360d9
cmp byte [eax - 2], 0x72
jne 0x5360d9
cmp byte [eax - 3], 0x70
jne 0x5360d9
mov byte [eax - 1], dl
mov bl, byte [esp + 0x14]
or esi, 0xffffffff
xor eax, eax
test bl, bl
je 0x5360f8
mov cl, bl
cmp cl, 0x2e
jne 0x5360ef
mov esi, eax
mov cl, byte [esp + eax + 0x15]
inc eax
test cl, cl
jne 0x5360e8
xor eax, eax
lea edx, [esp + 0x114]
test bl, bl
je 0x53611e
cmp eax, esi
jge 0x53611e
mov cl, byte [esp + eax + 0x14]
cmp cl, 0x2e
je 0x536115
mov byte [edx], cl
inc edx
mov cl, byte [esp + eax + 0x15]
inc eax
test cl, cl
jne 0x536105
lea eax, [esp + eax + 0x14]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x536124
xor eax, eax
mov cl, byte [esp + eax + 0x114]
mov byte [esp + eax + 0x14], cl
inc eax
test cl, cl
jne 0x536130
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
mov bl, 0x61
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esp + ecx + 0x10]
lea esi, [esp + ecx + 0x14]
cmp al, 0x2e
jne 0x53619d
movsx eax, byte [esi - 3]
push eax
call fcn.00576245
add esp, 4
cmp eax, 0x58
jne 0x53619d
movsx ecx, byte [esi - 2]
push ecx
call fcn.00576245
add esp, 4
cmp eax, 0x42
jne 0x53619d
movsx edx, byte [esi - 1]
push edx
call fcn.00576245
add esp, 4
cmp eax, 0x58
jne 0x53619d
mov byte [esi - 3], 0x64
mov byte [esi - 2], bl
mov byte [esi - 1], 0x74
cmp byte [esi - 3], 0x2e
jne 0x5361ce
movsx eax, byte [esi - 2]
push eax
call fcn.00576245
add esp, 4
cmp eax, 0x58
jne 0x5361ce
movsx ecx, byte [esi - 1]
push ecx
call fcn.00576245
add esp, 4
cmp eax, 0x42
jne 0x5361ce
mov byte [esi - 2], 0x64
mov byte [esi - 1], bl
cmp byte [esi - 2], 0x2e
jne 0x5361ea
movsx edx, byte [esi - 1]
push edx
call fcn.00576245
add esp, 4
cmp eax, 0x58
jne 0x5361ea
mov byte [esi - 1], 0x64
mov eax, dword [0xb08600]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
test eax, eax
je 0x53621c
push 0
push 0x80
push 3
push 0
push 0
lea eax, [esp + 0x28]
push closesocket
push eax
mov byte [esp + 0x30], 0x5a
call esi
cmp eax, 0xffffffff
jne 0x536243
push 0
push 0x80
push 3
push 0
push 0
lea ecx, [esp + 0x28]
push closesocket
push ecx
mov byte [esp + 0x30], 0x44
call esi
mov ecx, eax
inc eax
neg eax
sbb eax, eax
and eax, ecx
pop edi
pop esi
pop ebx
add esp, 0x208
ret