Function at 0x4b42ba
Capabilities:
Read file on windows

Disassembly:
push 0x434
push 0x506968
call fcn.004c6a30
mov esi, ecx
mov dword [ebp - 0x444], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x440], eax
xor edi, edi
mov dword [ebp - 0x438], edi
mov byte [ebp - 0x234], 0
mov ebx, 0x103
push ebx
push edi
lea eax, [ebp - 0x233]
push eax
call fcn.00401f80
add esp, 0xc
mov byte [ebp - 0x12c], 0
push ebx
push edi
lea eax, [ebp - 0x12b]
push eax
call fcn.00401f80
add esp, 0xc
mov edi, 0x1e8
call fcn.004b33c5
test eax, eax
je 0x4b463a
mov edx, dword [ebp - 0x440]
call fcn.00445b2f
test eax, eax
lea eax, [ebp - 0x12c]
jne 0x4b434f
push dword [ebp - 0x440]
lea ecx, [ebx + 1]
call fcn.00444961
pop ecx
jmp 0x4b4354
call fcn.004449db
and dword [ebp - 0x440], 0
lea edx, [ebp - 0x12c]
call fcn.00445b2f
test eax, eax
jne 0x4b43fa
lea edi, [ebp - 0x12c]
call fcn.004a142a
test eax, eax
jne 0x4b43df
mov edi, 0x6152e0
mov edx, edi
call fcn.00445b2f
test eax, eax
jne 0x4b463a
push edi
call fcn.00401a80
pop ecx
mov ecx, ebx
sub ecx, eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x234]
call fcn.00444961
pop ecx
mov edx, edi
mov ecx, eax
call fcn.00446954
lea edi, [ebp - 0x234]
call fcn.004a142a
test eax, eax
je 0x4b463a
mov eax, edi
push eax
mov ecx, 0x104
lea eax, [ebp - 0x12c]
call fcn.00444961
pop ecx
xor edx, edx
lea ecx, [ebp - 0x12c]
call fcn.004a1b95
mov dword [ebp - 0x440], eax
test eax, eax
je 0x4b463a
cmp dword [ebp - 0x440], 0
jne 0x4b443e
mov edi, 0x21a
call fcn.004b33c5
test eax, eax
je 0x4b4436
mov eax, esi
call fcn.004b307e
test eax, eax
je 0x4b4436
mov ecx, esi
call fcn.004b30f7
and dword [esi + 0x104], 0
mov eax, esi
call fcn.004449db
call fcn.004b306f
xor eax, eax
inc eax
jmp 0x4b463c
push 0x228
push str.Sound.c
mov edx, 0x4cc77c
lea ecx, [ebp - 0x12c]
call fcn.004a0001
pop ecx
pop ecx
mov edi, eax
test edi, edi
je 0x4b463a
and dword [ebp - 0x43c], 0
push edi
call fcn.00401e7e
pop ecx
call fcn.00444aba
cmp eax, 0x52
jne 0x4b44af
push edi
call fcn.00401e7e
pop ecx
call fcn.00444aba
cmp eax, 0x49
jne 0x4b44af
push edi
call fcn.00401e7e
pop ecx
call fcn.00444aba
cmp eax, 0x46
jne 0x4b44af
push edi
call fcn.00401e7e
pop ecx
call fcn.00444aba
cmp eax, 0x46
je 0x4b44ba
xor ebx, ebx
inc ebx
mov dword [ebp - 0x43c], ebx
jmp 0x4b44bd
xor ebx, ebx
inc ebx
push edi
call fcn.00401e7e
pop ecx
push edi
call fcn.00401e7e
pop ecx
push edi
call fcn.00401e7e
pop ecx
push edi
call fcn.00401e7e
pop ecx
push edi
call fcn.00401e7e
pop ecx
call fcn.00444aba
cmp eax, 0x57
jne 0x4b451d
push edi
call fcn.00401e7e
pop ecx
call fcn.00444aba
cmp eax, 0x41
jne 0x4b451d
push edi
call fcn.00401e7e
pop ecx
call fcn.00444aba
cmp eax, 0x56
jne 0x4b451d
push edi
call fcn.00401e7e
pop ecx
call fcn.00444aba
cmp eax, 0x45
je 0x4b4523
mov dword [ebp - 0x43c], ebx
cmp dword [ebp - 0x43c], 0
jne 0x4b4633
push edi
mov eax, str.fmt
call fcn.0049f34c
pop ecx
test eax, eax
je 0x4b4633
and dword [ebp - 0x438], 0
push edi
push ebx
push 4
lea eax, [ebp - 0x438]
push eax
call fcn.00402244
add esp, 0x10
cmp eax, ebx
jne 0x4b4633
cmp dword [ebp - 0x438], 0x10
jb 0x4b4633
push dword [ebp - 0x438]
push ebx
call fcn.00401a3a
pop ecx
pop ecx
mov dword [ebp - 0x43c], eax
test eax, eax
je 0x4b4633
push edi
push dword [ebp - 0x438]
push ebx
push eax
call fcn.00402244
add esp, 0x10
cmp eax, dword [ebp - 0x438]
je 0x4b45bd
mov ecx, edi
call fcn.004a2aec
push dword [ebp - 0x43c]
call fcn.00401a00
pop ecx
jmp 0x4b463a
push edi
mov eax, str.data
call fcn.0049f34c
pop ecx
test eax, eax
je 0x4b45a8
and dword [ebp - 0x438], 0
push edi
push ebx
push 4
lea eax, [ebp - 0x438]
push eax
call fcn.00402244
add esp, 0x10
cmp eax, ebx
jne 0x4b45a8
cmp dword [ebp - 0x438], 0
je 0x4b45a8
push dword [ebp - 0x438]
call fcn.004028f8
pop ecx
mov ebx, eax
test ebx, ebx
je 0x4b45a8
push edi
push dword [ebp - 0x438]
push 1
push ebx
call fcn.00402244
add esp, 0x10
cmp eax, dword [ebp - 0x438]
je 0x4b4642
push ebx
call fcn.00401a00
pop ecx
push dword [ebp - 0x43c]
call fcn.00401a00
pop ecx
mov ecx, edi
call fcn.004a2aec
xor eax, eax
call fcn.004c6a78
ret
mov ecx, edi
call fcn.004a2aec
mov edi, 0x2a2
call fcn.004b33c5
test eax, eax
je 0x4b483d
mov eax, esi
call fcn.004b307e
test eax, eax
je 0x4b483d
mov ecx, esi
call fcn.004b30f7
and dword [ebp - 4], 0
mov dword [esi + 0x108], ebx
mov eax, dword [ebp - 0x438]
mov dword [esi + 0x10c], eax
mov eax, dword [ebp - 0x43c]
mov dword [esi + 0x110], eax
lea eax, [ebp - 0x12c]
push eax
mov ecx, 0x104
mov eax, esi
call fcn.00444961
pop ecx
mov eax, dword [ebp - 0x440]
mov dword [esi + 0x104], eax
lea ebx, [esi + 0x114]
push 0x20
push 0
push ebx
call fcn.00401f80
add esp, 0xc
mov eax, dword [ebp - 0x438]
mov dword [esi + 0x118], eax
mov eax, dword [esi + 0x108]
mov dword [ebx], eax
and dword [esi + 0x120], 0
lea edi, [esi + 0x434]
and dword [edi], 0
push 0x30000
push esi
push 0x4b3413
push dword [esi + 0x110]
push 0xffffffffffffffff
push edi
call dword [sym.imp.WINMM.dll_waveOutOpen]
mov dword [ebp - 0x440], eax
test eax, eax
je 0x4b47a1
mov byte [ebp - 0x334], 0
push 0xff
push 0
lea eax, [ebp - 0x333]
push eax
call fcn.00401f80
add esp, 0xc
mov ebx, dword [ebp - 0x440]
push ebx
push str.Err_ld
push 0xf6
lea eax, [ebp - 0x334]
push eax
call fcn.004451a8
lea eax, [ebp - 0x334]
push eax
call fcn.00401a80
add esp, 0x14
mov ecx, pe_nt_image_headers32
sub ecx, eax
push ecx
lea eax, [ebp - 0x334]
push eax
call fcn.00401a80
pop ecx
lea eax, [ebp + eax - 0x334]
push eax
push ebx
call dword [sym.imp.WINMM.dll_waveOutGetErrorTextA]
cmp dword [0x6153fc], ebx
je 0x4b4796
and dword [0x615504], 0
mov dword [0x6153fc], ebx
jmp 0x4b479c
inc dword [0x615504]
and dword [edi], 0
jmp 0x4b4819
push 0x20
push ebx
push dword [edi]
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
mov edi, eax
test edi, edi
je 0x4b4819
mov byte [ebp - 0x434], 0
push 0xff
push 0
lea eax, [ebp - 0x433]
push eax
call fcn.00401f80
add esp, 0xc
push edi
push str.Err_ld
push 0xf6
lea eax, [ebp - 0x434]
push eax
call fcn.004451a8
lea eax, [ebp - 0x434]
push eax
call fcn.00401a80
add esp, 0x14
mov ecx, pe_nt_image_headers32
sub ecx, eax
push ecx
lea eax, [ebp - 0x434]
push eax
call fcn.00401a80
pop ecx
lea eax, [ebp + eax - 0x434]
push eax
push edi
call dword [sym.imp.WINMM.dll_waveOutGetErrorTextA]
mov dword [ebp - 4], 0xfffffffe
jmp 0x4b4836
mov eax, esi
jmp 0x4b4431
push ebx
call fcn.00401a00
pop ecx
jmp 0x4b45af