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

Disassembly:
push ebx
push esi
push edi
push ebp
sub esp, 0x120
cmp byte [0xa10abc], 0
mov ebp, ecx
je 0x5d73d2
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 0x5d73d6
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 [0xa10b1b], 0
or dword [0x6a5404], 0xffffffff
xor eax, eax
mov dword [0xa10684], 0
mov dword [0x97f2a0], 0
mov dword [0xa0fd48], 0
mov dword [0x980030], 0
mov dword [0xa0fc9c], 0
mov dword [0x978550], 0
mov dword [eax*4 + 0x94b1a0], 0
mov dword [eax*4 + 0x94b1a4], 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
add eax, 7
cmp eax, 0x1c
jb 0x5d7784
xor eax, eax
mov dword [0x9785f4], 0
pxor mm1, mm1
mov dword [0x978624], 0
movq mm0, qword [0x6a5570]
mov dword [0xa0fc6c], 0
mov byte [0xa10978], 0
mov dword [0x94b8f0], 0
mov byte [0xa10979], 0
mov dword [0x7e9cc8], 0
mov dword [0x7e9ccc], 0
mov dword [0x94b788], 0
mov dword [0x94b78c], 0
mov dword [0x94b8f4], 0
lea eax, [eax]
movq qword [eax*4 + 0xa0d208], mm1
movq qword [eax*4 + 0x9751d0], mm0
movq qword [eax*4 + 0xa0d210], mm1
movq qword [eax*4 + 0x9751d8], mm0
movq qword [eax*4 + 0xa0d218], mm1
movq qword [eax*4 + 0x9751e0], mm0
add eax, 6
cmp eax, 1
jb 0x5d7850
mov dword [eax*4 + 0xa0d208], 0
mov dword [eax*4 + 0x9751d0], 0x26d6
xor eax, eax
mov byte [0xa10b52], 0
pxor mm2, mm2
lea eax, [eax]
movq qword [eax + 0xa10abd], mm2
lea ebx, [eax + 8]
movq qword [ebx + 0xa10abd], mm2
lea edi, [eax + 0x10]
add eax, 0x18
movq qword [edi + 0xa10abd], mm2
cmp eax, 5
jb 0x5d78b0
mov edx, eax
mov byte [eax + 0xa10abd], 0
emms
inc edx
mov byte [edx + 0xa10abd], 0
lea ecx, [eax + 2]
mov byte [ecx + 0xa10abd], 0
lea esi, [eax + 3]
add eax, 4
mov byte [esi + 0xa10abd], 0
push 0x6a5578
mov byte [eax + 0xa10abd], 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 [0x978550], 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.00642560
lea eax, [ebp + 6]
pop ecx
pop ecx
push 0x6a557c
push eax
call fcn.006425b0
lea eax, [ebp + 6]
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x5d79d7
lea eax, [esp + 0x14]
lea edx, [ebp + 6]
push edx
push eax
call fcn.00642560
lea eax, [esp + 0x1c]
pop ecx
pop ecx
push 0x69dc78
push eax
call fcn.006425b0
lea eax, [esp + 0x1c]
pop ecx
pop ecx
push 0x6a550c
push eax
call fcn.006526b0
test eax, eax
pop ecx
pop ecx
je 0x5d79d7
push eax
call fcn.00652540
lea eax, [ebp + 0x30a00]
pop ecx
lea ecx, [ebp + 6]
push ecx
push eax
call fcn.00642560
mov byte [esp + 8], 0
pop ecx
pop ecx
jmp 0x5d79e1
inc ebx
cmp ebx, 0x5a
jbe 0x5d7945
cmp byte [esp], 0
jmp 0x5d7a12
cmp dword [0x978550], 0
jne 0x5d7a40
call dword [0x6f25d8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, ebp
call fcn.005d7270
xor al, al
add esp, 0x120
pop ebp
pop edi
pop esi
pop ebx
ret
call fcn.005d8f60
mov byte [ebp + 6], 0
lea esi, [ebp + 6]
lea eax, [ebp + 0x30b04]
push esi
push eax
call fcn.00642560
mov edi, 0x69e687
pop ecx
mov ebx, 0x67
pop ecx
lea eax, [esp + 0x14]
lea edx, [ebp + 6]
push edx
push eax
call fcn.00642560
lea eax, [esp + 0x1c]
pop ecx
pop ecx
push edi
push eax
call fcn.006425b0
mov eax, dword [0x978550]
pop ecx
pop ecx
lea ecx, [esp + 0x14]
push 0
push ecx
push eax
call dword [0x6f25c4]
cmp eax, 0
mov dword [0x978668], eax
je 0x5d7ad6
lea esi, [esp + 0x118]
push 0
push esi
push eax
call dword [0x6f25b8]
mov eax, dword [0x978668]
push eax
call dword [0x6f25c0]
mov eax, dword [esp + 0x118]
mov dword [0x978668], 0
mov dword [ebx*4 + 0x94c0e0], eax
jmp 0x5d7af0
mov ecx, ebp
mov byte [ebp + 0x56], 0
call fcn.005d7270
xor al, al
add esp, 0x120
pop ebp
pop edi
pop esi
pop ebx
ret
inc ebx
add edi, 0x19
cmp ebx, 0x4c8
jb 0x5d7a65
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.00642560
lea eax, [ebp + 6]
pop ecx
pop ecx
push 0x6a5580
push eax
call fcn.006425b0
lea eax, [ebp + 0x30c08]
pop ecx
pop ecx
lea ecx, [ebp + 6]
push ecx
push eax
call fcn.00642560
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.00642560
lea eax, [esp + 0x1c]
pop ecx
pop ecx
push ebx
push eax
call fcn.006425b0
mov eax, dword [0x978550]
lea edx, [esp + 0x1c]
pop ecx
pop ecx
push 0
push edx
push eax
call dword [0x6f25c4]
cmp eax, 0
mov dword [0x978668], eax
je 0x5d7bc6
lea ecx, [esp + 0x118]
push 0
push ecx
push eax
call dword [0x6f25b8]
mov eax, dword [0x978668]
push eax
call dword [0x6f25c0]
mov eax, dword [esp + 0x118]
mov dword [0x978668], 0
mov dword [esi*4 + 0x94c0e0], eax
xor al, al
jmp 0x5d7bd0
mov al, 1
jmp 0x5d7bdd
inc esi
add ebx, 0x19
cmp esi, 0x66
jb 0x5d7b50
test al, al
je 0x5d7bf0
inc dword [esp + 4]
cmp dword [esp + 4], 0x5a
jbe 0x5d7b08
test al, al
jne 0x5d7c8d
mov edi, 0x69e66e
mov ebx, 0x66
lea eax, [esp + 0x14]
lea edx, [ebp + 0x30a00]
push edx
push eax
call fcn.00642560
lea eax, [esp + 0x1c]
pop ecx
pop ecx
push edi
push eax
call fcn.006425b0
mov eax, dword [0x978550]
pop ecx
pop ecx
lea ecx, [esp + 0x14]
push 0
push ecx
push eax
call dword [0x6f25c4]
cmp eax, 0
mov dword [0x978668], eax
je 0x5d7c78
lea edx, [esp + 0x118]
push 0
push edx
push eax
call dword [0x6f25b8]
mov eax, dword [0x978668]
push eax
call dword [0x6f25c0]
mov eax, dword [esp + 0x118]
mov dword [0x978668], 0
mov dword [ebx*4 + 0x94c0e0], eax
xor al, al
jmp 0x5d7c80
mov al, 1
jmp 0x5d7c8d
inc ebx
add edi, 0x19
cmp ebx, 0x67
jb 0x5d7c02
test al, al
je 0x5d7c97
mov byte [ebp + 0x56], 0
jmp 0x5d7c9b
mov byte [ebp + 0x56], 1
test al, al
je 0x5d7cd0
mov ecx, 0x869630
call fcn.0049045d
cmp byte [0x869664], 0
je 0x5d7940
mov ecx, ebp
call fcn.005d7270
xor al, al
add esp, 0x120
pop ebp
pop edi
pop esi
pop ebx
ret
mov ecx, ebp
call fcn.005d5b40
test al, al
jne 0x5d7cf0
mov ecx, ebp
call fcn.005d7270
xor al, al
add esp, 0x120
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, dword [0x7e9cc8]
push eax
call dword [0x6f2658]
cmp eax, 0
mov dword [0x94b788], eax
jne 0x5d7d20
mov ecx, ebp
call fcn.005d7270
xor al, al
add esp, 0x120
pop ebp
pop edi
pop esi
pop ebx
ret
push 0xb44e0
call dword [0x6f2658]
cmp byte [0xa10b76], 0
mov dword [0x94b78c], eax
jne 0x5d7d80
mov eax, dword [0x978624]
mov ecx, dword [0x94b8f0]
push 0
push ecx
push eax
call fcn.00652e60
add esp, 0xc
test eax, eax
jne 0x5d7d80
mov eax, dword [0x7e9cc8]
mov edx, dword [0x978624]
push edx
push eax
mov eax, dword [0x94b788]
push 1
push eax
call fcn.00652ec0
add esp, 0x10
cmp eax, dword [0x7e9cc8]
jne 0x5d7d80
mov byte [0xa10978], 1
xor esi, esi
mov dword [0x978668], 0
mov byte [0xa10b9e], 0
mov dword [0x97866c], 0
mov byte [0xa10b9f], 0
mov dword [0x978670], 0
mov byte [0xa10ba0], 0
mov byte [0xa10b7b], 0x64
mov byte [0xa10b7c], 0x64
mov byte [0xa10ae1], 0x3f
mov byte [0xa10b7d], 0x64
mov byte [0xa10ae2], 0x3f
mov byte [0xa10ae3], 0x3f
nop
mov eax, dword [0x978550]
push eax
call dword [0x6f265c]
mov dword [esi*4 + 0x9b48c4], eax
mov eax, dword [esi*4 + 0x9b48c4]
test eax, eax
je 0x5d7e17
push eax
call dword [0x6f2660]
mov eax, dword [esi*4 + 0x9b48c4]
push 1
push 1
push eax
call dword [0x6f2664]
inc esi
cmp esi, 1
jb 0x5d7de0
xor ebx, ebx
mov byte [0xa10abc], 1
mov dword [esp + 8], 0x8167e8
jmp 0x5d7e69
mov eax, dword [esp + 8]
add eax, 4
push eax
call fcn.006424c0
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 0x5d7e63
push ebx
call fcn.005d8c30
pop ecx
jmp 0x5d7e71
add dword [esp + 8], 0x54
inc ebx
movzx eax, byte [ebp + 0x57]
cmp ebx, eax
jb 0x5d7e30
movzx eax, byte [ebp + 0x57]
cmp ebx, eax
jne 0x5d7e90
mov ecx, ebp
call fcn.005d7270
xor al, al
add esp, 0x120
pop ebp
pop edi
pop esi
pop ebx
ret
mov dword [0xa108b0], 0
mov dword [0x9753e0], 0
call fcn.005d8180
cmp dword [0xa108b0], 0
je 0x5d7fd0
mov ebp, dword [0x9753e0]
mov dword [0x94c104], 0
cmp ebp, 0
je 0x5d7ef1
mov eax, eax
lea eax, [eax]
mov eax, dword [0x94c104]
mov dword [ebp + 0x108], eax
mov eax, dword [ebp + 0x104]
add dword [0x94c104], eax
mov ebp, dword [ebp + 0x10c]
test ebp, ebp
jne 0x5d7ed0
push 0
call fcn.00661dd0
cmp eax, 0xffffffff
pop ecx
mov dword [esp + 0x11c], eax
je 0x5d7f20
lea eax, [esp + 0x11c]
push eax
call fcn.00661e80
xor bl, bl
pop ecx
mov dword [esp + 0xc], eax
jmp 0x5d7f22
mov bl, 1
test bl, bl
je 0x5d7f30
mov eax, dword [0x792c58]
jmp 0x5d7f3e
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
mov eax, dword [eax + 4]
imul eax, dword [ecx]
xor edx, edx
div dword [0xa108b0]
mov dword [0x97881c], edx
mov esi, dword [0x97881c]
mov ecx, dword [0x9753e0]
test esi, esi
mov eax, esi
jle 0x5d7f6b
mov eax, eax
dec eax
mov ecx, dword [ecx + 0x10c]
test eax, eax
jg 0x5d7f60
test bl, bl
je 0x5d7f84
xor edx, edx
mov eax, dword [0x792c54]
div dword [ecx + 0x104]
mov dword [0x978db0], edx
jmp 0x5d7fda
mov eax, dword [esp + 0xc]
mov edi, dword [eax]
test edi, edi
jle 0x5d7fb5
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 [0x978db0], edx
jmp 0x5d7fda
xor edx, edx
mov eax, dword [0x792c54]
div dword [ecx + 0x104]
mov dword [0x978db0], edx
jmp 0x5d7fda
mov dword [0x978db0], 0
mov al, 1
mov byte [0xa10b50], 0
add esp, 0x120
pop ebp
pop edi
pop esi
pop ebx
ret