Function at 0x47fa50
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
mov eax, dword [0x4d1698]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
push edi
mov edi, edx
push 0x4aeee4
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
call fcn.0048d0d9
mov esi, eax
xor ebx, ebx
add esp, 8
cmp esi, ebx
jne 0x47fa8e
lea eax, [ebx + 6]
jmp 0x47fe4b
push esi
push 4
xor eax, eax
lea edx, [esp + 0x24]
push 1
push edx
mov dword [esp + 0x2c], eax
mov byte [esp + 0x30], al
call fcn.0048d33a
push esi
call fcn.0048d6c3
add esp, 0x14
push 0x1c
mov dword [esp + 0x14], ebx
call fcn.0048d737
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x47facf
mov eax, edi
call fcn.004847e0
mov ebp, eax
jmp 0x47fad1
xor ebp, ebp
mov eax, dword [ebp]
mov edx, dword [eax + 4]
mov ecx, ebp
call edx
mov esi, eax
cmp esi, ebx
je 0x47fb09
mov eax, dword [ebp]
mov edx, dword [eax]
push 1
mov ecx, ebp
call edx
mov dword [0x4db3e0], esi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0048c97b
add esp, 0x18
ret 4
mov eax, dword [esp + 0x14]
cmp byte [eax + 4], bl
jne 0x47fc09
mov ecx, str.RIFF
lea eax, [esp + 0x1c]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x47fb40
cmp dl, bl
je 0x47fb3c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x47fb40
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x47fb20
xor eax, eax
jmp 0x47fb45
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x47fb8d
push 0x88
call fcn.0048d737
add esp, 4
cmp eax, ebx
je 0x47fb6d
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax], vtable.WaveSource.0
mov esi, eax
jmp 0x47fb6f
xor esi, esi
mov edx, dword [esi]
mov eax, dword [edx + 4]
push ebp
mov ecx, esi
call eax
test eax, eax
je 0x47fb89
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
xor esi, esi
mov dword [esp + 0x10], esi
mov ecx, 0x4bfa6c
lea eax, [esp + 0x1c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x47fbb6
cmp dl, bl
je 0x47fbb2
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x47fbb6
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x47fb96
xor eax, eax
jmp 0x47fbbb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x47fc09
push 0x1c
call fcn.0048d737
add esp, 4
cmp eax, ebx
je 0x47fbe9
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax], vtable.OggSource.0
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], ebx
mov esi, eax
jmp 0x47fbeb
xor esi, esi
mov edx, dword [esi]
mov eax, dword [edx + 4]
push ebp
mov ecx, esi
call eax
test eax, eax
je 0x47fc05
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
xor esi, esi
mov dword [esp + 0x10], esi
mov ecx, str.SWCR
lea eax, [esp + 0x1c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x47fc32
cmp dl, bl
je 0x47fc2e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x47fc32
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x47fc12
xor eax, eax
jmp 0x47fc37
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x47fda5
push 0x34
call fcn.0048d737
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x47fc60
mov ecx, dword [esp + 0x14]
mov edi, dword [ecx]
mov eax, ebp
call fcn.004837a0
mov edi, eax
jmp 0x47fc62
xor edi, edi
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x47fc79
mov edx, dword [edi + 0xc]
push edx
lea ecx, [esp + 0x20]
push ecx
push 4
call eax
add esp, 0xc
mov ecx, str.RIFF
lea eax, [esp + 0x1c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x47fca2
cmp dl, bl
je 0x47fc9e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x47fca2
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x47fc82
xor eax, eax
jmp 0x47fca7
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x47fcff
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x47fcbb
mov edx, dword [edi + 0xc]
push edx
call eax
add esp, 4
push 0x88
call fcn.0048d737
add esp, 4
cmp eax, ebx
je 0x47fcdf
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax], vtable.WaveSource.0
mov esi, eax
jmp 0x47fce1
xor esi, esi
mov eax, dword [esi]
mov edx, dword [eax + 4]
push edi
mov ecx, esi
call edx
test eax, eax
je 0x47fcfb
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
xor esi, esi
mov dword [esp + 0x10], esi
mov ecx, 0x4bfa6c
lea eax, [esp + 0x1c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x47fd28
cmp dl, bl
je 0x47fd24
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x47fd28
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x47fd08
xor eax, eax
jmp 0x47fd2d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x47fd8b
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x47fd41
mov ecx, dword [edi + 0xc]
push ecx
call eax
add esp, 4
push 0x1c
call fcn.0048d737
add esp, 4
cmp eax, ebx
je 0x47fd6b
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax], vtable.OggSource.0
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], ebx
mov esi, eax
jmp 0x47fd6d
xor esi, esi
mov edx, dword [esi]
mov eax, dword [edx + 4]
push edi
mov ecx, esi
call eax
test eax, eax
je 0x47fd87
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
xor esi, esi
mov dword [esp + 0x10], esi
cmp dword [esp + 0x10], ebx
jne 0x47fdab
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
mov eax, 0x11
jmp 0x47fe4b
cmp dword [esp + 0x10], ebx
je 0x47fdd2
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov dword [edx], ecx
mov dword [0x4db3e0], ebx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0048c97b
add esp, 0x18
ret 4
mov eax, dword [esp + 0x14]
cmp byte [eax + 4], bl
je 0x47fe46
mov ecx, 0x4bfa6c
lea eax, [esp + 0x1c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x47fe04
cmp dl, bl
je 0x47fe00
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x47fe04
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x47fde4
xor eax, eax
jmp 0x47fe09
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x47fe3f
mov ecx, str.RIFF
lea eax, [esp + 0x1c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x47fe36
cmp dl, bl
je 0x47fe32
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x47fe36
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x47fe16
xor eax, eax
jmp 0x47fe3b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x47fe46
mov eax, 0x10
jmp 0x47fe4b
mov eax, 8
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov dword [0x4db3e0], eax
call fcn.0048c97b
add esp, 0x18
ret 4