Function at 0x4e70c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x598f99
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6a3b20]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x18], ebp
mov esi, dword [ecx + 0xc]
mov edi, dword [esp + 0x44]
push edi
lea ecx, [esi + 0x40]
call fcn.004e3670
push edi
test al, al
je 0x4e7112
mov esi, dword [esp + 0x44]
mov ecx, esi
call fcn.004e4110
jmp 0x4e737d
lea ecx, [esi + 0x44]
call fcn.004e4150
mov ecx, dword [esi + 0x74]
cmp ecx, ebp
jne 0x4e715c
lea ecx, [esp + 0x44]
call fcn.004e4080
push eax
lea ecx, [esi + 0x40]
mov dword [esp + 0x3c], 1
call fcn.004e4150
lea ecx, [esp + 0x44]
mov byte [esp + 0x38], 0
call fcn.004e4130
mov dword [esi + 0x70], ebp
mov esi, dword [esp + 0x40]
mov ecx, esi
call fcn.004e4080
jmp 0x4e737d
mov eax, dword [ecx]
mov edx, dword [eax + 0x50]
push edi
call edx
push edi
test al, al
je 0x4e71a3
lea ecx, [esi + 0x40]
call fcn.004e4150
fld qword [esi + 0x30]
lea eax, [esi + 0x2c]
push eax
sub esp, 8
lea ecx, [esi + 0x40]
fstp qword [esp]
call fcn.004e3850
push eax
call fcn.004e6f70
mov dword [esi + 0x70], eax
mov esi, dword [esp + 0x50]
add esp, 0x10
push edi
mov ecx, esi
call fcn.004e4110
jmp 0x4e737d
lea ecx, [esp + 0x18]
call fcn.004e4110
mov ecx, dword [esi + 0x74]
mov ebp, dword [ecx]
mov ecx, edi
mov dword [esp + 0x38], 2
call fcn.004e37a0
mov ecx, dword [esi + 0x74]
mov edx, dword [ebp + 0x48]
push eax
call edx
test al, al
jne 0x4e71d8
push 3
lea ecx, [esp + 0x18]
call fcn.004e4690
lea ecx, [esp + 0x14]
call fcn.004e39f0
mov ecx, dword [esi + 0x74]
cmp eax, 1
mov eax, dword [ecx]
mov eax, dword [eax + 0x50]
lea edx, [esp + 0x14]
push edx
sete byte [esp + 0x48]
call eax
test al, al
jne 0x4e7329
mov ecx, dword [esi + 0x74]
mov edi, dword [ecx]
lea ecx, [esp + 0x14]
call fcn.004e3850
mov ecx, dword [esi + 0x74]
mov edx, dword [edi + 0x4c]
push eax
call edx
test al, al
jne 0x4e7329
lea ecx, [esp + 0x14]
call fcn.004e3770
lea ecx, [esp + 0x14]
test al, al
je 0x4e7253
call fcn.004e3850
mov ecx, eax
shr ecx, 0xf
test cl, 1
je 0x4e7244
xor eax, 0x8000
push eax
lea ecx, [esp + 0x18]
call fcn.004e4760
jmp 0x4e72e0
call fcn.004e3750
lea ecx, [esp + 0x14]
test al, al
je 0x4e7279
call fcn.004e39f0
lea ecx, [esp + 0x14]
cmp eax, 8
jne 0x4e7275
push 0x2004
jmp 0x4e72b3
push 4
jmp 0x4e72b3
call fcn.004e39f0
cmp eax, 2
push 0
lea ecx, [esp + 0x18]
sete bl
call fcn.004e3760
or al, bl
movzx edx, al
push edx
push 0
lea ecx, [esp + 0x20]
call fcn.004e39f0
cdq
sub eax, edx
sar eax, 1
push eax
call fcn.004e32a0
add esp, 0x10
push eax
lea ecx, [esp + 0x18]
call fcn.004e4760
lea ecx, [esp + 0x14]
call fcn.004e39f0
cmp eax, 1
jge 0x4e72e0
cmp byte [esp + 0x44], 0
je 0x4e72f9
push 0x2004
lea ecx, [esp + 0x18]
call fcn.004e4760
mov byte [esp + 0x44], 0
mov ecx, dword [esi + 0x74]
mov eax, dword [ecx]
mov eax, dword [eax + 0x50]
lea edx, [esp + 0x14]
push edx
call eax
test al, al
je 0x4e7200
jmp 0x4e7329
push str.default
push str.class_FAV::AudioFormat___thiscall_FAV::AudioOutput::setAudioFormat_const_class_FAV::AudioFormat__
push 0x1e9
push str..._favAudioOutput.cpp
lea ecx, [esp + 0x2c]
call dword [0x5a7720]
lea ecx, [esp + 0x1c]
push 0x5ba3c0
push ecx
call fcn.0051b280
add esp, 8
lea edx, [esp + 0x14]
push edx
lea ecx, [esi + 0x40]
call fcn.004e4150
fld qword [esi + 0x30]
lea eax, [esi + 0x2c]
push eax
sub esp, 8
lea ecx, [esi + 0x40]
fstp qword [esp]
call fcn.004e3850
push eax
call fcn.004e6f70
add esp, 0x10
mov dword [esi + 0x70], eax
mov esi, dword [esp + 0x40]
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.004e4110
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], 1
mov byte [esp + 0x38], 0
call fcn.004e4130
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8