Function at 0x497218
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 0x4976ef
mov edx, dword [esp + 0x38]
mov dword [esp + 0x2c], edx
test edx, edx
je 0x4976ef
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.2__2024_04_03
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 [0x4be3b0], edx
mov dword [0x4be3a8], 0x43
cmp dword [ebp + 8], 1
mov dword [esp + 0x24], str.TEST.MP3
mov dword [esp + 0x28], 0x4a892c
jle 0x4973e0
xor edi, edi
mov ebx, 1
mov edx, dword [ebp + 8]
jmp 0x4973aa
test edi, edi
jne 0x4973c3
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 0x4973d5
mov eax, dword [esi + ebx*4]
cmp byte [eax], 0x2d
jne 0x497391
cmp byte [eax + 1], 0x78
ja case.0x4973bc.1
movzx ecx, byte [eax + 1]
jmp dword [ecx*4 + 0x4a8744]
cmp edi, 1
jne 0x4973a0
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + ebx*4]
mov dword [esp + 0x24], eax
jmp 0x4973a0
cmp dword [esp + 0x3c], 3
je 0x497722
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 0x49771b
mov dword [esp], 2
mov eax, dword [esp + 0x20]
call eax
mov dword [esp + 4], 0x4a82fc
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 [0x4a2264], 0xffffffff
jmp case.0x4973bc.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.0x4973bc.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.0x4973bc.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 [0x4be3b0], eax
mov edx, dword [ebp + 8]
jmp case.0x4973bc.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 [0x4be3a8], eax
mov edx, dword [ebp + 8]
jmp case.0x4973bc.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.0x4973bc.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.0x4973bc.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.0x4973bc.1
movzx ecx, byte [eax + 2]
and ecx, 0xffffffdf
mov dword [ebp + 8], edx
cmp cl, 0x58
jne 0x497747
add eax, 3
mov dword [esp], eax
call sym._atoi
mov dword [esp + 0xe0], eax
mov edx, dword [ebp + 8]
jmp case.0x4973bc.1
movzx ecx, byte [eax + 2]
and ecx, 0xffffffdf
cmp cl, 0x42
jne 0x49775e
movzx ecx, byte [eax + 3]
and ecx, 0xffffffdf
cmp cl, 0x54
jne case.0x4973bc.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.0x4973bc.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.0x4973bc.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.0x4973bc.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.0x4973bc.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.0x4973bc.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.0x4973bc.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.0x4973bc.1
movzx ecx, byte [eax + 2]
and ecx, 0xffffffdf
cmp cl, 0x4c
jne 0x497778
mov dword [0x4be3a4], 1
jmp case.0x4973bc.1
mov dword [ebp + 8], edx
movzx edx, byte [eax + 2]
and edx, 0xffffffdf
cmp dl, 0x46
jne 0x497716
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.0x4973bc.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.0x4973bc.1
movzx eax, byte [eax + 2]
and eax, 0xffffffdf
cmp al, 0x43
jne case.0x4973bc.1
mov dword [0x4be3a0], 1
jmp case.0x4973bc.1
test edi, edi
jne 0x497731
mov dword [esp + 0x28], 0x4a8928
jmp 0x4973a0
mov dword [esp], 2
call dword [0x4a2480]
mov dword [esp + 4], str._n_CANNOT_RETRIEVE_WCHAR_COMMANDLINE
mov dword [esp], eax
call sym.fprintf__iobuf__char_const__..._
mov eax, 1
jmp 0x497453
call sym.out_usage__
xor eax, eax
jmp 0x497453
mov dword [0x4be3ac], 1
jmp 0x4973e0
cmp edi, 1
mov eax, 0x4a8928
cmovne eax, dword [esp + 0x24]
mov dword [esp + 0x24], eax
jmp 0x4973a0
add eax, 2
mov dword [esp], eax
call sym._atoi
mov dword [esp + 0x74], eax
mov edx, dword [ebp + 8]
jmp case.0x4973bc.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.0x4973bc.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.0x4973bc.1