Function at 0x410c30
Capabilities:
Accept command line arguments
Get disk information

Disassembly:
sub esp, 0x314
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [esp + 0x18]
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]
cmp byte [esp + 0x18], 0x22
jne 0x410c74
lea ebx, [esp + 0x19]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + ebx], 0x5c
je 0x410c8f
mov al, byte [ecx + ebx - 1]
dec ecx
cmp al, 0x5c
jne 0x410c86
mov byte [ecx + ebx + 1], 0
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x220]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x4d8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0xf42
rep movsb byte es:[edi], byte [esi]
mov edi, str.Disk32.DLL
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]
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
call esi
xor edi, edi
mov dword [ebp + 0x74], eax
cmp eax, edi
jne 0x410d16
push edi
push edi
push str.Drive_Packet_memory_not_enough
call fcn.0043ac40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x314
ret
push 0x200000
push 0xf42
call esi
cmp eax, edi
mov dword [ebp + 0x70], eax
jne 0x410d4a
push edi
push edi
push str.m_Packets_memory_not_enough
call fcn.0043ac40
mov eax, dword [ebp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x314
ret
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor ecx, ecx
test eax, eax
setl cl
mov eax, ecx
cmp eax, edi
mov dword [ebp + 0x6c], eax
je 0x410ed0
lea edx, [esp + 0x11c]
push 0x104
push edx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
call ebx
lea eax, [esp + 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp + 0x7b8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp + 0x7b8]
cmp eax, edi
jne 0x410db5
push edi
push edi
push str.Disk32.DLL_not_found
call fcn.0043ac40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x314
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ReadDisk32
push eax
call esi
cmp eax, edi
mov dword [ebp + 0x78], eax
jne 0x410de1
push edi
push edi
push str.ReadDisk32_Function_not_accessible_
call fcn.0043ac40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x314
ret
mov ecx, dword [ebp + 0x7b8]
push str.CheckInt13Extension32
push ecx
call esi
cmp eax, edi
mov dword [ebp + 0x7c], eax
jne 0x410e0d
push edi
push edi
push str.DllCheckInt13Extension_Function_not_accessible_
call fcn.0043ac40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x314
ret
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x220]
push edx
lea eax, [esp + 0x1c]
push str._sDISK.VXD
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x11c]
lea edx, [esp + 0x18]
push 0x104
push ecx
push edx
call ebx
lea eax, [esp + 0x11c]
lea ecx, [esp + 0x18]
push eax
push str.._s
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0x18]
push edi
push 0x4000000
push 1
push edi
push edi
push edi
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push edi
cmp esi, 0xffffffff
jne 0x410e96
push edi
push str.Unable_to_open_DISK.VXD
call fcn.0043ac40
mov ecx, ebp
mov dword [ebp + 0x7b4], edi
call fcn.00410f20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x314
ret
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push 4
push ecx
push edi
push edi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edx, dword [esp + 0x10]
push esi
mov dword [ebp + 0x7b4], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebp
call fcn.00410f20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x314
ret
mov eax, dword [0x46e32c]
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [esp + 0x10], eax
mov dword [ebp + 0x7b4], edi
xor ebx, ebx
mov cl, bl
lea edx, [esp + 0x10]
add cl, 0x41
push edx
mov byte [esp + 0x14], cl
call esi
cmp eax, 2
jne 0x410f02
inc dword [ebp + 0x7b4]
inc ebx
cmp ebx, 0x1a
jl 0x410ee7
mov ecx, ebp
call fcn.00414780
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x314
ret