Function at 0x4250c0
Capabilities:
Print debug messages
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4401f3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x588
mov eax, dword [0x458e40]
push ebx
push ebp
push esi
mov dword [esp + 0x590], eax
push edi
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x5a0], ebx
call dword [sym.imp.WINMM.dll_waveOutGetNumDevs]
mov eax, dword [esp + 0x5c4]
mov ecx, dword [esp + 0x5c8]
push 0x34
lea edx, [esp + 0x50]
push edx
push 0xffffffffffffffff
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], ecx
call dword [sym.imp.WINMM.dll_waveOutGetDevCapsA]
mov eax, dword [esp + 0x5cc]
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x2c], eax
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
lea ecx, [esp + 0x34]
push ecx
mov edx, ecx
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x5ac], 1
call fcn.004026f0
push 0x104
lea ecx, [esp + 0x28c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x38c]
push edx
lea eax, [esp + 0x494]
push eax
lea ecx, [esp + 0x18c]
push ecx
lea edx, [esp + 0x8c]
push edx
lea eax, [esp + 0x298]
push eax
call fcn.00433184
lea eax, [esp + 0x94]
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4251a8
sub eax, edx
push eax
lea ecx, [esp + 0x84]
push ecx
lea ecx, [esp + 0x38]
call fcn.00402940
lea eax, [esp + 0x184]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4251d0
sub eax, edx
push eax
lea edx, [esp + 0x188]
push edx
lea ecx, [esp + 0x38]
call fcn.00402940
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x5b0]
push eax
lea ecx, [esp + 0x3c]
call fcn.00402850
mov eax, dword [esp + 0x48]
mov ebp, 0x10
cmp eax, ebp
mov eax, dword [esp + 0x34]
jae 0x425214
lea eax, [esp + 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push 0x8000001
push 3
push ebx
push 1
push 0x80000000
push eax
call edi
cmp eax, 0xffffffff
mov dword [esi + 0x24], eax
jne 0x425286
cmp dword [esp + 0x5c0], ebp
mov eax, dword [esp + 0x5ac]
jae 0x42524c
lea eax, [esp + 0x5ac]
push ebx
push 0x8000001
push 3
push ebx
push 1
push 0x80000000
push eax
call edi
cmp eax, 0xffffffff
mov dword [esi + 0x24], eax
jne 0x425286
cmp dword [esp + 0x48], ebp
jb 0x42527a
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00433080
add esp, 4
cmp dword [esp + 0x5c0], ebp
jmp 0x42557b
mov eax, dword [esi + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push ebx
push 0x14
push eax
call edi
mov eax, dword [esi + 0x24]
push ebx
lea ecx, [esp + 0x14]
push ecx
push 0x12
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esi + 0x24]
push ebx
push ebx
push 0x3a
push ecx
call edi
mov dword [esp + 0x18], 3
nop
push 0x20
call fcn.004255e0
mov ebp, eax
mov dword [ebp + 4], 0x5000
mov dword [ebp + 0x10], 1
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x18], ebx
push 0x5000
mov dword [esp + 0x1c], ebp
mov dword [ebp + 0x1c], ebx
call fcn.004255e0
add esp, 8
mov edi, eax
push ebx
mov dword [ebp], edi
xor eax, eax
lea edx, [esp + 0x14]
push edx
mov ecx, 0x1400
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x5000
push eax
push ecx
call edi
test eax, eax
je 0x42538f
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esi + 0x34]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00424a00
cmp dword [esp + 0x10], ebx
jne 0x42538c
cmp dword [esi + 0x2c], ebx
je 0x425383
mov eax, dword [esi + 0x24]
push ebx
push ebx
push 0x3a
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 0x34]
mov eax, dword [esi + 0x24]
push ebx
lea ecx, [esp + 0x14]
push ecx
push 0x5000
push edx
push eax
call edi
mov edx, dword [esp + 0x10]
mov eax, dword [ebp]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esi + 0x34]
push edx
push eax
push ecx
mov ecx, esi
call fcn.00424a00
jmp 0x42538f
mov dword [esi + 0x5c], 1
jmp 0x42538f
mov dword [esi + 0x5c], ebx
mov edx, dword [esp + 0x10]
mov dword [ebp + 4], edx
mov edi, dword [esi + 0x1c]
mov edx, dword [edi + 4]
lea ecx, [esi + 0x18]
lea eax, [esp + 0x14]
push eax
push edx
push edi
call fcn.00424c10
push 1
lea ecx, [esi + 0x18]
mov ebp, eax
call fcn.00424dd0
mov dword [edi + 4], ebp
mov eax, dword [ebp + 4]
mov dword [eax], ebp
dec dword [esp + 0x18]
jne 0x4252c0
mov dx, word [esp + 0x1e]
mov eax, dword [esp + 0x2a]
mov word [esi + 0x12], ax
mov edi, dword [esp + 0x20]
movzx eax, ax
mov word [esi + 6], dx
movzx edx, dx
imul eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
mov word [esi + 0x10], ax
movzx eax, ax
push 0x30002
imul eax, edi
push esi
push 0x425080
lea ecx, [esi + 4]
push ecx
push 0xffffffffffffffff
push esi
mov word [ecx], 1
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
mov word [esi + 0x14], bx
call dword [sym.imp.WINMM.dll_waveOutOpen]
test eax, eax
jne 0x42555a
mov eax, dword [esi]
push eax
call dword [sym.imp.WINMM.dll_waveOutPause]
mov eax, dword [esi + 0x1c]
mov edi, dword [eax]
cmp edi, eax
je 0x425472
mov ebp, dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
mov ecx, dword [edi + 8]
mov edx, dword [esi]
push 0x20
push ecx
push edx
call ebp
test eax, eax
jne 0x4254fd
mov eax, dword [edi + 8]
mov ecx, dword [esi]
push 0x20
push eax
push ecx
call dword [sym.imp.WINMM.dll_waveOutWrite]
test eax, eax
jne 0x42554f
mov edi, dword [edi]
cmp edi, dword [esi + 0x1c]
jne 0x425441
mov eax, dword [esi]
push eax
call dword [sym.imp.WINMM.dll_waveOutRestart]
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x5b0]
push ecx
lea ecx, [esi + 0x3c]
call fcn.00402a50
mov eax, dword [esp + 0x48]
mov esi, 0x10
cmp eax, esi
jb 0x4254a8
mov edx, dword [esp + 0x34]
push edx
call fcn.00433080
add esp, 4
cmp dword [esp + 0x5c0], esi
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
jb 0x4254d1
mov eax, dword [esp + 0x5ac]
push eax
call fcn.00433080
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x598]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x588]
pop ebx
call fcn.004332fd
add esp, 0x594
ret 0x28
push str.Error_in_waveOutPrepareHeader_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x48]
mov esi, 0x10
cmp eax, esi
jb 0x425522
mov edx, dword [esp + 0x34]
push edx
call fcn.00433080
add esp, 4
cmp dword [esp + 0x5c0], esi
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
jb 0x42559d
mov eax, dword [esp + 0x5ac]
push eax
call fcn.00433080
add esp, 4
xor eax, eax
jmp 0x4254d6
push str.Error_in_waveOutWrite_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x48]
mov esi, 0x10
cmp eax, esi
jb 0x425574
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00433080
add esp, 4
cmp dword [esp + 0x5c0], esi
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
jb 0x42559d
mov edx, dword [esp + 0x5ac]
push edx
call fcn.00433080
add esp, 4
xor eax, eax
jmp 0x4254d6