Function at 0x417900
Capabilities:
Get disk information

Disassembly:
sub esp, 0x214
push ebx
push ebp
mov ebp, dword [esp + 0x228]
push esi
push edi
push ebp
call fcn.00419910
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x124]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x230]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x124]
push ecx
call fcn.00419730
add esp, 8
lea edx, [esp + 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ebx, dword [esp + 0x228]
mov edx, eax
lea eax, [edx - 2]
cmp eax, 3
ja case.default.0x417990
jmp dword [eax*4 + 0x417b20]
mov edi, str.Local_
jmp 0x4179aa
mov edi, str.Remote_
jmp 0x4179aa
mov edi, str.Removable_
or ecx, 0xffffffff
xor eax, eax
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp edx, 4
jne 0x417a89
mov cl, byte [0x426fec]
xor eax, eax
mov byte [esp + 0x1c], cl
mov ecx, 0x40
lea edi, [esp + 0x1d]
lea edx, [esp + 0x120]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.00417b30
add esp, 8
test eax, eax
jne 0x417a16
lea ecx, [esp + 0x120]
lea edx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + 0x1c]
push eax
call esi
cmp byte [esp + eax + 0x1b], 0x5c
jne 0x417a36
lea ecx, [esp + 0x1c]
push ecx
call esi
mov byte [esp + eax + 0x1b], 0
lea edi, [esp + 0x1e]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
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]
mov edi, 0x426068
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
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 0x417ad0
push 0
lea eax, [esp + 0x1c]
push 0
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
lea eax, [esp + 0x138]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [esp + 0x10]
mov edi, ebx
push ecx
or ecx, 0xffffffff
xor eax, eax
push str._08X_
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, ebx
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edi, [esp + 0x120]
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
or ecx, 0xffffffff
add edi, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
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]
call fcn.00419910
add esp, 4
mov byte [eax - 1], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret