Function at 0x41d890
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x472500
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push esi
mov ebx, ecx
push edi
lea eax, [ebx + 0xa4]
push eax
lea ecx, [esp + 0x34]
call fcn.00404180
mov eax, dword [ebx + 0x104]
lea ecx, [esp + 0x4c]
lea esi, [eax + eax*2]
push ecx
mov ecx, ebx
mov dword [esp + 0x6c], 0
mov dword [esp + 0x30], esi
call fcn.0041d690
mov ecx, dword [eax + 0xc]
test ecx, ecx
mov byte [esp + 0x68], 1
je 0x41d8ef
mov ecx, dword [ecx + 0xc]
jmp 0x41d8f1
xor ecx, ecx
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
imul edx, ecx
lea ecx, [edx + eax]
mov edx, dword [ecx]
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
call dword [edx + 0x20]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x68], 0
call fcn.004132f0
mov eax, dword [ebx + 0xd0]
mov edi, dword [esp + 0x24]
cmp edi, eax
jne 0x41d960
lea ecx, [esp + 0x30]
call fcn.004040f0
push 0x14
lea ecx, [ebx + 4]
call fcn.00418590
lea ecx, [esp + 0x30]
mov dword [esp + 0x68], 0xffffffff
call fcn.004040b0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret
push ebp
mov ebp, edi
sub ebp, eax
cmp edi, eax
ja 0x41d96b
add ebp, esi
mov eax, dword [ebx + 0xd8]
mov ecx, dword [ebx + 0x104]
add ebp, eax
shr ecx, 1
cmp ebp, ecx
jae 0x41d997
lea ecx, [esp + 0x34]
call fcn.004040f0
push 0x14
lea ecx, [ebx + 4]
call fcn.00418590
jmp 0x41dcf6
mov ecx, dword [ebx + 0xd4]
lea edx, [ecx + ebp]
cmp edx, esi
mov dword [ebx + 0xd8], 0
jbe 0x41d9c3
mov edx, dword [esp + 0x24]
mov eax, esi
sub eax, ecx
mov ecx, ebp
sub ecx, eax
cmp ecx, edx
jbe 0x41d9d3
lea ebp, [eax + edx]
jmp 0x41d9d3
mov eax, dword [esp + 0x24]
cmp ecx, eax
jae 0x41d9d3
cmp eax, edx
jae 0x41d9d3
sub eax, ecx
mov ebp, eax
xor esi, esi
and ebp, 0xfffffffc
mov dword [ebx + 0xd0], edi
mov dword [esp + 0x3c], 0x485aec
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
push ebp
lea ecx, [esp + 0x40]
mov byte [esp + 0x70], 2
call fcn.00406060
lea edx, [esp + 0x50]
push edx
mov ecx, ebx
call fcn.0041d650
mov ecx, dword [eax + 0xc]
cmp ecx, esi
mov byte [esp + 0x6c], 3
je 0x41da22
mov edx, dword [ecx + 0xc]
jmp 0x41da24
xor edx, edx
mov ecx, dword [eax + 8]
mov edi, dword [eax + 4]
imul ecx, edx
mov eax, dword [esp + 0x48]
add ecx, edi
cmp eax, esi
je 0x41da3c
mov eax, dword [eax + 0xc]
jmp 0x41da3e
xor eax, eax
imul eax, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
mov edx, dword [ecx]
push ebp
add eax, edi
push eax
call dword [edx + 0x18]
mov edi, eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x20], edi
mov byte [esp + 0x6c], 2
call fcn.004152e0
cmp edi, esi
jne 0x41da9f
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6c], 0
call fcn.00405ca0
lea ecx, [esp + 0x34]
mov dword [esp + 0x6c], 0xffffffff
call fcn.004040b0
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret
cmp edi, ebp
jbe 0x41daec
push str.CWaveStreamSound::GetNextSoundData_GetStream____Read__
push 0x4bb2a8
call fcn.004051b0
add esp, 8
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6c], 0
call fcn.00405ca0
lea ecx, [esp + 0x34]
mov dword [esp + 0x6c], 0xffffffff
call fcn.004040b0
pop ebp
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret
lea eax, [esp + 0x50]
push eax
mov ecx, ebx
call fcn.0041d690
mov ecx, eax
mov byte [esp + 0x6c], 4
call fcn.00419fc0
mov edx, dword [eax]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [ebx + 0xd4]
push ebp
push ecx
mov ecx, eax
call dword [edx + 0x3c]
lea ecx, [esp + 0x50]
mov esi, eax
mov byte [esp + 0x6c], 2
call fcn.004132f0
test esi, esi
je 0x41db84
push str.CWaveStreamSound::GetNextSoundData_GetBuffer____Lock__
push 0x4bb2a8
call fcn.004051b0
add esp, 8
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6c], 0
call fcn.00405ca0
lea ecx, [esp + 0x34]
mov dword [esp + 0x6c], 0xffffffff
call fcn.004040b0
pop ebp
pop edi
pop esi
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret
cmp edi, dword [esp + 0x14]
lea ecx, [esp + 0x3c]
push 0
jae 0x41dbac
call fcn.00405d30
mov edi, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esp + 0x20]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x41dbc8
call fcn.00405d30
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov esi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x41dc2c
mov edi, dword [esp + 0x14]
cmp eax, edi
jbe 0x41dc2c
mov ecx, dword [esp + 0x18]
sub eax, edi
cmp eax, ecx
mov dword [esp + 0x2c], eax
push 0
lea ecx, [esp + 0x40]
jae 0x41dc0d
call fcn.00405d30
mov ecx, dword [esp + 0x2c]
mov edx, ecx
mov esi, eax
add esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x41dc27
call fcn.00405d30
mov ecx, dword [esp + 0x18]
mov esi, eax
mov eax, ecx
add esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x50]
push ecx
mov ecx, ebx
call fcn.0041d690
mov ecx, eax
mov byte [esp + 0x6c], 5
call fcn.00419fc0
mov ecx, dword [esp + 0x18]
mov edx, dword [eax]
push ecx
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, eax
call dword [edx + 0x40]
lea ecx, [esp + 0x50]
mov esi, eax
mov byte [esp + 0x6c], 2
call fcn.004132f0
test esi, esi
je 0x41dcbc
push str.CWaveStreamSound::GetNextSoundData_GetBuffer____Unlock__
push 0x4bb2a8
call fcn.004051b0
add esp, 8
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6c], 0
call fcn.00405ca0
lea ecx, [esp + 0x34]
mov dword [esp + 0x6c], 0xffffffff
call fcn.004040b0
pop ebp
pop edi
pop esi
mov eax, 4
pop ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret
mov eax, dword [ebx + 0xd4]
mov ecx, dword [esp + 0x20]
add eax, ecx
xor edx, edx
div dword [esp + 0x30]
cmp ecx, ebp
mov dword [ebx + 0xd4], edx
jae 0x41dce8
mov eax, dword [ebx + 0xd8]
sub ebp, ecx
add eax, ebp
mov dword [ebx + 0xd8], eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6c], 0
call fcn.00405ca0
lea ecx, [esp + 0x34]
mov dword [esp + 0x6c], 0xffffffff
call fcn.004040b0
mov ecx, dword [esp + 0x64]
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret