Function at 0x4f77c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x64e2c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x7c], eax
test edi, edi
je 0x4f781d
cmp word [edi], 1
jne 0x4f7806
movzx eax, word [edi + 2]
test ax, ax
je 0x4f7806
cmp eax, 0x40
ja 0x4f7806
mov eax, dword [edi + 4]
cmp eax, 0x3e8
jb 0x4f7806
cmp eax, 0x30d40
jbe 0x4f781d
pop edi
mov eax, 0x80070032
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b26e6
mov esp, ebp
pop ebp
ret 8
mov dword [esi + 0x14], 0
xorps xmm0, xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
movups xmmword [esi + 0x28], xmm0
mov dword [esi + 0x38], 0
mov word [esi + 0x3c], 0
mov ecx, dword [esi]
test ecx, ecx
je 0x4f7858
mov dword [esi], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push 1
push 0
push esi
call dword [sym.imp.XAudio2_9.dll_Ordinal_1]
test eax, eax
js 0x4f7c31
test dword [esi + 0x40], 0x10000
je 0x4f789d
mov eax, dword [esi]
lea edx, [ebp - 0x1c]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 3
push 0
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0x18], 1
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x30]
mov ecx, dword [esi]
lea eax, [esi + 0x94]
push ebx
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0xc]
mov ebx, eax
test ebx, ebx
js 0x4f78e2
test edi, edi
je 0x4f78c0
mov edx, dword [edi + 4]
movzx ebx, word [edi + 2]
jmp 0x4f78c4
xor edx, edx
xor ebx, ebx
push dword [esi + 0x44]
mov ecx, dword [esi]
lea edi, [esi + 4]
push 0
push dword [ebp - 0x7c]
mov eax, dword [ecx]
push 0
push edx
push ebx
push edi
push ecx
call dword [eax + 0x1c]
mov ebx, eax
test ebx, ebx
jns 0x4f790d
mov edx, dword [esi]
test edx, edx
je 0x4f7b71
mov dword [esi], 0
mov ecx, dword [edx]
push edx
call dword [ecx + 8]
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b26e6
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi]
lea edx, [ebp - 0x20]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov ebx, eax
test ebx, ebx
js 0x4f7964
mov eax, dword [edi]
lea edx, [ebp - 0x38]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx]
movss xmm0, dword [esi + 0x24]
ucomiss xmm0, dword [0x5eeaf4]
mov eax, dword [ebp - 0x20]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x14], eax
lahf
test ah, 0x44
jnp 0x4f797f
mov eax, dword [edi]
push 0
mov ecx, dword [eax]
push ecx
movss dword [esp], xmm0
push eax
call dword [ecx + 0x30]
mov ebx, eax
test ebx, ebx
jns 0x4f797f
mov edx, dword [edi]
test edx, edx
je 0x4f7b5f
mov ecx, dword [edx]
push edx
call dword [ecx + 0x48]
mov dword [edi], 0
jmp 0x4f7b5f
test byte [esi + 0x40], 4
je 0x4f7a26
push 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 6
push eax
lea ecx, [esi + 0x4c]
mov dword [ebp - 0x24], 0x3e8
call fcn.004f7780
push eax
push 0x6027c0
call sub.XAudio2_9.dll_Ordinal_4
add esp, 0x10
mov dword [ebp - 0x7c], eax
test eax, eax
jns 0x4f79d6
mov edx, dword [edi]
test edx, edx
je 0x4f7ad8
mov ecx, dword [edx]
push edx
call dword [ecx + 0x48]
mov dword [esi + 4], 0
jmp 0x4f7ad8
mov eax, dword [esi + 0x10]
lea edx, [ebp - 0x78]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x4c]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x74], eax
mov eax, dword [edi]
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x78], 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x7c], eax
test eax, eax
jns 0x4f7a26
mov edi, dword [esi + 4]
test edi, edi
je 0x4f7ad0
mov edx, dword [edi]
push edi
call dword [edx + 0x48]
mov dword [esi + 4], 0
jmp 0x4f7ad0
test byte [esi + 0x40], 1
je 0x4f7b86
lea ecx, [esi + 0x48]
call fcn.004f7780
push eax
call sub.XAudio2_9.dll_Ordinal_2
mov edi, eax
test edi, edi
jns 0x4f7a61
mov edx, dword [esi + 4]
test edx, edx
je 0x4f7bd4
mov ecx, dword [edx]
push edx
call dword [ecx + 0x48]
mov dword [esi + 4], 0
jmp 0x4f7bd4
mov eax, dword [esi + 0x48]
lea ebx, [ebp - 0x78]
mov edx, dword [esi]
lea edi, [esi + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x74], eax
mov eax, dword [esi + 0x40]
push ebx
and eax, 2
mov dword [ebp - 0xc], 1
push 0
neg eax
mov dword [ebp - 8], 1
push 0
sbb eax, eax
mov dword [ebp - 0x78], 1
and eax, 8
mov byte [esi + 0x3d], 1
mov ecx, dword [edx]
push eax
push dword [esi + 0x14]
push 1
push edi
push edx
call dword [ecx + 0x18]
mov dword [ebp - 0x7c], eax
test eax, eax
jns 0x4f7b00
mov edi, dword [esi + 4]
test edi, edi
je 0x4f7ac8
mov edx, dword [edi]
push edi
call dword [edx + 0x48]
mov dword [esi + 4], 0
lea ecx, [esi + 0x48]
call fcn.004f77a0
lea ecx, [esi + 0x4c]
call fcn.004f77a0
mov ecx, dword [esi]
test ecx, ecx
je 0x4f7aea
mov dword [esi], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x7c]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b26e6
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x70]
push eax
push 0x602194
call fcn.004f7c50
mov eax, dword [edi]
lea edx, [ebp - 0x70]
add esp, 8
mov ecx, dword [eax]
push 0
push 0x38
push edx
push 0
push eax
call dword [ecx + 0x18]
mov ebx, eax
test ebx, ebx
jns 0x4f7b86
mov edx, dword [edi]
test edx, edx
je 0x4f7b3b
mov ecx, dword [edx]
push edx
call dword [ecx + 0x48]
mov dword [edi], 0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4f7b4f
mov eax, dword [ecx]
push ecx
call dword [eax + 0x48]
mov dword [esi + 4], 0
lea ecx, [esi + 0x48]
call fcn.004f77a0
lea ecx, [esi + 0x4c]
call fcn.004f77a0
mov ecx, dword [esi]
test ecx, ecx
je 0x4f7b71
mov dword [esi], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b26e6
mov esp, ebp
pop ebp
ret 8
lea eax, [esi + 0x28]
push eax
push ecx
mov dword [esp], 0x43abc000
push dword [esi + 0xc]
call dword [sym.imp.XAudio2_9.dll_Ordinal_6]
mov edi, eax
add esp, 0xc
test edi, edi
jns 0x4f7c03
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4f7bb8
mov eax, dword [ecx]
push ecx
call dword [eax + 0x48]
mov dword [esi + 8], 0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4f7bcc
mov eax, dword [ecx]
push ecx
call dword [eax + 0x48]
mov dword [esi + 4], 0
lea ecx, [esi + 0x48]
call fcn.004f77a0
lea ecx, [esi + 0x4c]
call fcn.004f77a0
mov ecx, dword [esi]
test ecx, ecx
je 0x4f7bee
mov dword [esi], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b26e6
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x78]
mov eax, dword [eax]
mov dword [ebp - 0x7c], eax
cmp byte [eax + 0xd], 0
jne 0x4f7c2e
mov eax, dword [eax + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
add esp, 4
lea ecx, [ebp - 0x7c]
call fcn.0042ff00
mov eax, dword [ebp - 0x7c]
cmp byte [eax + 0xd], 0
je 0x4f7c11
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005b26e6
mov esp, ebp
pop ebp
ret 8