Function at 0x425240
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 0x4252b7
call fcn.004c77cc
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 0x4254a3
movsx edx, byte [ebx]
push edx
call fcn.004c7fec
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 0x425334
cmp eax, 1
jne 0x425305
cmp edx, 2
je 0x425334
cmp eax, 2
jne 0x42530f
cmp edx, 3
je 0x425334
cmp eax, 3
jne 0x425319
cmp edx, 5
je 0x425334
cmp eax, 4
jne 0x425322
cmp edx, eax
je 0x425334
cmp eax, 5
jne 0x425474
cmp edx, 6
jne 0x425474
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.0x425364
jmp dword [eax*4 + 0x4254f0]
lea ebx, [esp + 0x128]
mov edi, 0x639cfc
jmp 0x4253a1
lea ebx, [esp + 0x128]
mov edi, 0x639cf0
jmp 0x4253a1
lea ebx, [esp + 0x128]
mov edi, 0x639ce0
jmp 0x4253a1
lea ebx, [esp + 0x128]
mov edi, 0x639ccc
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 0x425435
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 0x425439
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 0x425439
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 0x425464
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 0x4252d3
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
jne 0x4254c8
mov eax, dword [ebp + 0x64]
test eax, eax
jne 0x4254ae
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 0x4254d6
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