Function at 0x410080
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 0x4100f7
call fcn.004582bc
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 0x4102e3
movsx edx, byte [ebx]
push edx
call fcn.004589d0
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 0x410174
cmp eax, 1
jne 0x410145
cmp edx, 2
je 0x410174
cmp eax, 2
jne 0x41014f
cmp edx, 3
je 0x410174
cmp eax, 3
jne 0x410159
cmp edx, 5
je 0x410174
cmp eax, 4
jne 0x410162
cmp edx, eax
je 0x410174
cmp eax, 5
jne 0x4102b4
cmp edx, 6
jne 0x4102b4
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.0x4101a4
jmp dword [eax*4 + 0x410330]
lea ebx, [esp + 0x128]
mov edi, 0x545db8
jmp 0x4101e1
lea ebx, [esp + 0x128]
mov edi, 0x545dac
jmp 0x4101e1
lea ebx, [esp + 0x128]
mov edi, 0x545d9c
jmp 0x4101e1
lea ebx, [esp + 0x128]
mov edi, 0x545d88
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 0x410275
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 0x410279
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 0x410279
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 0x4102a4
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 0x410113
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
jne 0x410308
mov eax, dword [ebp + 0x64]
test eax, eax
jne 0x4102ee
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 0x410316
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