Function at 0x42a18f
Capabilities:
Get file system object information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [0x457694]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
mov edi, dword [sym.imp.WINMM.dll_mixerGetID]
mov ebx, ecx
lea ecx, [ebp - 0x15c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ecx
push eax
call edi
test eax, eax
je 0x42a084
cmp eax, 6
jne 0x42a273
cmp dword [ebp + 0x10], 0x20000000
jne 0x42a084
call dword [sym.imp.WINMM.dll_mixerGetNumDevs]
mov dword [ebp - 0x158], eax
call dword [sym.imp.WINMM.dll_waveInGetNumDevs]
cmp dword [ebp - 0x158], 1
mov dword [ebp - 0x164], eax
jne 0x42a273
and dword [ebp - 0x15c], 0
and dword [ebp - 0x158], 0
test eax, eax
jbe 0x42a084
push 0x20000000
lea eax, [ebp - 0x160]
push eax
push dword [ebp - 0x158]
call edi
test eax, eax
jne 0x42a070
mov eax, dword [ebp - 0x160]
cmp eax, dword [ebp - 0x15c]
je 0x42a273
inc dword [ebp - 0x158]
mov eax, dword [ebp - 0x158]
cmp eax, dword [ebp - 0x164]
jb 0x42a046
mov eax, esi
neg eax
sbb eax, eax
and eax, 0x10000
push eax
push 0
push esi
push dword [ebp - 0x15c]
push ebx
call dword [sym.imp.WINMM.dll_mixerOpen]
test eax, eax
jne 0x42a273
push 0x30
lea eax, [ebx + 4]
push eax
push dword [ebp - 0x15c]
call dword [sym.imp.WINMM.dll_mixerGetDevCapsA]
test eax, eax
jne 0x42a26b
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x42a26b
xor esi, esi
test eax, eax
mov dword [ebp - 0x158], esi
jbe 0x42a266
push 0x2a
pop ecx
xor eax, eax
lea edi, [ebp - 0xac]
rep stosd dword es:[edi], eax
push 0x80000000
lea eax, [ebp - 0xac]
push eax
push dword [ebx]
mov dword [ebp - 0xac], 0xa8
mov dword [ebp - 0xa8], esi
call dword [sym.imp.WINMM.dll_mixerGetLineInfoA]
test eax, eax
jne 0x42a136
cmp dword [ebp + 0x10], 0x10000000
jne 0x42a124
cmp dword [ebp - 0x94], 4
je 0x42a147
cmp dword [ebp + 0x10], 0x20000000
jne 0x42a136
cmp dword [ebp - 0x94], 7
je 0x42a147
inc esi
cmp esi, dword [ebx + 0x30]
mov dword [ebp - 0x158], esi
jb 0x42a0dd
jmp 0x42a266
test byte [ebp - 0x9b], 0x80
mov eax, dword [ebp - 0x90]
mov dword [ebx + 0x34], eax
jne 0x42a266
mov edx, dword [ebx]
push 0x50030001
push dword [ebp - 0xa0]
lea esi, [ebx + 0x3c]
call fcn.00429ed5
neg eax
sbb eax, eax
inc eax
mov dword [ebx + 0x38], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebx + 0x40], eax
mov eax, dword [ebp - 0x94]
mov dword [ebx + 0x44], eax
mov eax, dword [ebp - 0x8c]
xor esi, esi
test eax, eax
mov dword [ebx + 0x48], eax
jbe 0x42a266
push 0x2a
pop ecx
xor eax, eax
lea edi, [ebp - 0x154]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x150], eax
push 0x80000001
lea eax, [ebp - 0x154]
push eax
push dword [ebx]
mov dword [ebp - 0x154], 0xa8
mov dword [ebp - 0x14c], esi
call dword [sym.imp.WINMM.dll_mixerGetLineInfoA]
test eax, eax
jne 0x42a20a
cmp dword [ebp - 0x94], 4
jne 0x42a1f5
cmp dword [ebp - 0x13c], 0x1008
je 0x42a215
cmp dword [ebp - 0x94], 7
jne 0x42a20a
cmp dword [ebp - 0x13c], 0x1003
je 0x42a215
inc esi
cmp esi, dword [ebp - 0x8c]
jb 0x42a19f
jmp 0x42a266
mov eax, dword [ebp - 0x138]
mov edx, dword [ebx]
push 0x50030001
push dword [ebp - 0x148]
lea esi, [ebx + 0x60]
mov dword [ebx + 0x58], eax
call fcn.00429ed5
neg eax
sbb eax, eax
inc eax
mov dword [ebx + 0x5c], eax
mov eax, dword [ebp - 0x148]
mov dword [ebx + 0x64], eax
mov eax, dword [ebp - 0x13c]
mov dword [ebx + 0x68], eax
mov eax, dword [ebp - 0x134]
mov dword [ebx + 0x6c], eax
mov eax, dword [ebp - 0x130]
mov ecx, ebx
mov dword [ebx + 0x70], eax
call fcn.00429cb8
xor eax, eax
inc eax
jmp 0x42a275
push dword [ebx]
call dword [sym.imp.WINMM.dll_mixerClose]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0044ed62
leave
ret 0xc