Function at 0x61f9c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x7302b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebp
push esi
push edi
push 0xffff8105
call fcn.00595a40
xor ecx, ecx
mov cx, word [0x7d7b60]
add esp, 4
push ecx
mov ecx, eax
call fcn.00582de0
lea ecx, [esp + 0xc]
mov ebp, eax
call fcn.0047e1e0
mov edi, dword [esp + 0x30]
mov dword [esp + 0x28], 0
xor esi, esi
mov edx, dword [0x7c67e0]
mov ecx, dword [edx]
push esi
call fcn.004ba570
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x61fa2b
test edi, edi
je 0x61fa3d
cmp ecx, 1
jne 0x61fa34
cmp edi, ecx
je 0x61fa3d
cmp ecx, 2
jne 0x61fa47
cmp edi, ecx
jne 0x61fa47
push eax
lea ecx, [esp + 0x10]
call fcn.0047e360
inc esi
cmp esi, 0x1b
jl 0x61fa12
push 0
push 0xffff80b4
mov ecx, ebp
call fcn.00588980
mov esi, eax
mov ecx, dword [esi + 0x104]
mov eax, 0x168
cmp ecx, eax
je 0x61fa70
mov byte [esi + 0x79], 1
push eax
mov ecx, esi
mov dword [esi + 0x104], eax
call fcn.00581130
push 0x10
mov eax, 0xffff80cc
push eax
push 0xffff8059
mov ecx, esi
call fcn.00581f30
push 2
mov dword [esp + 0x34], 0x3f000000
mov eax, dword [esp + 0x34]
push eax
push 0xffff8055
mov ecx, esi
call fcn.00581f30
push 2
mov dword [esp + 0x34], 0x3f000000
mov ecx, dword [esp + 0x34]
push ecx
push 0xffff8054
mov ecx, esi
call fcn.00581f30
push 1
mov ecx, esi
call fcn.00581400
mov eax, edi
sub eax, 0
mov ebp, 0x3f800000
mov dword [esi + 0x11c], ebp
je 0x61faf9
dec eax
je 0x61faf1
dec eax
jne 0x61fb27
push 0
push 0
push 0xf
jmp 0x61faff
push 0
push 0
push 0xe
jmp 0x61faff
push 0
push 0
push 0xd
mov ecx, dword [0x7c67dc]
call fcn.0040f930
push eax
push 0xffff80b4
mov ecx, esi
call fcn.00588be0
test eax, eax
je 0x61fb27
push 0xffff80e9
mov ecx, eax
call fcn.0057f5b0
push 0
push 0xffff80b4
mov ecx, esi
call fcn.00588980
mov esi, eax
push 0x10
mov eax, 0xffff80cb
push eax
push 0xffff8059
mov ecx, esi
call fcn.00581f30
mov ecx, dword [esi + 0x104]
mov eax, 0x15c
cmp ecx, eax
je 0x61fb5e
mov byte [esi + 0x79], 1
push eax
mov ecx, esi
mov dword [esi + 0x104], eax
call fcn.00581130
push 2
mov dword [esp + 0x34], 0
mov edx, dword [esp + 0x34]
push edx
push 0xffff8055
mov ecx, esi
mov dword [esi + 0xb4], 6
call fcn.00581f30
push 2
mov dword [esp + 0x34], 0x3f000000
mov eax, dword [esp + 0x34]
push eax
push 0xffff8054
mov ecx, esi
call fcn.00581f30
push 1
mov ecx, esi
call fcn.00581400
push 0
push 0xffff80b4
mov ecx, esi
mov dword [esi + 0x11c], ebp
call fcn.00588980
mov edi, eax
mov eax, dword [edi + 0x104]
mov ebp, 0xa4
cmp eax, ebp
je 0x61fbde
mov byte [edi + 0x79], 1
push ebp
mov ecx, edi
mov dword [edi + 0x104], ebp
call fcn.00581130
push 2
mov dword [esp + 0x34], 0x3f000000
mov ecx, dword [esp + 0x34]
push ecx
push 0xffff8054
mov ecx, edi
call fcn.00581f30
push 2
mov dword [esp + 0x34], 0
mov edx, dword [esp + 0x34]
push edx
push 0xffff8055
mov ecx, edi
call fcn.00581f30
push 0x10
mov eax, 0xffff80bd
push eax
push 0xffff8061
mov ecx, edi
mov dword [edi + 0xb4], 0
mov dword [edi + 0xbc], 0xa
mov dword [edi + 0xc8], 0
call fcn.00581f30
push 0x10
mov eax, 0xffff80cc
push eax
push 0xffff8059
mov ecx, edi
call fcn.00581f30
push 1
mov ecx, edi
call fcn.00581400
push 0
push 0xffff80b4
mov ecx, esi
mov dword [edi + 0x11c], 0x3f800000
call fcn.00588980
mov esi, eax
cmp dword [esi + 0x104], ebp
je 0x61fc97
mov byte [esi + 0x79], 1
push ebp
mov ecx, esi
mov dword [esi + 0x104], ebp
call fcn.00581130
push 0x10
mov eax, 0xffff80bd
push eax
xor ebp, ebp
push 0xffff8061
mov ecx, esi
mov dword [esi + 0xb4], ebp
mov dword [esi + 0xb8], 0xa
mov dword [esi + 0xc8], ebp
call fcn.00581f30
push 2
mov dword [esp + 0x34], 0x3f000000
mov eax, dword [esp + 0x34]
push eax
push 0xffff8054
mov ecx, esi
call fcn.00581f30
push 2
mov ecx, ebp
push ecx
push 0xffff8055
mov ecx, esi
mov dword [esp + 0x3c], ebp
call fcn.00581f30
push 0x10
mov eax, 0xffff80cc
push eax
push 0xffff8059
mov ecx, esi
call fcn.00581f30
push 1
mov ecx, esi
call fcn.00581400
lea ecx, [esp + 0xc]
mov dword [esi + 0x11c], 0x3f800000
call fcn.0047e710
test eax, eax
je 0x61fd97
mov eax, dword [eax + 8]
mov edx, ebp
and edx, reloc.DSOUND.dll_DirectSoundCreate
jns 0x61fd47
dec edx
or edx, 0xfffffffe
inc edx
mov eax, dword [eax + 0x10]
push 0
push 0
jne 0x61fd6b
mov ecx, dword [0x7c67dc]
add eax, 0x380
push eax
call fcn.0040f930
push eax
push 0xffff80b4
mov ecx, edi
jmp 0x61fd84
mov ecx, dword [0x7c67dc]
add eax, 0x380
push eax
call fcn.0040f930
push eax
push 0xffff80b4
mov ecx, esi
call fcn.00588be0
lea ecx, [esp + 0xc]
inc ebp
call fcn.0047e720
test eax, eax
jne 0x61fd35
call fcn.00595dc0
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.0047e280
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov al, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x20
ret