Function at 0x5d73d0
Capabilities:
Get disk information
Print debug messages

Disassembly:
push ebx
push esi
push edi
push ebp
sub esp, 0x120
cmp byte [0xa10ac4], 0
mov ebp, ecx
je 0x5d73f2
add esp, 0x120
mov al, 1
pop ebp
pop edi
pop esi
pop ebx
ret
xor eax, eax
xor ebx, ebx
mov edx, eax
mov dword [ebp + ebx + 0x15c], 0
inc edx
mov dword [ebp + ebx + 0x160], 0
mov dword [ebp + ebx + 0x164], 0x5622
mov dword [ebp + ebx + 0x168], 0
or dword [ebp + ebx + 0x16c], 0xffffffff
lea edx, [edx + edx*4]
lea edx, [edx*4]
add ebx, 0xa0
mov dword [ebp + edx + 0x15c], 0
mov dword [ebp + edx + 0x160], 0
mov dword [ebp + edx + 0x164], 0x5622
mov dword [ebp + edx + 0x168], 0
or dword [ebp + edx + 0x16c], 0xffffffff
lea ecx, [eax + 2]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx*4]
mov dword [ebp + ecx + 0x15c], 0
mov dword [ebp + ecx + 0x160], 0
mov dword [ebp + ecx + 0x164], 0x5622
mov dword [ebp + ecx + 0x168], 0
or dword [ebp + ecx + 0x16c], 0xffffffff
lea esi, [eax + 3]
lea esi, [esi + esi*4]
lea esi, [esi*4]
mov dword [ebp + esi + 0x15c], 0
mov dword [ebp + esi + 0x160], 0
mov dword [ebp + esi + 0x164], 0x5622
mov dword [ebp + esi + 0x168], 0
or dword [ebp + esi + 0x16c], 0xffffffff
lea edi, [eax + 4]
lea edi, [edi + edi*4]
lea edi, [edi*4]
mov dword [ebp + edi + 0x15c], 0
mov dword [ebp + edi + 0x160], 0
mov dword [ebp + edi + 0x164], 0x5622
mov dword [ebp + edi + 0x168], 0
or dword [ebp + edi + 0x16c], 0xffffffff
lea edx, [eax + 5]
lea edx, [edx + edx*4]
lea edx, [edx*4]
mov dword [ebp + edx + 0x15c], 0
mov dword [ebp + edx + 0x160], 0
mov dword [ebp + edx + 0x164], 0x5622
mov dword [ebp + edx + 0x168], 0
or dword [ebp + edx + 0x16c], 0xffffffff
lea ecx, [eax + 6]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx*4]
mov dword [ebp + ecx + 0x15c], 0
mov dword [ebp + ecx + 0x160], 0
mov dword [ebp + ecx + 0x164], 0x5622
mov dword [ebp + ecx + 0x168], 0
or dword [ebp + ecx + 0x16c], 0xffffffff
lea esi, [eax + 7]
lea esi, [esi + esi*4]
add eax, 8
lea esi, [esi*4]
mov dword [ebp + esi + 0x15c], 0
mov dword [ebp + esi + 0x160], 0
mov dword [ebp + esi + 0x164], 0x5622
mov dword [ebp + esi + 0x168], 0
or dword [ebp + esi + 0x16c], 0xffffffff
cmp eax, 0x26cd
jb 0x5d73f6
mov edi, eax
mov edx, eax
lea edi, [edi + edi*4]
inc edx
lea edi, [edi*4]
mov dword [ebp + edi + 0x15c], 0
mov dword [ebp + edi + 0x160], 0
mov dword [ebp + edi + 0x164], 0x5622
mov dword [ebp + edi + 0x168], 0
or dword [ebp + edi + 0x16c], 0xffffffff
lea edx, [edx + edx*4]
lea edx, [edx*4]
mov dword [ebp + edx + 0x15c], 0
mov dword [ebp + edx + 0x160], 0
mov dword [ebp + edx + 0x164], 0x5622
mov dword [ebp + edx + 0x168], 0
or dword [ebp + edx + 0x16c], 0xffffffff
lea ecx, [eax + 2]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx*4]
mov dword [ebp + ecx + 0x15c], 0
mov dword [ebp + ecx + 0x160], 0
mov dword [ebp + ecx + 0x164], 0x5622
mov dword [ebp + ecx + 0x168], 0
or dword [ebp + ecx + 0x16c], 0xffffffff
lea esi, [eax + 3]
lea esi, [esi + esi*4]
add eax, 4
lea esi, [esi*4]
mov dword [ebp + esi + 0x15c], 0
mov dword [ebp + esi + 0x160], 0
mov dword [ebp + esi + 0x164], 0x5622
mov dword [ebp + esi + 0x168], 0
or dword [ebp + esi + 0x16c], 0xffffffff
lea eax, [eax + eax*4]
lea eax, [eax*4]
mov dword [ebp + eax + 0x15c], 0
mov dword [ebp + eax + 0x160], 0
mov dword [ebp + eax + 0x164], 0x5622
mov dword [ebp + eax + 0x168], 0
or dword [ebp + eax + 0x16c], 0xffffffff
mov byte [ebp + 3], 0x7f
mov byte [ebp + 4], 0x7f
or dword [0x6a5400], 0xffffffff
mov byte [0xa10b23], 0
or dword [0x6a5404], 0xffffffff
xor eax, eax
mov dword [0xa1068c], 0
mov dword [0x97f2a8], 0
mov dword [0xa0fd50], 0
mov dword [0x980038], 0
mov dword [0xa0fca4], 0
mov dword [0x978558], 0
mov dword [eax*4 + 0x94b1a8], 0
mov dword [eax*4 + 0x94b1ac], 0
mov dword [eax*4 + 0x94b1b0], 0
mov dword [eax*4 + 0x94b1b4], 0
mov dword [eax*4 + 0x94b1b8], 0
mov dword [eax*4 + 0x94b1bc], 0
mov dword [eax*4 + 0x94b1c0], 0
add eax, 7
cmp eax, 0x1c
jb 0x5d77a4
xor eax, eax
mov dword [0x9785fc], 0
pxor mm1, mm1
mov dword [0x97862c], 0
movq mm0, qword [0x6a5570]
mov dword [0xa0fc74], 0
mov byte [0xa10980], 0
mov dword [0x94b8f8], 0
mov byte [0xa10981], 0
mov dword [0x7e9cd0], 0
mov dword [0x7e9cd4], 0
mov dword [0x94b790], 0
mov dword [0x94b794], 0
mov dword [0x94b8fc], 0
lea eax, [eax]
movq qword [eax*4 + 0xa0d210], mm1
movq qword [eax*4 + 0x9751d8], mm0
movq qword [eax*4 + 0xa0d218], mm1
movq qword [eax*4 + 0x9751e0], mm0
movq qword [eax*4 + 0xa0d220], mm1
movq qword [eax*4 + 0x9751e8], mm0
add eax, 6
cmp eax, 1
jb 0x5d7870
mov dword [eax*4 + 0xa0d210], 0
mov dword [eax*4 + 0x9751d8], 0x26d6
xor eax, eax
mov byte [0xa10b5b], 0
pxor mm2, mm2
lea eax, [eax]
movq qword [eax + 0xa10ac5], mm2
lea ebx, [eax + 8]
movq qword [ebx + 0xa10ac5], mm2
lea edi, [eax + 0x10]
add eax, 0x18
movq qword [edi + 0xa10ac5], mm2
cmp eax, 5
jb 0x5d78d0
mov edx, eax
mov byte [eax + 0xa10ac5], 0
emms
inc edx
mov byte [edx + 0xa10ac5], 0
lea ecx, [eax + 2]
mov byte [ecx + 0xa10ac5], 0
lea esi, [eax + 3]
add eax, 4
mov byte [esi + 0xa10ac5], 0
push 0x6a5578
mov byte [eax + 0xa10ac5], 0
call dword [0x6f2648]
call dword [0x6f264c]
push 0x22
push 1
call dword [0x6f2650]
push 0
push 2
push 0x10
push 0x7d00
call dword [0x6f2654]
mov dword [0x978558], eax
mov byte [ebp + 0x56], 0
lea eax, [eax]
mov ebx, 0x43
mov byte [esp + 0x13], 0
mov byte [esp], 1
mov byte [esp + 0x12], bl
lea edi, [esp + 0x12]
lea eax, [ebp + 6]
push edi
push eax
call fcn.006425b0
lea eax, [ebp + 6]
pop ecx
pop ecx
push 0x6a557c
push eax
call fcn.00642600
lea eax, [ebp + 6]
pop ecx
pop ecx
push eax
call dword [sym.imp.kernel32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x5d79f7
lea eax, [esp + 0x14]
lea edx, [ebp + 6]
push edx
push eax
call fcn.006425b0
lea eax, [esp + 0x1c]
pop ecx
pop ecx
push 0x69dc78
push eax
call fcn.00642600
lea eax, [esp + 0x1c]
pop ecx
pop ecx
push 0x6a550c
push eax
call fcn.00652700
test eax, eax
pop ecx
pop ecx
je 0x5d79f7
push eax
call fcn.00652590
lea eax, [ebp + 0x30a00]
pop ecx
lea ecx, [ebp + 6]
push ecx
push eax
call fcn.006425b0
mov byte [esp + 8], 0
pop ecx
pop ecx
jmp 0x5d7a01
inc ebx
cmp ebx, 0x5a
jbe 0x5d7965
cmp byte [esp], 0
jmp 0x5d7a32
cmp dword [0x978558], 0
jne 0x5d7a60
call dword [0x6f25d8]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov ecx, ebp
call fcn.005d7290
xor al, al
add esp, 0x120
pop ebp
pop edi
pop esi
pop ebx
ret
call fcn.005d8f80
mov byte [ebp + 6], 0
lea esi, [ebp + 6]
lea eax, [ebp + 0x30b04]
push esi
push eax
call fcn.006425b0
mov edi, 0x69e687
pop ecx
mov ebx, 0x67
pop ecx
lea eax, [esp + 0x14]
lea edx, [ebp + 6]
push edx
push eax
call fcn.006425b0
lea eax, [esp + 0x1c]
pop ecx
pop ecx
push edi
push eax
call fcn.00642600
mov eax, dword [0x978558]
pop ecx
pop ecx
lea ecx, [esp + 0x14]
push 0
push ecx
push eax
call dword [0x6f25c4]
cmp eax, 0
mov dword [0x978670], eax
je 0x5d7af6
lea esi, [esp + 0x118]
push 0
push esi
push eax
call dword [0x6f25b8]
mov eax, dword [0x978670]
push eax
call dword [0x6f25c0]
mov eax, dword [esp + 0x118]
mov dword [0x978670], 0
mov dword [ebx*4 + 0x94c0e8], eax
jmp 0x5d7b10
mov ecx, ebp
mov byte [ebp + 0x56], 0
call fcn.005d7290
xor al, al
add esp, 0x120
pop ebp
pop edi
pop esi
pop ebx
ret
inc ebx
add edi, 0x19
cmp ebx, 0x4c8
jb 0x5d7a85
mov dword [esp + 4], 0x43
mov al, byte [esp + 4]
mov byte [esp + 0x13], 0
mov byte [esp + 0x12], al
lea edx, [esp + 0x12]
lea eax, [ebp + 6]
push edx
push eax
call fcn.006425b0
lea eax, [ebp + 6]
pop ecx
pop ecx
push 0x6a5580
push eax
call fcn.00642600
lea eax, [ebp + 0x30c08]
pop ecx
pop ecx
lea ecx, [ebp + 6]
push ecx
push eax
call fcn.006425b0
xor esi, esi
pop ecx
mov ebx, 0x69dc78
pop ecx
mov eax, eax
lea eax, [esp + 0x14]
lea edi, [ebp + 0x30c08]
push edi
push eax
call fcn.006425b0
lea eax, [esp + 0x1c]
pop ecx
pop ecx
push ebx
push eax
call fcn.00642600
mov eax, dword [0x978558]
lea edx, [esp + 0x1c]
pop ecx
pop ecx
push 0
push edx
push eax
call dword [0x6f25c4]
cmp eax, 0
mov dword [0x978670], eax
je 0x5d7be6
lea ecx, [esp + 0x118]
push 0
push ecx
push eax
call dword [0x6f25b8]
mov eax, dword [0x978670]
push eax
call dword [0x6f25c0]
mov eax, dword [esp + 0x118]
mov dword [0x978670], 0
mov dword [esi*4 + 0x94c0e8], eax
xor al, al
jmp 0x5d7bf0
mov al, 1
jmp 0x5d7bfd
inc esi
add ebx, 0x19
cmp esi, 0x66
jb 0x5d7b70
test al, al
je 0x5d7c10
inc dword [esp + 4]
cmp dword [esp + 4], 0x5a
jbe 0x5d7b28
test al, al
jne 0x5d7cad
mov edi, 0x69e66e
mov ebx, 0x66
lea eax, [esp + 0x14]
lea edx, [ebp + 0x30a00]
push edx
push eax
call fcn.006425b0
lea eax, [esp + 0x1c]
pop ecx
pop ecx
push edi
push eax
call fcn.00642600
mov eax, dword [0x978558]
pop ecx
pop ecx
lea ecx, [esp + 0x14]
push 0
push ecx
push eax
call dword [0x6f25c4]
cmp eax, 0
mov dword [0x978670], eax
je 0x5d7c98
lea edx, [esp + 0x118]
push 0
push edx
push eax
call dword [0x6f25b8]
mov eax, dword [0x978670]
push eax
call dword [0x6f25c0]
mov eax, dword [esp + 0x118]
mov dword [0x978670], 0
mov dword [ebx*4 + 0x94c0e8], eax
xor al, al
jmp 0x5d7ca0
mov al, 1
jmp 0x5d7cad
inc ebx
add edi, 0x19
cmp ebx, 0x67
jb 0x5d7c22
test al, al
je 0x5d7cb7
mov byte [ebp + 0x56], 0
jmp 0x5d7cbb
mov byte [ebp + 0x56], 1
test al, al
je 0x5d7cf0
mov ecx, 0x869638
call fcn.0049046d
cmp byte [0x86966c], 0
je 0x5d7960
mov ecx, ebp
call fcn.005d7290
xor al, al
add esp, 0x120
pop ebp
pop edi
pop esi
pop ebx
ret
mov ecx, ebp
call fcn.005d5b60
test al, al
jne 0x5d7d10
mov ecx, ebp
call fcn.005d7290
xor al, al
add esp, 0x120
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, dword [0x7e9cd0]
push eax
call dword [0x6f2658]
cmp eax, 0
mov dword [0x94b790], eax
jne 0x5d7d40
mov ecx, ebp
call fcn.005d7290
xor al, al
add esp, 0x120
pop ebp
pop edi
pop esi
pop ebx
ret
push 0xb44e0
call dword [0x6f2658]
cmp byte [0xa10b7f], 0
mov dword [0x94b794], eax
jne 0x5d7da0
mov eax, dword [0x97862c]
mov ecx, dword [0x94b8f8]
push 0
push ecx
push eax
call fcn.00652eb0
add esp, 0xc
test eax, eax
jne 0x5d7da0
mov eax, dword [0x7e9cd0]
mov edx, dword [0x97862c]
push edx
push eax
mov eax, dword [0x94b790]
push 1
push eax
call fcn.00652f10
add esp, 0x10
cmp eax, dword [0x7e9cd0]
jne 0x5d7da0
mov byte [0xa10980], 1
xor esi, esi
mov dword [0x978670], 0
mov byte [0xa10ba7], 0
mov dword [0x978674], 0
mov byte [0xa10ba8], 0
mov dword [0x978678], 0
mov byte [0xa10ba9], 0
mov byte [0xa10b84], 0x64
mov byte [0xa10b85], 0x64
mov byte [0xa10ae9], 0x3f
mov byte [0xa10b86], 0x64
mov byte [0xa10aea], 0x3f
mov byte [0xa10aeb], 0x3f
nop
mov eax, dword [0x978558]
push eax
call dword [0x6f265c]
mov dword [esi*4 + 0x9b48cc], eax
mov eax, dword [esi*4 + 0x9b48cc]
test eax, eax
je 0x5d7e37
push eax
call dword [0x6f2660]
mov eax, dword [esi*4 + 0x9b48cc]
push 1
push 1
push eax
call dword [0x6f2664]
inc esi
cmp esi, 1
jb 0x5d7e00
xor ebx, ebx
mov byte [0xa10ac4], 1
mov dword [esp + 8], 0x8167f0
jmp 0x5d7e89
mov eax, dword [esp + 8]
add eax, 4
push eax
call fcn.00642510
mov esi, eax
pop ecx
mov ecx, 0x21
mov edi, str.DIRECTSOUND3D_SOFTWARE_EMULATION
repe cmpsb byte [esi], byte es:[edi]
movzx ecx, byte [esi - 1]
movzx eax, byte [edi - 1]
sub ecx, eax
test ecx, ecx
jne 0x5d7e83
push ebx
call fcn.005d8c50
pop ecx
jmp 0x5d7e91
add dword [esp + 8], 0x54
inc ebx
movzx eax, byte [ebp + 0x57]
cmp ebx, eax
jb 0x5d7e50
movzx eax, byte [ebp + 0x57]
cmp ebx, eax
jne 0x5d7eb0
mov ecx, ebp
call fcn.005d7290
xor al, al
add esp, 0x120
pop ebp
pop edi
pop esi
pop ebx
ret
mov dword [0xa108b8], 0
mov dword [0x9753e8], 0
call fcn.005d81a0
cmp dword [0xa108b8], 0
je 0x5d7ff0
mov ebp, dword [0x9753e8]
mov dword [0x94c10c], 0
cmp ebp, 0
je 0x5d7f11
mov eax, eax
lea eax, [eax]
mov eax, dword [0x94c10c]
mov dword [ebp + 0x108], eax
mov eax, dword [ebp + 0x104]
add dword [0x94c10c], eax
mov ebp, dword [ebp + 0x10c]
test ebp, ebp
jne 0x5d7ef0
push 0
call fcn.00661e20
cmp eax, 0xffffffff
pop ecx
mov dword [esp + 0x11c], eax
je 0x5d7f40
lea eax, [esp + 0x11c]
push eax
call fcn.00661ed0
xor bl, bl
pop ecx
mov dword [esp + 0xc], eax
jmp 0x5d7f42
mov bl, 1
test bl, bl
je 0x5d7f50
mov eax, dword [0x792c60]
jmp 0x5d7f5e
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
mov eax, dword [eax + 4]
imul eax, dword [ecx]
xor edx, edx
div dword [0xa108b8]
mov dword [0x978824], edx
mov esi, dword [0x978824]
mov ecx, dword [0x9753e8]
test esi, esi
mov eax, esi
jle 0x5d7f8b
mov eax, eax
dec eax
mov ecx, dword [ecx + 0x10c]
test eax, eax
jg 0x5d7f80
test bl, bl
je 0x5d7fa4
xor edx, edx
mov eax, dword [0x792c5c]
div dword [ecx + 0x104]
mov dword [0x978db8], edx
jmp 0x5d7ffa
mov eax, dword [esp + 0xc]
mov edi, dword [eax]
test edi, edi
jle 0x5d7fd5
mov eax, edi
xor edx, edx
imul eax, edi
imul eax, edi
imul eax, edi
imul eax, edi
imul eax, edi
imul eax, edi
imul eax, edi
div dword [ecx + 0x104]
mov dword [0x978db8], edx
jmp 0x5d7ffa
xor edx, edx
mov eax, dword [0x792c5c]
div dword [ecx + 0x104]
mov dword [0x978db8], edx
jmp 0x5d7ffa
mov dword [0x978db8], 0
mov al, 1
mov byte [0xa10b59], 0
add esp, 0x120
pop ebp
pop edi
pop esi
pop ebx
ret