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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov esi, dword [ebp + 0xc]
call dbg.__main
mov dword [esp + 0x38], 0
lea eax, [esp + 0x38]
mov dword [esp], eax
call sym.get_wchar_commandline_wchar_t_
test eax, eax
je 0x49776f
mov edx, dword [esp + 0x38]
mov dword [esp + 0x2c], edx
test edx, edx
je 0x49776f
mov dword [esp], 2
mov ebx, dword [dbg.__acrt_iob_func]
mov dword [esp + 0x20], ebx
call ebx
mov dword [esp + 8], str.5.2.3__2024_04_14
mov dword [esp + 4], str._n_hmp3_MPEG_Layer_III_audio_encoder__s_n_Utilizing_the_Helix_MP3_encoder__Copyright_1995_2005_RealNetworks__Inc._n_n_With_contributions_from_HydrogenAudio_members._n_n_Usage:__hmp3__input___output___options__n___________input__and_or__output__can_be______which_means_stdin_stdout._n_n_Example:_n_________hmp3_input.wav_output.mp3_n_n_Options:_n____________Nnsbstereo__Sfilter_select__Aalgor_select_n____________C__X__O_n____________D__IL__Qquick__Ffreq_limit__Ucpu_select__TXtest1_n____________SBTshort_block_threshold__EC_n____________h__detailed_help__n_n
mov dword [esp], eax
call sym.fprintf__iobuf__char_const__..._
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x44], 0xac44
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x50], 0x5dc0
mov dword [esp + 0x5c], 1
mov dword [esp + 0x60], 1
mov dword [esp + 0x58], 3
xor ecx, ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], 1
mov dword [esp + 0x6c], 0x32
mov dword [esp + 0x70], 0xa0
mov dword [esp + 0x78], 0x5dc0
mov dword [esp + 0x7c], 0x5dc0
mov dword [esp + 0x80], 0xffffffff
xor edi, edi
mov dword [esp + 0x74], edi
mov dword [esp + 0xd8], edi
mov dword [esp + 0xdc], 0xffffffff
mov dword [esp + 0xe0], 0xffffffff
xor eax, eax
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], 0x2bc
mov ecx, 0x15
xor eax, eax
lea edi, [esp + 0x84]
rep stosd dword es:[edi], eax
xor edx, edx
mov dword [0x4bf3b0], edx
mov dword [0x4bf3a8], 0x43
cmp dword [ebp + 8], 1
mov dword [esp + 0x24], str.TEST.MP3
mov dword [esp + 0x28], 0x4a9928
jle 0x497460
xor edi, edi
mov ebx, 1
mov edx, dword [ebp + 8]
jmp 0x49742a
test edi, edi
jne 0x497443
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + ebx*4]
mov dword [esp + 0x28], eax
add edi, 1
add ebx, 1
cmp edx, ebx
je 0x497455
mov eax, dword [esi + ebx*4]
cmp byte [eax], 0x2d
jne 0x497411
cmp byte [eax + 1], 0x78
ja case.0x49743c.1
movzx ecx, byte [eax + 1]
jmp dword [ecx*4 + 0x4a9740]
cmp edi, 1
jne 0x497420
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + ebx*4]
mov dword [esp + 0x24], eax
jmp 0x497420
cmp dword [esp + 0x3c], 3
je 0x4977a2
mov esi, dword [esp + 0x40]
shr esi, 0x1f
mov dword [esp + 0x68], esi
mov dword [esp], 2
mov edi, dword [esp + 0x20]
call edi
mov dword [esp + 4], str._n_n___press_any_key_to_stop_encoder_
mov dword [esp], eax
call sym.fprintf__iobuf__char_const__..._
lea ebx, [esp + 0x3c]
mov dword [esp + 8], ebx
mov edx, dword [esp + 0x24]
mov dword [esp + 4], edx
mov ecx, dword [esp + 0x28]
mov dword [esp], ecx
call sym.ff_encode_wchar_t_const__wchar_t_const__E_CONTROL_
mov esi, eax
cmp eax, 1
je 0x49779b
mov dword [esp], 2
mov eax, dword [esp + 0x20]
call eax
mov dword [esp + 4], 0x4a93d8
mov dword [esp], eax
call sym.fprintf__iobuf__char_const__..._
xor eax, eax
test esi, esi
sete al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [0x4a3264], 0xffffffff
jmp case.0x49743c.1
mov dword [ebp + 8], edx
add eax, 2
mov dword [esp], eax
call sym._atoi
mov dword [esp + 0x5c], eax
mov edx, dword [ebp + 8]
jmp case.0x49743c.1
mov dword [ebp + 8], edx
add eax, 2
mov dword [esp], eax
call sym._atoi
mov dword [esp + 0x40], eax
mov edx, dword [ebp + 8]
jmp case.0x49743c.1
mov dword [ebp + 8], edx
add eax, 2
mov dword [esp], eax
call sym._atoi
xor ecx, ecx
test eax, eax
cmovs eax, ecx
mov dword [0x4bf3b0], eax
mov edx, dword [ebp + 8]
jmp case.0x49743c.1
mov dword [ebp + 8], edx
add eax, 2
mov dword [esp], eax
call sym._atoi
cmp eax, 2
mov edx, 3
cmove eax, edx
mov dword [0x4bf3a8], eax
mov edx, dword [ebp + 8]
jmp case.0x49743c.1
mov dword [ebp + 8], edx
lea eax, [esp + 0x84]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + ebx*4]
mov dword [esp + 0x1c], edx
add edx, 4
mov dword [esp], edx
call sym.get_mnr_adjust_wchar_t_const__int_
mov edx, dword [ebp + 8]
jmp case.0x49743c.1
mov dword [ebp + 8], edx
mov dword [esp + 0x68], 1
add eax, 2
mov dword [esp], eax
call sym._atoi
mov dword [esp + 0x6c], eax
mov edx, dword [ebp + 8]
jmp case.0x49743c.1
mov dword [ebp + 8], edx
add eax, 2
mov dword [esp], eax
call sym._atoi
mov dword [esp + 0xd8], eax
mov edx, dword [ebp + 8]
jmp case.0x49743c.1
movzx ecx, byte [eax + 2]
and ecx, 0xffffffdf
mov dword [ebp + 8], edx
cmp cl, 0x58
jne 0x4977c7
add eax, 3
mov dword [esp], eax
call sym._atoi
mov dword [esp + 0xe0], eax
mov edx, dword [ebp + 8]
jmp case.0x49743c.1
movzx ecx, byte [eax + 2]
and ecx, 0xffffffdf
cmp cl, 0x42
jne 0x4977de
movzx ecx, byte [eax + 3]
and ecx, 0xffffffdf
cmp cl, 0x54
jne case.0x49743c.1
mov dword [ebp + 8], edx
add eax, 4
mov dword [esp], eax
call sym._atoi
mov dword [esp + 0xec], eax
mov edx, dword [ebp + 8]
jmp case.0x49743c.1
mov dword [ebp + 8], edx
add eax, 2
mov dword [esp], eax
call sym._atoi
mov dword [esp + 0xdc], eax
mov edx, dword [ebp + 8]
jmp case.0x49743c.1
mov dword [ebp + 8], edx
add eax, 2
mov dword [esp], eax
call sym._atoi
mov dword [esp + 0x60], eax
mov edx, dword [ebp + 8]
jmp case.0x49743c.1
mov dword [ebp + 8], edx
add eax, 2
mov dword [esp], eax
call sym._atoi
mov dword [esp + 0x48], eax
mov edx, dword [ebp + 8]
jmp case.0x49743c.1
mov dword [ebp + 8], edx
add eax, 2
mov dword [esp], eax
call sym._atoi
mov dword [esp + 0x3c], eax
mov edx, dword [ebp + 8]
jmp case.0x49743c.1
mov dword [ebp + 8], edx
add eax, 2
mov dword [esp], eax
call sym._atoi
mov dword [esp + 0x70], eax
mov edx, dword [ebp + 8]
jmp case.0x49743c.1
mov dword [ebp + 8], edx
add eax, 2
mov dword [esp], eax
call sym._atoi
mov dword [esp + 0x7c], eax
mov edx, dword [ebp + 8]
jmp case.0x49743c.1
movzx ecx, byte [eax + 2]
and ecx, 0xffffffdf
cmp cl, 0x4c
jne 0x4977f8
mov dword [0x4bf3a4], 1
jmp case.0x49743c.1
mov dword [ebp + 8], edx
movzx edx, byte [eax + 2]
and edx, 0xffffffdf
cmp dl, 0x46
jne 0x497796
add eax, 3
mov dword [esp], eax
call sym._atoi
or eax, 1
mov dword [esp + 0x64], eax
mov edx, dword [ebp + 8]
jmp case.0x49743c.1
mov dword [ebp + 8], edx
add eax, 2
mov dword [esp], eax
call sym._atoi
mov dword [esp + 0x50], eax
mov edx, dword [ebp + 8]
jmp case.0x49743c.1
movzx eax, byte [eax + 2]
and eax, 0xffffffdf
cmp al, 0x43
jne case.0x49743c.1
mov dword [0x4bf3a0], 1
jmp case.0x49743c.1
test edi, edi
jne 0x4977b1
mov dword [esp + 0x28], 0x4a9924
jmp 0x497420
mov dword [esp], 2
call dword [0x4a3480]
mov dword [esp + 4], str._n_CANNOT_RETRIEVE_WCHAR_COMMANDLINE
mov dword [esp], eax
call sym.fprintf__iobuf__char_const__..._
mov eax, 1
jmp 0x4974d3
call sym.out_usage__
xor eax, eax
jmp 0x4974d3
mov dword [0x4bf3ac], 1
jmp 0x497460
cmp edi, 1
mov eax, 0x4a9924
cmovne eax, dword [esp + 0x24]
mov dword [esp + 0x24], eax
jmp 0x497420
add eax, 2
mov dword [esp], eax
call sym._atoi
mov dword [esp + 0x74], eax
mov edx, dword [ebp + 8]
jmp case.0x49743c.1
mov dword [ebp + 8], edx
add eax, 2
mov dword [esp], eax
call sym._atoi
mov dword [esp + 0x4c], eax
mov edx, dword [ebp + 8]
jmp case.0x49743c.1
mov dword [ebp + 8], edx
add eax, 2
mov dword [esp], eax
call sym._atoi
mov dword [esp + 0x78], eax
mov edx, dword [ebp + 8]
jmp case.0x49743c.1