Function at 0x459560
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x64
mov esi, dword [esp + 0x78]
movapd xmm0, xmmword [0x4f6200]
movupd xmmword [esp + 0x44], xmm0
lea eax, [esp + 0x44]
push eax
call dbg.ffDetectSound
add esp, 4
test eax, eax
je 0x4595aa
add esi, 0x20
push eax
push 0x4f6226
push 0
push esi
push 0
push str.Sound
call dbg.ffPrintError
add esp, 0x18
jmp 0x459c6e
mov ebx, dword [esp + 0x4c]
test ebx, ebx
jle 0x459ba7
mov ecx, dword [esp + 0x44]
lea esi, [ecx + 0x1c]
mov dword [esp + 0x18], 0
xor ebp, ebp
mov dword [esp + 4], 0
mov edi, ecx
jmp 0x459630
lea ebp, [ecx + ecx]
test ecx, ecx
mov eax, 0x10
cmove ebp, eax
lea eax, [ebp*4]
push eax
push dword [esp + 8]
call sym._realloc
mov ecx, dword [esp + 0x20]
add esp, 8
mov ebx, dword [esp + 0x4c]
mov dword [esp + 4], eax
mov dword [eax + ecx*4], edi
inc ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x44]
add edi, 0x1c
mov edx, esi
sub edx, ecx
sar edx, 2
imul edx, edx, 0xb6db6db7
add esi, 0x1c
cmp edx, ebx
jge 0x459664
mov eax, dword [esp + 0x78]
mov edx, dword [eax + 0x48]
cmp edx, 1
je 0x459650
test edx, edx
jne 0x459656
cmp byte [edi + 0x19], 0
jne 0x459656
jmp 0x459619
cmp byte [edi + 0x1a], 0
je 0x459619
mov ecx, dword [esp + 0x18]
cmp ecx, ebp
je 0x4595e0
mov eax, dword [esp + 4]
jmp 0x459609
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x459c3f
mov edi, dword [esp + 4]
jle 0x459bb2
mov ebp, dword [esp + 0x78]
lea eax, [ebp + 0x20]
mov dword [esp + 0x54], eax
lea eax, [ebp + 0x4c]
mov dword [esp + 0x40], eax
cmp ecx, 1
setne byte [esp + 0xf]
mov bl, 1
mov esi, edi
mov dword [esp + 4], edi
jmp 0x4596c9
mov ecx, dword [esp + 0x18]
movzx ebx, byte [esp + 3]
mov esi, ebp
mov edi, dword [esp + 4]
mov ebp, dword [esp + 0x78]
add bl, byte [esp + 0xf]
add esi, 4
mov eax, esi
sub eax, edi
sar eax, 2
cmp eax, ecx
jge 0x459bae
cmp ecx, 1
mov ecx, dword [esi]
movzx edx, bl
mov eax, 0
cmove edx, eax
cmp dword [ebp + 0x3c], 0
mov byte [esp + 3], bl
je 0x4597c0
mov ebp, esi
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov eax, dword [0x5052b0]
mov dword [esp + 0x60], eax
movzx eax, byte [ecx + 0x18]
cvtsi2sd xmm0, eax
sub esp, 0x14
mov eax, dword [esp + 0x54]
movzx eax, word [eax]
mov word [esp + 0xc], ax
movsd qword [esp + 4], xmm0
lea edi, [esp + 0x6c]
mov dword [esp], edi
mov dword [esp + 0x10], 0
mov esi, ecx
mov ebx, edx
call dbg.ffPercentAppendNum
add esp, 0x14
mov dword [esp + 0x1c], 0xb
lea eax, [esi + 0x19]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 7
lea eax, [esi + 0xc]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x38], esi
movzx eax, bl
lea ecx, [esp + 0x1c]
push ecx
push 4
push 0
push dword [esp + 0x60]
push eax
push str.Sound
call dbg.ffPrintFormat
add esp, 0x18
cmp dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
je 0x4596a0
mov dword [esp + 0x58], 0
push dword [esp + 0x60]
call sym._free
add esp, 4
jmp 0x4596a0
mov dword [esp + 8], ecx
mov dword [esp + 0x14], edx
movzx eax, dl
push 0
push dword [esp + 0x58]
push eax
push str.Sound
call dbg.ffPrintLogoAndKey
add esp, 0x10
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov eax, dword [0x5052b0]
mov dword [esp + 0x24], eax
movzx ecx, byte [0x5063e6]
xor edi, edi
mov byte [esp + 0x10], cl
test cl, 4
jne 0x45987a
mov edx, dword [esp + 8]
mov ebp, dword [edx + 0x10]
test ebp, ebp
je 0x45990f
mov ecx, dword [edx + 0x14]
mov ebx, 0
mov dword [esp + 0x3c], ecx
test ecx, ecx
mov ecx, dword [esp + 0x14]
je 0x459884
lea eax, [ebp + 1]
mov ecx, 0x20
nop word cs:[eax + eax]
mov edi, ecx
add ecx, ecx
cmp eax, edi
ja 0x459840
push edi
call sym._malloc
add esp, 4
mov ebx, eax
mov byte [eax], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], edi
push ebp
push dword [esp + 0x40]
push eax
call sym._memcpy
mov eax, ebx
add esp, 0xc
mov dword [esp + 0x20], ebp
mov byte [ebx + ebp], 0
mov ebx, ebp
jmp 0x45987c
xor ebx, ebx
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x14]
movzx edx, byte [edx + 0x18]
cmp dl, 0xff
je 0x4598ad
mov dh, byte [esp + 0x10]
test dh, 2
jne 0x4598bf
test dh, 1
jne 0x4599a0
test dh, 4
je 0x459a93
jmp 0x459b43
mov dh, byte [esp + 0x10]
test dh, 4
je 0x459a93
jmp 0x459b43
test ebx, ebx
je 0x459962
test edi, edi
je 0x4598d2
lea ecx, [ebx + 1]
cmp edi, ecx
jne 0x459946
test edi, edi
mov edx, edi
mov ecx, 0x20
cmove edx, ecx
lea ecx, [ebx + 2]
nop word cs:[eax + eax]
mov ebp, edx
add edx, edx
cmp ecx, ebp
ja 0x4598f0
test edi, edi
je 0x459916
push ebp
push eax
call sym._realloc
add esp, 8
mov ebx, dword [esp + 0x20]
lea ecx, [ebx + 1]
jmp 0x45993e
xor ebx, ebx
jmp 0x459880
push ebp
mov dword [esp + 0x14], eax
call sym._malloc
add esp, 4
mov dword [esp + 0x3c], eax
lea edi, [ebx + 1]
push edi
push dword [esp + 0x14]
push eax
call sym._memcpy
mov ecx, edi
add esp, 0xc
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ecx
mov byte [eax + ebx], 0x20
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov byte [ecx + eax], 0
mov eax, dword [esp + 8]
movzx edx, byte [eax + 0x18]
movzx eax, dl
cvtsi2sd xmm0, eax
sub esp, 0x10
mov eax, dword [esp + 0x50]
movzx eax, word [eax]
mov word [esp + 0xc], ax
lea eax, [esp + 0x2c]
mov dword [esp], eax
movsd qword [esp + 4], xmm0
call dbg.ffPercentAppendBar
add esp, 0x10
mov dh, byte [0x5063e6]
mov ecx, dword [esp + 0x14]
test dh, 1
je 0x45989f
mov edi, dword [esp + 0x20]
test edi, edi
je 0x4599f4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4599b7
lea ecx, [edi + 1]
cmp eax, ecx
jne 0x4599f8
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
lea edx, [edi + 2]
nop word [eax + eax]
mov ebp, ecx
add ecx, ecx
cmp edx, ebp
ja 0x4599d0
test eax, eax
je 0x4599fe
push ebp
push dword [esp + 0x28]
call sym._realloc
add esp, 8
mov ebx, eax
mov edi, dword [esp + 0x20]
lea ecx, [edi + 1]
jmp 0x459a22
xor eax, eax
jmp 0x459a46
mov ebx, dword [esp + 0x24]
jmp 0x459a2a
push ebp
call sym._malloc
add esp, 4
mov ebx, eax
lea eax, [edi + 1]
mov dword [esp + 0x10], eax
push eax
push dword [esp + 0x28]
push ebx
call sym._memcpy
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ecx
mov byte [ebx + edi], 0x20
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov byte [ecx + eax], 0
cmp dword [esp + 0x20], 0
setne al
mov ecx, dword [esp + 8]
movzx ecx, byte [ecx + 0x18]
xorps xmm0, xmm0
cvtsi2sd xmm0, ecx
sub esp, 0x14
mov ecx, dword [esp + 0x54]
movzx ecx, word [ecx]
mov word [esp + 0xc], cx
movzx eax, al
mov dword [esp + 0x10], eax
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x30]
mov dword [esp], eax
call dbg.ffPercentAppendNum
add esp, 0x14
mov dh, byte [0x5063e6]
mov ecx, dword [esp + 0x14]
test dh, 4
jne 0x459b43
test cl, cl
je 0x459b43
mov eax, dword [esp + 8]
cmp byte [eax + 0x19], 0
je 0x459b43
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
test eax, eax
je 0x459ac0
mov ecx, ebx
not ecx
add ecx, eax
cmp ecx, 4
jae 0x459af5
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
lea edx, [ebx + 5]
mov ebp, ecx
add ecx, ecx
cmp edx, ebp
ja 0x459ad0
test eax, eax
je 0x459afb
push ebp
push dword [esp + 0x28]
call sym._realloc
add esp, 8
mov edi, eax
mov dword [esp + 0x24], eax
mov ebx, dword [esp + 0x20]
jmp 0x459b24
mov edi, dword [esp + 0x24]
jmp 0x459b28
push ebp
call sym._malloc
add esp, 4
mov edi, eax
test ebx, ebx
je 0x459b1d
lea eax, [ebx + 1]
push eax
push dword [esp + 0x28]
push edi
call sym._memcpy
add esp, 0xc
jmp 0x459b20
mov byte [edi], 0
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ebp
mov dword [edi + ebx], 0x292a2820
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
lea edx, [eax + 4]
mov dword [esp + 0x20], edx
mov byte [ecx + eax + 4], 0
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov edi, eax
push eax
push dword [esp + 0x24]
push 1
push dword [esp + 0x30]
call sym._fwrite
add esp, 0x10
push edi
push 0xa
call sym._fputc
add esp, 8
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
je 0x459b91
mov dword [esp + 0x1c], 0
push dword [esp + 0x24]
call sym._free
add esp, 4
mov edi, dword [esp + 4]
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x78]
movzx ebx, byte [esp + 3]
jmp 0x4596b3
xor edi, edi
jmp 0x459c43
mov ebx, dword [esp + 0x4c]
test ebx, ebx
jle 0x459c61
mov esi, dword [esp + 0x44]
lea edi, [esi + 0x1c]
add esi, 0x14
jmp 0x459bed
mov dword [esi], eax
mov eax, edi
sub eax, dword [esp + 0x44]
sar eax, 2
imul eax, eax, 0xb6db6db7
add edi, 0x1c
add esi, 0x1c
cmp eax, dword [esp + 0x4c]
jge 0x459c39
cmp dword [esi - 0x14], 0
mov dword [esi - 0x10], 0
je 0x459c0c
mov dword [esi - 0x14], 0
push dword [esi - 0xc]
call sym._free
add esp, 4
mov eax, dword [0x5052b0]
mov dword [esi - 0xc], eax
cmp dword [esi - 8], 0
mov dword [esi - 4], 0
je 0x459bd0
mov dword [esi - 8], 0
push dword [esi]
call sym._free
add esp, 4
mov eax, dword [0x5052b0]
jmp 0x459bd0
mov edi, dword [esp + 4]
jmp 0x459c61
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x78]
add eax, 0x20
push str.No_active_sound_devices_found
push 0
push eax
push 0
push str.Sound
call dbg.ffPrintError
add esp, 0x14
test edi, edi
je 0x459c6e
push edi
call sym._free
add esp, 4
mov eax, dword [esp + 0x44]
test eax, eax
je 0x459c8f
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
push eax
call sym._free
add esp, 4
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret