Function at 0x4063e0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x500
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebp, ecx
push edi
push 0
push 0
mov eax, dword [ebp + 0x1c]
push 0x14b
push eax
call esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x24], 0
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov al, 0x3a
mov byte [esp + 0x14], 0x20
mov byte [esp + 0x15], al
mov byte [esp + 0x19], al
mov al, byte [ebp + 0x40]
mov byte [esp + 0x16], 0
test al, al
mov byte [esp + 0x18], 0
mov byte [esp + 0x1a], 0x5c
mov byte [esp + 0x1b], 0
mov dword [esp + 0x20], 0xffffffff
mov byte [esp + 0x13], al
jne 0x406457
call fcn.0046584c
add al, 0x40
mov byte [esp + 0x13], al
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x1c], ebx
je 0x406643
movsx edx, byte [ebx]
push edx
call fcn.00465f9c
add esp, 4
mov byte [esp + 0x14], al
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edx, eax
mov eax, dword [ebp + 0x44]
test eax, eax
je 0x4064d4
cmp eax, 1
jne 0x4064a5
cmp edx, 2
je 0x4064d4
cmp eax, 2
jne 0x4064af
cmp edx, 3
je 0x4064d4
cmp eax, 3
jne 0x4064b9
cmp edx, 5
je 0x4064d4
cmp eax, 4
jne 0x4064c2
cmp edx, eax
je 0x4064d4
cmp eax, 5
jne 0x406614
cmp edx, 6
jne 0x406614
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x128]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [edx - 3]
and ecx, 3
cmp eax, 3
rep movsb byte es:[edi], byte [esi]
ja case.default.0x406504
jmp dword [eax*4 + 0x406690]
lea ebx, [esp + 0x128]
mov edi, 0xdd9c78
jmp 0x406541
lea ebx, [esp + 0x128]
mov edi, 0xdd9c6c
jmp 0x406541
lea ebx, [esp + 0x128]
mov edi, 0xdd9c5c
jmp 0x406541
lea ebx, [esp + 0x128]
mov edi, 0xdd9c48
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebx
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp edx, 3
jne 0x4065d5
mov ebx, dword [esp + 0x1c]
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x331]
push 0x1f3
push ecx
push ebx
mov byte [esp + 0x33c], 0x20
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov al, byte [esp + 0x31d]
test al, al
je 0x4065d9
lea edi, [esp + 0x31c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x128]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4065d9
mov ebx, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x1c]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0x128]
push eax
push 0
push 0x143
push ecx
call esi
mov cl, byte [esp + 0x14]
mov dl, byte [esp + 0x13]
cmp dl, cl
jne 0x406604
mov dword [esp + 0x20], eax
movsx edx, cl
push edx
push eax
mov eax, dword [ebp + 0x1c]
push 0x151
push eax
call esi
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebx, [ebx + ecx + 1]
or ecx, 0xffffffff
mov edi, ebx
mov dword [esp + 0x1c], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x406473
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
jne 0x406668
mov eax, dword [ebp + 0x64]
test eax, eax
jne 0x40664e
mov byte [ebp + 0x40], 0
mov ecx, dword [ebp + 0x1c]
push 0
push 0xffffffffffffffff
push 0x14e
push ecx
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x500
ret
mov ecx, dword [ebp + 0x64]
test ecx, ecx
jne 0x406676
mov dl, byte [esp + 0x13]
mov byte [ebp + 0x40], dl
push 0
push eax
mov eax, dword [ebp + 0x1c]
push 0x14e
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x500
ret