Function at 0x402d80
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x4e474
call fcn.00403fc0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x4e488]
xor ebx, ebx
push edi
mov ecx, dword [esi]
lea eax, [esp + 0x18]
mov ebp, 0xfa00
push ebx
push eax
push ebp
push ecx
mov dword [esp + 0x30], 4
mov dword [esp + 0x34], 1
mov dword [esp + 0x24], ebx
mov byte [esp + 0x23], bl
mov byte [esp + 0x22], bl
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebp
call sub.MSACM32.dll_acmStreamSize
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x402dfc
cmp eax, 0x3e800
jbe 0x402dfc
mov eax, dword [esi]
lea edx, [esp + 0x18]
push 1
push edx
push 0x3e800
push eax
call sub.MSACM32.dll_acmStreamSize
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
mov ebp, ecx
mov ecx, 0x15
xor eax, eax
lea edi, [esp + 0x28]
lea edx, [esp + 0x284]
rep stosd dword es:[edi], eax
mov dword [esp + 0x34], edx
mov edx, dword [esi]
lea ecx, [esp + 0x28]
push ebx
lea eax, [esp + 0xfc88]
push ecx
push edx
mov dword [esp + 0x34], 0x54
mov dword [esp + 0x44], ebp
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], 0x3e800
call sub.MSACM32.dll_acmStreamPrepareHeader
test eax, eax
je 0x402e60
mov eax, dword [esi]
push ebx
push eax
call sub.MSACM32.dll_acmStreamClose
mov ecx, dword [esp + 0x4e490]
push ecx
push str.Failed_to_prepare_stream_header_for_format_conversion_of__s
jmp 0x403198
mov dword [esp + 0x3c], 1
mov eax, dword [esp + 0x4e49c]
cmp ebx, eax
jl 0x402e7e
cmp dword [esp + 0x20], 0x20
je 0x40302e
lea edx, [ebx + ebp]
cmp edx, eax
jle 0x402e89
mov ebp, eax
sub ebp, ebx
test ebp, ebp
jle 0x402eae
mov ecx, dword [esp + 0x4e494]
lea eax, [esp + 0x284]
push ebp
push eax
push ecx
call fcn.00403351
add esp, 0xc
cmp eax, ebp
jne 0x403147
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x38], ebp
test eax, eax
jne 0x402ec2
mov dword [esp + 0x20], 0x20
mov edx, dword [esp + 0x20]
mov ecx, dword [esi]
lea eax, [esp + 0x28]
push edx
push eax
push ecx
call sub.MSACM32.dll_acmStreamConvert
test eax, eax
jne 0x403172
mov esi, dword [esp + 0x4e4a4]
mov eax, dword [esp + 0x4c]
cmp esi, 8
jne 0x402eff
cmp eax, 1
jb 0x402f24
mov edx, dword [esp + 0x44]
mov cl, byte [eax + edx - 1]
mov byte [esp + 0x12], cl
jmp 0x402f24
cmp esi, 0x10
jne 0x402f24
cmp eax, 2
jb 0x402f24
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x4e4a4]
mov dl, byte [eax + ecx - 2]
mov byte [esp + 0x12], dl
mov cl, byte [eax + ecx - 1]
mov byte [esp + 0x13], cl
mov edi, dword [esp + 0x4e4a0]
test edi, edi
je 0x402f7d
mov ecx, dword [esp + 0x24]
cmp ecx, 1
jne 0x402f54
lea edx, [esp + 0x28]
push esi
push edx
mov dword [esp + 0x2c], 2
call fcn.00402c60
mov eax, dword [esp + 0x54]
add esp, 8
jmp 0x402f59
cmp ecx, 2
jne 0x402f7d
mov ecx, dword [esp + 0x14]
lea edx, [eax + ecx]
cmp edx, edi
jbe 0x402f7d
lea eax, [esp + 0x12]
push eax
push esi
push ecx
lea ecx, [esp + 0x34]
push edi
push ecx
call fcn.00402ce0
mov eax, dword [esp + 0x60]
add esp, 0x14
xor esi, esi
test eax, eax
jbe 0x402fc1
lea edx, [esi + 0x3e800]
mov edi, 0x3e800
cmp edx, eax
jbe 0x402f96
sub eax, esi
mov edi, eax
mov ecx, dword [esp + 0x4e498]
lea eax, [esp + 0xfc84]
push edi
push eax
push ecx
call fcn.00403cd6
add esp, 0xc
cmp eax, edi
jne 0x4031cf
mov eax, dword [esp + 0x4c]
add esi, edi
cmp esi, eax
jb 0x402f83
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x3c]
add eax, esi
mov edx, dword [esp + 0x4e494]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
sub eax, edi
push 1
sub ebp, eax
neg eax
push eax
push edx
add ebx, ebp
call fcn.004035fa
add esp, 0xc
cmp eax, 0xffffffff
push 0
je 0x403230
mov ecx, dword [esp + 0x4e48c]
mov eax, ebx
sar eax, 0xa
push eax
push 0x402
push 0x3f4
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [esp + 0x4e48c]
mov ebp, dword [esp + 0x1c]
jmp 0x402e68
mov eax, dword [esp + 0x4e4a0]
test eax, eax
je 0x4030b6
mov ecx, dword [esp + 0x4e4a4]
lea edx, [esp + 0x12]
push edx
mov edx, dword [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x60], 0
call fcn.00402ce0
mov eax, dword [esp + 0x60]
add esp, 0x14
xor esi, esi
test eax, eax
jbe 0x4030a5
lea ecx, [esi + 0x3e800]
mov edi, 0x3e800
cmp ecx, eax
jbe 0x40307e
sub eax, esi
mov edi, eax
mov eax, dword [esp + 0x4e498]
lea edx, [esp + 0xfc84]
push edi
push edx
push eax
call fcn.00403cd6
add esp, 0xc
cmp eax, edi
jne 0x403118
mov eax, dword [esp + 0x4c]
add esi, edi
cmp esi, eax
jb 0x40306b
mov eax, dword [esp + 0x14]
add eax, esi
mov esi, dword [esp + 0x4e48c]
mov dword [esp + 0x14], eax
mov eax, dword [esi]
lea edx, [esp + 0x28]
push 0
push edx
push eax
call sub.MSACM32.dll_acmStreamUnprepareHeader
mov ecx, dword [esi]
push 0
push ecx
call sub.MSACM32.dll_acmStreamClose
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x40310b
mov edx, dword [esp + 0x4e490]
lea eax, [esp + 0x7c]
push edx
push str._s:_This_error_should_not_happen__please_report_it__unknown_
push eax
call fcn.004032ee
mov edx, dword [esp + 0x4e494]
add esp, 0xc
lea ecx, [esp + 0x7c]
push 0x10
push str.Error
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4e474
ret
mov esi, dword [esp + 0x4e48c]
lea ecx, [esp + 0x28]
push 0
push ecx
mov edx, dword [esi]
push edx
call sub.MSACM32.dll_acmStreamUnprepareHeader
mov eax, dword [esi]
push 0
push eax
call sub.MSACM32.dll_acmStreamClose
mov ecx, dword [esp + 0x4e490]
push ecx
push str.Error_while_writing_to__s
jmp 0x403198
mov ecx, dword [esi]
lea eax, [esp + 0x28]
push 0
push eax
push ecx
call sub.MSACM32.dll_acmStreamUnprepareHeader
mov edx, dword [esi]
push 0
push edx
call sub.MSACM32.dll_acmStreamClose
mov eax, dword [esp + 0x4e490]
push eax
push str.Error_while_reading_from_entry__s
jmp 0x40325b
mov edx, dword [esi]
lea ecx, [esp + 0x28]
push 0
push ecx
push edx
call sub.MSACM32.dll_acmStreamUnprepareHeader
mov eax, dword [esi]
push 0
push eax
call sub.MSACM32.dll_acmStreamClose
mov ecx, dword [esp + 0x4e490]
push ecx
push str.Error_from_ACM_while_converting__s
lea edx, [esp + 0x84]
push edx
call fcn.004032ee
mov ecx, dword [esp + 0x4e494]
add esp, 0xc
lea eax, [esp + 0x7c]
push 0x10
push str.Error
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4e474
ret
mov esi, dword [esp + 0x4e48c]
lea edx, [esp + 0x28]
push 0
push edx
mov eax, dword [esi]
push eax
call sub.MSACM32.dll_acmStreamUnprepareHeader
mov ecx, dword [esi]
push 0
push ecx
call sub.MSACM32.dll_acmStreamClose
mov edx, dword [esp + 0x4e490]
lea eax, [esp + 0x7c]
push edx
push str.Error_while_writing_to__s
push eax
call fcn.004032ee
mov edx, dword [esp + 0x4e494]
add esp, 0xc
lea ecx, [esp + 0x7c]
push 0x10
push str.Error
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4e474
ret
mov esi, dword [esp + 0x4e490]
lea eax, [esp + 0x2c]
push eax
mov ecx, dword [esi]
push ecx
call sub.MSACM32.dll_acmStreamUnprepareHeader
mov edx, dword [esi]
push 0
push edx
call sub.MSACM32.dll_acmStreamClose
mov eax, dword [esp + 0x4e490]
push eax
push str.Error_seeking_in_file_for_entry__s
lea ecx, [esp + 0x84]
push ecx
call fcn.004032ee
mov eax, dword [esp + 0x4e494]
add esp, 0xc
lea edx, [esp + 0x7c]
push 0x10
push str.Error
push edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4e474
ret