Function at 0x5e7cc2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x669489
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x6d35d0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x20], 1
lea esi, [ebx + 0xf8]
push esi
lea ecx, [esp + 0x6c]
call fcn.004d0b6a
and dword [esp + 0x80], 0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
test al, al
je 0x5e8281
lea eax, [ebx - 4]
call fcn.005e82a5
test al, al
je 0x5e807a
lea edi, [ebx + 0xb0]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
test eax, eax
je 0x5e807a
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
or dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x68]
test al, al
je 0x5e80a5
call fcn.004d0bbf
mov eax, dword [edi]
mov ecx, edi
mov byte [esp + 0x17], 0
call dword [eax + 0xc]
mov edi, dword [eax + 8]
imul edi, edi, 3
push 3
pop ecx
xor edx, edx
mov eax, edi
div ecx
xor edx, edx
push esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x3c], eax
lea eax, [edi + edi]
div ecx
lea ecx, [esp + 0x60]
mov dword [esp + 0x28], eax
call fcn.004d0b6a
mov dword [esp + 0x80], 1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
test al, al
je 0x5e80ae
push edi
push 0
lea esi, [ebx - 4]
call fcn.005e8460
mov ecx, dword [ebx + 0x90]
mov eax, dword [ecx]
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x40]
push edx
call dword [eax + 0x2c]
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
lea eax, [ecx + esi]
xor edx, edx
div edi
and dword [esp + 0x2c], 0
push esi
push ecx
lea edi, [esp + 0x34]
lea esi, [ebx - 4]
mov dword [esp + 0x24], edx
call fcn.005e8343
mov edx, dword [esp + 0x2c]
mov ecx, eax
mov eax, dword [esp + 0x28]
add eax, edx
xor edx, edx
div dword [esp + 0x18]
or esi, 0xffffffff
mov edi, edx
mov dword [ebx + 0xbc], edi
cmp ecx, esi
je 0x5e8022
cmp ecx, 1
jne 0x5e7e33
cmp byte [ebx + 0xb8], 0
jne 0x5e7e33
mov byte [esp + 0x17], cl
lea ecx, [esp + 0x5c]
mov dword [esp + 0x80], esi
call fcn.004d0bbf
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
test al, al
je 0x5e8071
lea eax, [ebx + 0xf8]
push eax
lea ecx, [esp + 0x54]
call fcn.004d0b6a
mov dword [esp + 0x80], 2
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
test al, al
je 0x5e80b4
mov ecx, dword [ebx + 0x90]
mov eax, dword [ecx]
push 1
call dword [eax + 0x30]
cmp eax, 1
je 0x5e7ebf
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
test al, al
je 0x5e80b4
lea esi, [ebx - 4]
call fcn.005e7b29
lea ecx, [esp + 0x50]
test al, al
je 0x5e807e
call fcn.004d0bf2
lea ecx, [esp + 0x50]
jmp 0x5e8055
lea ecx, [esp + 0x50]
mov byte [ebx + 0xba], 0
mov dword [esp + 0x80], esi
call fcn.004d0bbf
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
test al, al
je 0x5e8092
lea ecx, [ebx + 0xcc]
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [ebx]
push 0x3e8
mov ecx, ebx
call dword [eax + 0x28]
cmp byte [esp + 0x17], 0
jne 0x5e80df
lea eax, [ebx + 0xf8]
push eax
lea ecx, [esp + 0x48]
call fcn.004d0b6a
mov dword [esp + 0x80], 3
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
test al, al
je 0x5e80c1
mov ecx, dword [ebx + 0x90]
mov eax, dword [ecx]
lea edx, [esp + 0x30]
push edx
lea edx, [esp + 0x44]
push edx
call dword [eax + 0x2c]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
ja 0x5e7f55
mov edx, ecx
jmp 0x5e7f5b
mov edx, dword [esp + 0x18]
add edx, ecx
and dword [esp + 0x2c], 0
sub eax, edx
add eax, dword [esp + 0x24]
lea edi, [esp + 0x2c]
push eax
push ecx
lea esi, [ebx - 4]
mov dword [esp + 0x3c], eax
call fcn.005e8343
mov ecx, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esp + 0x2c]
add eax, ecx
xor edx, edx
div dword [esp + 0x18]
mov eax, dword [esp + 0x34]
add eax, ecx
mov edi, edx
xor edx, edx
div dword [esp + 0x18]
mov dword [ebx + 0xbc], edi
mov dword [esp + 0x1c], edx
cmp esi, 1
jne 0x5e7fb4
cmp byte [ebx + 0xb8], 0
je 0x5e80ce
or edi, 0xffffffff
cmp esi, edi
je 0x5e7fed
lea ecx, [esp + 0x44]
mov dword [esp + 0x80], edi
call fcn.004d0bbf
mov eax, dword [ebx]
push 0x3e8
mov ecx, ebx
call dword [eax + 0x28]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
test al, al
je 0x5e8092
or esi, edi
jmp 0x5e7f06
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
test al, al
je 0x5e81a6
lea esi, [ebx - 4]
call fcn.005e7b29
lea ecx, [esp + 0x44]
test al, al
je 0x5e81b2
call fcn.004d0bf2
mov dword [esp + 0x80], edi
lea ecx, [esp + 0x44]
jmp 0x5e805d
push str.CWaveSoundDSStream::ThreadProc__
call fcn.00426940
mov eax, dword [ebx]
pop ecx
mov ecx, ebx
call dword [eax + 0x18]
test al, al
je 0x5e8295
lea esi, [ebx - 4]
call fcn.005e7b29
lea ecx, [esp + 0x5c]
test al, al
je 0x5e807e
call fcn.004d0bf2
lea ecx, [esp + 0x5c]
or dword [esp + 0x80], 0xffffffff
call fcn.004d0bbf
inc dword [esp + 0x20]
cmp dword [esp + 0x20], 5
jle 0x5e7cf8
mov byte [ebx + 0xba], 0
jmp 0x5e8092
lea ecx, [esp + 0x68]
mov byte [ebx + 0xba], 0
or dword [esp + 0x80], 0xffffffff
call fcn.004d0bbf
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebx + 0xba], 0
jmp 0x5e808d
lea ecx, [esp + 0x5c]
jmp 0x5e8085
mov dword [esp + 0x80], esi
lea ecx, [esp + 0x50]
jmp 0x5e808d
mov dword [esp + 0x80], esi
lea ecx, [esp + 0x44]
jmp 0x5e808d
or dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x44]
call fcn.004d0bbf
lea esi, [ebx + 0xf8]
push esi
lea ecx, [esp + 0x6c]
mov byte [esp + 0x1b], 0
call fcn.004d0b6a
mov dword [esp + 0x80], 4
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
test al, al
je 0x5e8281
mov ecx, dword [ebx + 0x90]
mov eax, dword [ecx]
lea edx, [esp + 0x2c]
push edx
lea edx, [esp + 0x24]
push edx
call dword [eax + 0x2c]
cmp edi, dword [esp + 0x20]
ja 0x5e812e
mov byte [esp + 0x17], 1
or dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x68]
call fcn.004d0bbf
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
test al, al
je 0x5e8092
push esi
lea ecx, [esp + 0x6c]
call fcn.004d0b6a
mov dword [esp + 0x80], 5
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
test al, al
je 0x5e8281
lea eax, [ebx - 4]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [ebx + 0x90]
lea edx, [esp + 0x2c]
push edx
lea edx, [esp + 0x24]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x2c]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
ja 0x5e81be
mov edx, ecx
jmp 0x5e81c4
mov dword [esp + 0x80], edi
jmp 0x5e80c8
mov dword [esp + 0x80], edi
jmp 0x5e808d
mov edx, dword [esp + 0x18]
add edx, ecx
mov esi, edx
sub esi, eax
cmp esi, dword [esp + 0x38]
ja 0x5e81f7
mov esi, dword [esp + 0x30]
sub eax, edx
add eax, dword [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x3c], eax
call fcn.005e8460
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
add eax, ecx
xor edx, edx
div dword [esp + 0x18]
mov dword [esp + 0x1c], edx
cmp byte [esp + 0x17], 0
je 0x5e8220
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x20]
jbe 0x5e822e
or dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x68]
mov byte [esp + 0x17], 0
call fcn.004d0bbf
jmp 0x5e8257
mov eax, dword [esp + 0x20]
cmp edi, eax
jb 0x5e828a
cmp dword [esp + 0x28], eax
ja 0x5e828a
or dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x68]
call fcn.004d0bbf
mov eax, dword [ebx]
push 0xa
mov ecx, ebx
call dword [eax + 0x28]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
test al, al
je 0x5e8092
lea eax, [ebx + 0xf8]
push eax
lea ecx, [esp + 0x6c]
call fcn.004d0b6a
mov dword [esp + 0x80], 5
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
test al, al
jne 0x5e8179
lea ecx, [esp + 0x68]
jmp 0x5e8085
mov esi, dword [esp + 0x30]
call fcn.005e70d7
jmp 0x5e8281
mov dword [esp + 0x80], esi
lea ecx, [esp + 0x5c]
jmp 0x5e808d