Function at 0x4073c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
mov esi, 0x618
push ebx
sub esp, 0x2c
xor ebx, ebx
mov dword [esp + 8], esi
xor esi, esi
mov dword [esp + 4], ebx
xor ebx, ebx
mov dword [esp], 0x55c380
call sub.msvcrt.dll_memset
mov dword [esp], 0x55b7b0
mov ecx, 0xb58
xor edx, edx
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
call sub.msvcrt.dll_memset
mov dword [0x55c350], edi
xor eax, eax
xor ecx, ecx
mov dword [0x55c360], eax
mov edx, 0x1388
xor eax, eax
mov dword [0x55c370], esi
xor edi, edi
xor esi, esi
mov dword [0x55c330], ebx
xor ebx, ebx
mov dword [0x55b750], ecx
xor ecx, ecx
mov dword [0x55b7a0], edx
xor edx, edx
mov dword [0x55b790], eax
xor eax, eax
mov dword [0x55c310], edx
mov edx, 0x55c394
mov dword [0x55c314], eax
mov eax, 0x19
mov dword [0x55b760], edi
mov dword [0x55b780], esi
mov dword [0x55c320], ebx
mov dword [0x55c340], ecx
jmp 0x407480
mov dword [edx], 0xffffffff
add edx, 0x3c
dec eax
jns 0x407480
mov edi, dword [section..bss]
mov edx, 1
test edi, edi
je 0x4074a5
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str._n_CD_ROM_INIT_
call fcn.00404670
mov dword [esp], 0
xor edx, edx
xor eax, eax
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_CreateMutexA
mov dword [0x55c320], eax
sub esp, 0xc
xor edx, edx
test eax, eax
je 0x40749b
xor ebx, ebx
mov dword [esp], 0
mov ecx, 0x930
mov edi, 4
mov dword [esp + 0xc], edi
mov esi, 0x1000
mov dword [esp + 8], esi
mov dword [esp + 4], ecx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebx*4 + 0x55c310], eax
sub esp, 0x10
test eax, eax
je 0x407739
inc ebx
cmp ebx, 1
jle 0x4074d9
mov dword [esp], 0x55c380
mov ebx, 0x618
xor edi, edi
mov dword [esp + 8], ebx
xor esi, esi
xor ebx, ebx
mov dword [esp + 4], edi
call sub.msvcrt.dll_memset
mov dword [0x55c360], esi
xor ecx, ecx
xor edx, edx
mov dword [0x55c350], ecx
xor eax, eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], 0
call sub.KERNEL32.dll_CreateEventA
mov dword [0x55c370], eax
sub esp, 0x10
test eax, eax
je 0x407647
mov edx, 0x55c394
mov eax, 0x19
mov dword [edx], 0xffffffff
add edx, 0x3c
dec eax
jns 0x40757b
mov dword [ebp - 0x1c], 0
lea edi, [ebp - 0x18]
mov ebx, 2
mov dword [ebp - 0x20], edi
mov esi, 0x55c408
jmp 0x4075a9
inc ebx
add esi, 0x3c
cmp ebx, 0x19
jg 0x4075ed
mov al, bl
mov edx, str._c:_
add al, 0x41
mov dword [esp + 4], edx
movsx ecx, al
mov dword [esp + 8], ecx
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
mov dword [ebp - 0x20], edi
mov dword [esp], edi
call sub.KERNEL32.dll_GetDriveTypeA
sub esp, 4
cmp eax, 5
jne 0x4075a0
mov eax, ebx
call fcn.00406fb0
mov edx, dword [esi]
cmp edx, 1
sbb dword [ebp - 0x1c], 0xffffffff
jmp 0x4075a0
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x407647
xor ebx, ebx
xor edx, edx
mov ecx, 0x19
mov edi, dword [edx + 0x55c390]
test edi, edi
je 0x407612
mov eax, dword [edx + 0x55c380]
cmp eax, ebx
cmovg ebx, eax
add edx, 0x3c
dec ecx
jns 0x4075fd
lea ecx, [ebx + 1]
mov ebx, dword [ebp - 0x1c]
mov dword [0x55c360], ecx
test ebx, ebx
je 0x407647
mov edx, 0x407c20
mov esi, 0x407740
mov dword [0x55c9a0], esi
mov dword [0x55b770], edx
call fcn.00406c40
test eax, eax
jne 0x40766b
mov dword [esp], str.wnaspi32.dll
call sub.KERNEL32.dll_LoadLibraryA
mov dword [0x55c340], eax
sub esp, 4
test eax, eax
jne 0x40767a
mov dword [esp], str.opening_ASPI_DLL..._could_not_open_the_DLL_
call fcn.00404670
mov edx, 1
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], eax
mov ecx, str.GetASPI32SupportInfo
mov ebx, str.SendASPI32Command
mov dword [esp + 4], ecx
call sub.KERNEL32.dll_GetProcAddress
mov dword [0x55c9a0], eax
sub esp, 8
mov dword [esp + 4], ebx
mov eax, dword [0x55c340]
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [0x55b770], eax
mov edi, dword [0x55c9a0]
sub esp, 8
test edi, edi
je 0x4076bf
test eax, eax
jne 0x4076cd
mov dword [esp], str.opening_ASPI_DLL..._could_not_retrieve_proc_pointers_
call fcn.00404670
jmp 0x40766b
mov edx, dword [0x55b7a0]
test edx, edx
je 0x407711
mov dword [esp], 0
xor eax, eax
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov edi, 1
xor esi, esi
mov dword [esp + 8], eax
mov dword [esp + 4], edi
call sub.KERNEL32.dll_CreateEventA
mov dword [0x55b780], eax
sub esp, 0x10
test eax, eax
cmovne esi, dword [0x55b7a0]
mov dword [0x55b7a0], esi
mov dword [esp], str.opening_ASPI_DLL..._OK
call fcn.00404670
call fcn.00406c40
test eax, eax
mov edx, 1
je 0x40749b
mov edx, 1
jmp 0x407670
xor edx, edx
jmp 0x40749b