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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x61fb34
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x67e034]
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.00462217
and dword [esp + 0x80], 0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
test al, al
je 0x5a1f3c
lea eax, [ebx - 4]
call fcn.005a1f60
test al, al
je 0x5a1d35
lea edi, [ebx + 0xb0]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
test eax, eax
je 0x5a1d35
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
or dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x68]
test al, al
je 0x5a1d60
call fcn.0046226c
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.00462217
mov dword [esp + 0x80], 1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
test al, al
je 0x5a1d69
push edi
push 0
lea esi, [ebx - 4]
call fcn.005a211b
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.005a1ffe
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 0x5a1cdd
cmp ecx, 1
jne 0x5a1aee
cmp byte [ebx + 0xb8], 0
jne 0x5a1aee
mov byte [esp + 0x17], cl
lea ecx, [esp + 0x5c]
mov dword [esp + 0x80], esi
call fcn.0046226c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
test al, al
je 0x5a1d2c
lea eax, [ebx + 0xf8]
push eax
lea ecx, [esp + 0x54]
call fcn.00462217
mov dword [esp + 0x80], 2
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
test al, al
je 0x5a1d6f
mov ecx, dword [ebx + 0x90]
mov eax, dword [ecx]
push 1
call dword [eax + 0x30]
cmp eax, 1
je 0x5a1b7a
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
test al, al
je 0x5a1d6f
lea esi, [ebx - 4]
call fcn.005a17e4
lea ecx, [esp + 0x50]
test al, al
je 0x5a1d39
call fcn.0046229f
lea ecx, [esp + 0x50]
jmp 0x5a1d10
lea ecx, [esp + 0x50]
mov byte [ebx + 0xba], 0
mov dword [esp + 0x80], esi
call fcn.0046226c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
test al, al
je 0x5a1d4d
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 0x5a1d9a
lea eax, [ebx + 0xf8]
push eax
lea ecx, [esp + 0x48]
call fcn.00462217
mov dword [esp + 0x80], 3
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
test al, al
je 0x5a1d7c
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 0x5a1c10
mov edx, ecx
jmp 0x5a1c16
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.005a1ffe
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 0x5a1c6f
cmp byte [ebx + 0xb8], 0
je 0x5a1d89
or edi, 0xffffffff
cmp esi, edi
je 0x5a1ca8
lea ecx, [esp + 0x44]
mov dword [esp + 0x80], edi
call fcn.0046226c
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 0x5a1d4d
or esi, edi
jmp 0x5a1bc1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
test al, al
je 0x5a1e61
lea esi, [ebx - 4]
call fcn.005a17e4
lea ecx, [esp + 0x44]
test al, al
je 0x5a1e6d
call fcn.0046229f
mov dword [esp + 0x80], edi
lea ecx, [esp + 0x44]
jmp 0x5a1d18
push str.CWaveSoundDSStream::ThreadProc__
call fcn.0045bac9
mov eax, dword [ebx]
pop ecx
mov ecx, ebx
call dword [eax + 0x18]
test al, al
je 0x5a1f50
lea esi, [ebx - 4]
call fcn.005a17e4
lea ecx, [esp + 0x5c]
test al, al
je 0x5a1d39
call fcn.0046229f
lea ecx, [esp + 0x5c]
or dword [esp + 0x80], 0xffffffff
call fcn.0046226c
inc dword [esp + 0x20]
cmp dword [esp + 0x20], 5
jle 0x5a19b3
mov byte [ebx + 0xba], 0
jmp 0x5a1d4d
lea ecx, [esp + 0x68]
mov byte [ebx + 0xba], 0
or dword [esp + 0x80], 0xffffffff
call fcn.0046226c
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 0x5a1d48
lea ecx, [esp + 0x5c]
jmp 0x5a1d40
mov dword [esp + 0x80], esi
lea ecx, [esp + 0x50]
jmp 0x5a1d48
mov dword [esp + 0x80], esi
lea ecx, [esp + 0x44]
jmp 0x5a1d48
or dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x44]
call fcn.0046226c
lea esi, [ebx + 0xf8]
push esi
lea ecx, [esp + 0x6c]
mov byte [esp + 0x1b], 0
call fcn.00462217
mov dword [esp + 0x80], 4
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
test al, al
je 0x5a1f3c
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 0x5a1de9
mov byte [esp + 0x17], 1
or dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x68]
call fcn.0046226c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
test al, al
je 0x5a1d4d
push esi
lea ecx, [esp + 0x6c]
call fcn.00462217
mov dword [esp + 0x80], 5
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
test al, al
je 0x5a1f3c
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 0x5a1e79
mov edx, ecx
jmp 0x5a1e7f
mov dword [esp + 0x80], edi
jmp 0x5a1d83
mov dword [esp + 0x80], edi
jmp 0x5a1d48
mov edx, dword [esp + 0x18]
add edx, ecx
mov esi, edx
sub esi, eax
cmp esi, dword [esp + 0x38]
ja 0x5a1eb2
mov esi, dword [esp + 0x30]
sub eax, edx
add eax, dword [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x3c], eax
call fcn.005a211b
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 0x5a1edb
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x20]
jbe 0x5a1ee9
or dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x68]
mov byte [esp + 0x17], 0
call fcn.0046226c
jmp 0x5a1f12
mov eax, dword [esp + 0x20]
cmp edi, eax
jb 0x5a1f45
cmp dword [esp + 0x28], eax
ja 0x5a1f45
or dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x68]
call fcn.0046226c
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 0x5a1d4d
lea eax, [ebx + 0xf8]
push eax
lea ecx, [esp + 0x6c]
call fcn.00462217
mov dword [esp + 0x80], 5
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
test al, al
jne 0x5a1e34
lea ecx, [esp + 0x68]
jmp 0x5a1d40
mov esi, dword [esp + 0x30]
call fcn.005a0d92
jmp 0x5a1f3c
mov dword [esp + 0x80], esi
lea ecx, [esp + 0x5c]
jmp 0x5a1d48