Function at 0x415130
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 0x4151a7
call fcn.0048f02d
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 0x415393
movsx edx, byte [ebx]
push edx
call fcn.0048f80c
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 0x415224
cmp eax, 1
jne 0x4151f5
cmp edx, 2
je 0x415224
cmp eax, 2
jne 0x4151ff
cmp edx, 3
je 0x415224
cmp eax, 3
jne 0x415209
cmp edx, 5
je 0x415224
cmp eax, 4
jne 0x415212
cmp edx, eax
je 0x415224
cmp eax, 5
jne 0x415364
cmp edx, 6
jne 0x415364
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.0x415254
jmp dword [eax*4 + 0x4153e0]
lea ebx, [esp + 0x128]
mov edi, 0x62fdf4
jmp 0x415291
lea ebx, [esp + 0x128]
mov edi, 0x62fde8
jmp 0x415291
lea ebx, [esp + 0x128]
mov edi, 0x62fdd8
jmp 0x415291
lea ebx, [esp + 0x128]
mov edi, 0x62fdc4
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 0x415325
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 0x415329
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 0x415329
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 0x415354
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 0x4151c3
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
jne 0x4153b8
mov eax, dword [ebp + 0x64]
test eax, eax
jne 0x41539e
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 0x4153c6
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