Function at 0x40b600
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x41e404]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x104]
push edi
call fcn.004035d0
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
push esi
push edi
call fcn.00409190
add esp, 0xc
test al, al
je 0x40b80d
cmp dword [ebp - 0xb0], 0x10
lea eax, [ebp - 0xc4]
cmovae eax, dword [ebp - 0xc4]
push eax
call dword [sym.imp.whisper.dll_whisper_lang_id]
add esp, 4
cmp eax, 0xffffffff
jne 0x40b69d
lea ecx, [ebp - 0xc4]
call fcn.004051d0
push eax
push str.error:_unknown_language__s_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.0040bb80
lea eax, [ebp - 0x104]
push eax
push esi
push edi
call fcn.0040b0f0
add esp, 0x18
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
cmp dword [ebp - 0x98], 0x10
lea eax, [ebp - 0xac]
push dword [ebp - 0xc7]
cmovae eax, dword [ebp - 0xac]
push eax
call dword [sym.imp.whisper.dll_whisper_init_from_file_with_params]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 8
mov edi, eax
push 0x418684
push 2
call esi
add esp, 4
push eax
call fcn.0040bb80
push edi
call dword [sym.imp.whisper.dll_whisper_is_multilingual]
add esp, 0xc
test eax, eax
jne 0x40b753
cmp dword [ebp - 0xb0], 0x10
lea eax, [ebp - 0xc4]
push 2
cmovae eax, dword [ebp - 0xc4]
push 0x419200
push dword [ebp - 0xb4]
push eax
call fcn.004029b0
add esp, 0x10
test al, al
je 0x40b720
cmp byte [ebp - 0xcb], 0
je 0x40b753
push 2
push 0x419200
lea ecx, [ebp - 0xc4]
call fcn.004050e0
push str.SDL_main
push str._s:_WARNING:_model_is_not_multilingual__ignoring_language_and_translation_options_n
push 2
mov byte [ebp - 0xcb], 0
call esi
add esp, 4
push eax
call fcn.0040bb80
add esp, 0xc
cmp dword [ebp - 0xb0], 0x10
lea ecx, [ebp - 0xc4]
mov edx, str.transcribe
cmovae ecx, dword [ebp - 0xc4]
xor eax, eax
cmp byte [ebp - 0xc8], al
sete al
cmp byte [ebp - 0xcb], 0
push eax
mov eax, str.translate
cmove eax, edx
push eax
push ecx
push dword [ebp - 0x104]
push str.SDL_main
push str._s:_processing___d_threads__lang___s__task___s__timestamps___d_..._n
push 2
call esi
add esp, 4
push eax
call fcn.0040bb80
add esp, 0x1c
push 0x418684
push 2
call esi
add esp, 4
push eax
call fcn.0040bb80
add esp, 8
lea ecx, [ebp - 0x17c]
push 0x7530
call fcn.00415270
push 0x3e80
push dword [ebp - 0xf8]
lea ecx, [ebp - 0x17c]
call fcn.00415710
test al, al
jne 0x40b82d
push str.SDL_main
push str._s:_audio.init___failed__n
push 2
call esi
add esp, 4
push eax
call fcn.0040bb80
add esp, 0xc
lea ecx, [ebp - 0x17c]
call fcn.004152f0
lea ecx, [ebp - 0x104]
call fcn.00403c60
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415c7d
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x17c]
call fcn.004159f0
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0x3e8
push eax
mov dword [ebp - 0x108], 0
call fcn.00402d30
add esp, 4
lea ecx, [ebp - 0x17c]
call fcn.004154b0
cmp dword [ebp - 0x24], 0
je 0x40bac1
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
push ebx
cmovae eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x1c]
push eax
call fcn.004032a0
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
push 1
cmovae eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x234]
push 0x40
push 1
push eax
call fcn.004030e0
mov eax, dword [ebp - 0x234]
lea ecx, [ebp - 0x234]
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::good_void_const]
lea ecx, [ebp - 0x234]
mov bl, al
call fcn.00404020
lea ecx, [ebp - 0x1c]
call fcn.00403880
test bl, bl
lea eax, [ebp - 0x34]
pop ebx
je 0x40ba34
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x234]
push 1
cmovae eax, dword [ebp - 0x34]
push 0x40
push 1
push eax
call fcn.004030e0
mov eax, dword [ebp - 0x234]
lea ecx, [ebp - 0x234]
mov word [ebp - 0x110], 1
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_streambuf_char__struct_std::char_traits_char______thiscall_std::basic_ios_char__struct_std::char_traits_char__::rdbuf_void_const]
mov ecx, eax
mov byte [ebp - 0x107], 0
test ecx, ecx
mov dword [ebp - 0xc], 0
vpxor xmm0, xmm0, xmm0
sete byte [ebp - 0x108]
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], ecx
push eax
vmovdqu xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 0x114], 0
call fcn.00401200
add esp, 8
test al, al
je 0x40b989
mov ecx, 0xf
mov byte [ebp - 0x1c], 0
mov dword [ebp - 8], ecx
jmp 0x40b9ae
push 0
push dword [ebp - 0x110]
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x114]
push dword [ebp - 0x108]
push dword [ebp - 0x10c]
call fcn.00401470
mov ecx, dword [ebp - 8]
cmp ecx, 0x10
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.00413a70
add esp, 8
lea ecx, [ebp - 0xe0]
push eax
call fcn.00403ef0
lea ecx, [ebp - 0x128]
call fcn.00403bd0
mov ecx, dword [ebp - 8]
cmp ecx, 0x10
jb 0x40ba15
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ba0b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40ba0b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00415c6f
add esp, 8
lea ecx, [ebp - 0x234]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
call fcn.00404020
jmp 0x40ba63
cmp dword [ebp - 0x20], 0x10
cmovae eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.00413a70
add esp, 8
lea ecx, [ebp - 0xe0]
push eax
call fcn.00403ef0
lea ecx, [ebp - 0x128]
call fcn.00403bd0
mov eax, dword [ebp - 0xd8]
cmp eax, dword [ebp - 0xd4]
jne 0x40ba7b
mov esi, 1
jmp 0x40bb20
push str.SDL_main
push str._s:_grammar:_n
push 2
call esi
add esp, 4
push eax
call fcn.0040bb80
add esp, 0xc
lea eax, [ebp - 0xe0]
push eax
push 2
call esi
add esp, 4
push eax
call fcn.00414950
add esp, 8
push 0x418684
push 2
call esi
add esp, 4
push eax
call fcn.0040bb80
add esp, 8
cmp dword [ebp - 0x6c], 0
je 0x40badd
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x17c]
push eax
push edi
call fcn.00405ed0
jmp 0x40bb1b
cmp dword [ebp - 0x54], 0
je 0x40bb07
mov eax, dword [ebp - 0xd8]
cmp eax, dword [ebp - 0xd4]
jne 0x40bb07
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x17c]
push eax
push edi
call fcn.00404700
jmp 0x40bb1b
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x17c]
push eax
push edi
call fcn.004071e0
add esp, 0xc
mov esi, eax
lea ecx, [ebp - 0x17c]
call fcn.00415980
push edi
call dword [sym.imp.whisper.dll_whisper_print_timings]
push edi
call dword [sym.imp.whisper.dll_whisper_free]
add esp, 8
lea ecx, [ebp - 0x17c]
call fcn.004152f0
lea ecx, [ebp - 0x104]
call fcn.00403c60
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00415c7d
mov esp, ebp
pop ebp
ret