Function at 0x402b70
Capabilities:
Get file size
Print debug messages
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43f153
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x550
mov eax, dword [0x458e40]
push ebx
push esi
mov dword [esp + 0x554], eax
mov esi, ecx
mov eax, dword [esp + 0x584]
xor ebx, ebx
mov dword [esi + 0x20], eax
cmp dword [esi + 0x28], ebx
mov dword [esp + 0x560], ebx
mov dword [esi + 0x50], ebx
je 0x402bda
cmp dword [esp + 0x580], 0x10
jb 0x402bd0
mov ecx, dword [esp + 0x56c]
push ecx
call fcn.00433080
add esp, 4
mov eax, 1
jmp 0x402fa7
mov edx, dword [esp + 0x588]
mov dword [esi + 0x1c], edx
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
lea eax, [esp + 0x28]
push eax
mov ecx, eax
push ecx
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x30]
mov byte [esp + 0x56c], 1
call fcn.004026f0
push 0x104
lea eax, [esp + 0x24c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x34c]
push ecx
lea edx, [esp + 0x454]
push edx
lea eax, [esp + 0x14c]
push eax
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x258]
push edx
call fcn.00433184
lea eax, [esp + 0x54]
add esp, 0x14
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402c60
sub eax, edx
push eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x2c]
call fcn.00402940
lea eax, [esp + 0x144]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402c82
push ebp
sub eax, edx
push eax
lea ecx, [esp + 0x14c]
push ecx
lea ecx, [esp + 0x30]
call fcn.00402940
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x574]
push edx
lea ecx, [esp + 0x34]
call fcn.00402850
mov eax, dword [esp + 0x40]
mov ebp, 0x10
cmp eax, ebp
mov eax, dword [esp + 0x2c]
jae 0x402cc7
lea eax, [esp + 0x2c]
push edi
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 + 0x14], eax
jne 0x402d5e
cmp dword [esp + 0x588], ebp
mov eax, dword [esp + 0x574]
jae 0x402d00
lea eax, [esp + 0x574]
push ebx
push 0x8000001
push 3
push ebx
push 1
push 0x80000000
push eax
call edi
cmp eax, 0xffffffff
mov dword [esi + 0x14], eax
jne 0x402d5e
cmp dword [esp + 0x44], ebp
jb 0x402d2e
mov eax, dword [esp + 0x30]
push eax
call fcn.00433080
add esp, 4
cmp dword [esp + 0x588], ebp
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
jb 0x402d57
mov ecx, dword [esp + 0x574]
push ecx
call fcn.00433080
add esp, 4
xor eax, eax
jmp 0x402fa5
mov edx, dword [esi + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push ebx
push 0x14
push edx
call edi
mov edx, dword [esi + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [esp + 0x14]
push eax
push 0x12
lea ecx, [esp + 0x20]
push ecx
push edx
call ebp
mov eax, dword [esi + 0x14]
push ebx
push ebx
push 0x3a
push eax
call edi
mov ecx, dword [esi + 0x14]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
sub eax, 0x3a
push 0x20
mov dword [esi + 0x2c], eax
call fcn.004255e0
mov edx, dword [esi + 0x2c]
mov dword [esi + 0x28], eax
mov dword [eax + 4], edx
mov eax, dword [esi + 0x28]
mov dword [eax + 0x10], 1
mov ecx, dword [esi + 0x28]
mov dword [ecx + 0x14], ebx
mov edx, dword [esi + 0x28]
mov dword [edx + 0xc], ebx
mov eax, dword [esi + 0x28]
mov dword [eax + 0x18], ebx
mov ecx, dword [esi + 0x28]
mov dword [ecx + 0x1c], ebx
mov edx, dword [esi + 0x2c]
push edx
call fcn.004255e0
mov ecx, dword [esi + 0x28]
mov dword [ecx], eax
mov edx, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov edi, dword [edx]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x2c]
push eax
call fcn.004255e0
mov edx, dword [esi + 0x2c]
add esp, 0xc
push ebx
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x14]
push eax
call ebp
test eax, eax
je 0x402e43
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x28]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [eax]
push edx
mov edx, dword [esi + 0x24]
push ecx
push edx
mov ecx, esi
call fcn.004022f0
mov eax, dword [esi + 0x28]
mov ecx, dword [esp + 0x10]
mov dword [eax + 4], ecx
mov edx, dword [esi + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov cx, word [esp + 0x16]
mov eax, dword [esp + 0x22]
mov edi, dword [esp + 0x18]
mov word [esi + 0xe], ax
movzx eax, ax
mov word [esi + 2], cx
movzx ecx, cx
imul eax, ecx
mov ebp, dword [sym.imp.WINMM.dll_waveOutOpen]
cdq
and edx, 7
add eax, edx
sar eax, 3
movzx edx, ax
push 0x30000
imul edx, edi
mov word [esi + 0xc], ax
mov eax, dword [esi + 0x18]
push eax
push 0x4022c0
push esi
mov dword [esi + 4], edi
push 0xffffffffffffffff
lea edi, [esi + 0x30]
push edi
mov word [esi], 1
mov dword [esi + 8], edx
mov word [esi + 0x10], bx
call ebp
test eax, eax
je 0x402eeb
mov ecx, dword [edi]
push ecx
call dword [sym.imp.WINMM.dll_waveOutReset]
mov edx, dword [esi + 0x18]
push 0x30000
push edx
push 0x4022c0
push esi
push 0xffffffffffffffff
push edi
call ebp
test eax, eax
je 0x402eeb
lea ecx, [esp + 0x2c]
call fcn.004026c0
lea ecx, [esp + 0x570]
call fcn.004026c0
xor eax, eax
jmp 0x402fa5
mov eax, dword [edi]
push eax
call dword [sym.imp.WINMM.dll_waveOutPause]
mov ecx, dword [esi + 0x28]
mov edx, dword [edi]
push 0x20
push ecx
push edx
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
test eax, eax
je 0x402f38
push str.Error_in_waveOutPrepareHeader_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x44]
mov esi, 0x10
cmp eax, esi
jb 0x402f2c
mov eax, dword [esp + 0x30]
push eax
call fcn.00433080
add esp, 4
cmp dword [esp + 0x588], esi
jmp 0x402d35
mov edx, dword [esi + 0x28]
mov eax, dword [edi]
push 0x20
push edx
push eax
call dword [sym.imp.WINMM.dll_waveOutWrite]
test eax, eax
je 0x402f6f
push str.Error_in_waveOutWrite_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x2c]
call fcn.004026c0
lea ecx, [esp + 0x570]
call fcn.004026c0
xor eax, eax
jmp 0x402fa5
mov ecx, dword [edi]
push ecx
call dword [sym.imp.WINMM.dll_waveOutRestart]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x578]
push edx
lea ecx, [esi + 0x34]
call fcn.00402a50
lea ecx, [esp + 0x2c]
call fcn.004026c0
lea ecx, [esp + 0x570]
call fcn.004026c0
mov eax, 1
pop edi
pop ebp
mov ecx, dword [esp + 0x558]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x550]
pop ebx
call fcn.004332fd
add esp, 0x55c
ret 0x24