Function at 0x1001db50
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007087b
mov eax, dword fs:[0]
push eax
sub esp, 0x594
mov eax, dword [0x1008c0c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x10091225], 0
je 0x1001e2a3
cmp byte [0x1008eb1b], 0
je 0x1001dc09
call fcn.1002ae90
test al, al
jne 0x1001dc00
mov eax, dword [0x1009150c]
mov byte [ebp - 0x573], 0
mov eax, dword [eax]
mov dword [ebp - 0x578], eax
cmp byte [eax + 0xd], 0
jne 0x1001dbd6
mov ecx, dword [eax + 0x14]
call fcn.10034d10
lea ecx, [ebp - 0x578]
call fcn.1001fa40
mov eax, dword [ebp - 0x578]
cmp byte [eax + 0xd], 0
je 0x1001dbb7
xor ebx, ebx
mov esi, 0x100
nop dword [eax]
mov cl, bl
call fcn.1002ba20
inc ebx
cmp bx, si
jb 0x1001dbe0
mov dword [0x10091220], 0
mov byte [0x1008eb1b], 0
jmp 0x1001dc56
cmp byte [0x1008eb1b], 0
jne 0x1001dc56
call fcn.1002ae90
test al, al
je 0x1001dc56
mov eax, dword [0x1009150c]
mov byte [ebp - 0x573], 0
mov eax, dword [eax]
mov dword [ebp - 0x578], eax
cmp byte [eax + 0xd], 0
jne 0x1001dc4f
nop dword [eax]
mov ecx, dword [eax + 0x14]
call fcn.10034d10
lea ecx, [ebp - 0x578]
call fcn.1001fa40
mov eax, dword [ebp - 0x578]
cmp byte [eax + 0xd], 0
je 0x1001dc30
mov byte [0x1008eb1b], 1
cmp byte [0x1008eb1a], 0
je 0x1001dccf
mov eax, dword [0x1008c880]
mov ecx, dword [0x1008c800]
sub ecx, eax
jns 0x1001dc74
add ecx, dword [0x1008c780]
test ecx, ecx
je 0x1001dccf
mov ecx, dword [0x1008c880]
mov eax, dword [0x1008c800]
cmp eax, ecx
jne 0x1001dc8b
xor eax, eax
jmp 0x1001dc96
mov eax, dword [0x1008c784]
lea eax, [eax + ecx*4]
sub eax, 0xffffff80
mov esi, dword [eax]
mov dword [eax], 0
mov edi, dword [0x1008c880]
mov ecx, dword [0x1008c784]
sub ecx, 0xffffff80
lea ecx, [ecx + edi*4]
call fcn.10018870
inc edi
xor eax, eax
cmp edi, dword [0x1008c780]
cmove edi, eax
mov dword [0x1008c880], edi
mov eax, esi
mov ebx, esi
mov edi, esi
jmp 0x1001dcd7
xor esi, esi
xor eax, eax
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x584], esi
mov dword [ebp - 4], 0
test eax, eax
je 0x1001dd4d
mov ecx, dword [esi]
call fcn.1001e3a0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x1001dd3d
mov ecx, dword [edi + 8]
sub ecx, eax
cmp ecx, 0x1000
jb 0x1001dd1f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001ded7
mov eax, edx
push ecx
push eax
call fcn.1006c392
mov dword [esi], 0
add esp, 8
mov dword [ebx + 4], 0
mov dword [edi + 8], 0
push 0xc
push esi
call fcn.1006c392
add esp, 8
jmp 0x1001dc56
cmp byte [0x1008eb1a], 0
mov edx, 0xffff
je 0x1001ddcc
mov eax, dword [0x1008c700]
mov ecx, dword [0x1008c680]
sub ecx, eax
jns 0x1001dd70
add ecx, dword [0x1008c600]
test ecx, ecx
je 0x1001ddcc
mov ecx, dword [0x1008c700]
mov eax, dword [0x1008c680]
cmp eax, ecx
jne 0x1001dd87
xor eax, eax
jmp 0x1001dd92
mov eax, dword [0x1008c604]
lea eax, [eax + ecx*4]
sub eax, 0xffffff80
mov esi, dword [eax]
mov dword [eax], 0
mov edi, dword [0x1008c700]
mov ecx, dword [0x1008c604]
sub ecx, 0xffffff80
lea ecx, [ecx + edi*4]
call fcn.100186d0
inc edi
xor eax, eax
cmp edi, dword [0x1008c600]
cmove edi, eax
mov dword [0x1008c700], edi
mov eax, esi
mov edx, 0xffff
jmp 0x1001ddd0
xor esi, esi
xor eax, eax
mov dword [ebp - 0x588], esi
mov dword [ebp - 4], 1
test eax, eax
je 0x1001dedd
mov edi, dword [esi]
movzx ebx, word [edi + 0x10]
cmp bx, dx
je 0x1001de0e
mov ecx, dword [0x10091430]
mov eax, dword [ecx]
cmp eax, ecx
je 0x1001de0e
nop dword [eax]
cmp word [eax + 0x20], bx
je 0x1001de7f
mov edx, dword [eax]
mov eax, edx
cmp edx, ecx
jne 0x1001de00
mov ebx, dword [edi + 0xc]
lea eax, [ebp - 0x58c]
push eax
lea eax, [ebp - 0x598]
mov dword [ebp - 0x58c], ebx
push eax
call fcn.10021e00
mov ecx, dword [ebp - 0x590]
mov eax, dword [0x1009150c]
cmp byte [ecx + 0xd], 0
jne 0x1001de40
cmp ebx, dword [ecx + 0x10]
jae 0x1001de42
mov ecx, eax
cmp ecx, eax
je 0x1001de7f
mov ecx, dword [ecx + 0x14]
push edi
call fcn.10034a20
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x1001dec7
mov ecx, dword [esi + 8]
sub ecx, eax
cmp ecx, 0x1000
jb 0x1001de7b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001ded7
mov eax, edx
push ecx
push eax
jmp 0x1001deab
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1001dec7
mov ecx, dword [esi + 8]
sub ecx, edi
cmp ecx, 0x1000
jb 0x1001dea9
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x1001ded7
mov edi, edx
push ecx
push edi
call fcn.1006c392
mov dword [esi], 0
add esp, 8
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push 0xc
push esi
call fcn.1006c392
add esp, 8
jmp 0x1001dd4d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov eax, dword [0x1009150c]
mov byte [ebp - 0x579], 0
mov eax, dword [eax]
mov dword [ebp - 0x580], eax
cmp byte [eax + 0xd], 0
jne 0x1001df15
mov ecx, dword [eax + 0x14]
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x580]
call fcn.1001fa40
mov eax, dword [ebp - 0x580]
cmp byte [eax + 0xd], 0
je 0x1001def7
mov dword [ebp - 4], 2
cmp byte [0x1008eb89], 0
je 0x1001df63
mov edi, 0x411990
mov ecx, 0xb6f028
call edi
mov ecx, 0xb6f028
lea esi, [eax + 0x10]
call edi
mov ecx, dword [0xb6f03c]
add eax, 0x20
test ecx, ecx
je 0x1001df4d
add ecx, 0x30
jmp 0x1001df52
mov ecx, 0xb6f02c
push esi
push eax
push 0
push ecx
call dword [sym.imp.bass.dll_BASS_Set3DPosition]
call dword [sym.imp.bass.dll_BASS_Apply3D]
cmp byte [0x1008eb94], 0
mov esi, dword [sym.imp.bass.dll_BASS_ChannelGetData]
je 0x1001dfc3
cmp byte [0x1008eb8b], 0
je 0x1001dfc3
push 0
push 0
push dword [0x10091118]
call esi
cmp eax, 0xffffffff
je 0x1001dfc3
test eax, eax
je 0x1001dfc3
mov ecx, 0x2580
cmp eax, ecx
cmova eax, ecx
push eax
push 0x1008eb98
push dword [0x10091118]
call esi
cmp eax, 0xffffffff
je 0x1001dfc3
test eax, eax
je 0x1001dfc3
push eax
push 0x1008eb98
push dword [0x1009111c]
call dword [sym.imp.bass.dll_BASS_StreamPutData]
mov edi, dword [sym.imp.bass.dll_BASS_ChannelPlay]
nop dword [eax]
mov eax, dword [0x1008ca00]
mov ecx, dword [0x1008c980]
sub ecx, eax
jns 0x1001dfe5
add ecx, dword [0x1008c900]
test ecx, ecx
je 0x1001e11a
mov ecx, dword [0x1008ca00]
mov eax, dword [0x1008c980]
cmp eax, ecx
jne 0x1001e000
xor eax, eax
jmp 0x1001e00b
mov eax, dword [0x1008c904]
lea eax, [eax + ecx*8]
sub eax, 0xffffff80
mov edx, dword [0x1008ca00]
mov ebx, dword [eax]
inc edx
mov ecx, dword [eax + 4]
mov eax, ebx
cmp edx, dword [0x1008c900]
jne 0x1001e023
xor edx, edx
shr eax, 0x10
mov dword [0x1008ca00], edx
test al, al
je 0x1001e0c5
cmp byte [0x1008c589], 0
je 0x1001dfd0
cmp byte [0x1008eb7c], 0
jne 0x1001e099
cmp byte [0x1008eb7d], 0
jne 0x1001e099
cmp ecx, 1
jne 0x1001e099
cmp byte [0x1008eb7e], 0
jne 0x1001dfd0
cmp byte [0x1008eb94], 0
mov byte [0x1008eb7d], cl
je 0x1001e093
cmp byte [0x1008eb8a], 0
jne 0x1001e093
cmp byte [0x1008eb8b], 0
jne 0x1001e093
push 0
push dword [0x10091118]
call edi
mov byte [0x1008eb8a], 1
mov byte [0x100993b8], bl
cmp byte [0x1008eb7e], 0
jne 0x1001dfd0
push ecx
lea edx, [ebp - 0x571]
mov byte [ebp - 0x571], bh
mov ecx, 0x11
call fcn.10016ea0
add esp, 4
jmp 0x1001dfd0
cmp byte [0x1008c589], 0
je 0x1001dfd0
cmp byte [0x1008eb7c], 0
jne 0x1001e0ee
cmp byte [0x1008eb7d], 0
je 0x1001e0ee
test ecx, ecx
jne 0x1001e0ee
mov byte [0x1008eb7d], cl
cmp byte [0x1008eb7e], 0
jne 0x1001dfd0
push ecx
lea edx, [ebp - 0x572]
mov byte [ebp - 0x572], bh
mov ecx, 0x12
call fcn.10016ea0
add esp, 4
jmp 0x1001dfd0
cmp byte [0x1008eb94], 0
je 0x1001e2a3
cmp byte [0x1008eb8a], 0
je 0x1001e2a3
cmp byte [0x1008eb8b], 0
jne 0x1001e2a3
push 0
push 0
push dword [0x10091118]
call esi
cmp eax, 0xffffffff
je 0x1001e2a3
cmp eax, 0x2580
jb 0x1001e2a3
push 0x2580
push 0x1008eb98
push dword [0x10091118]
call esi
cmp eax, 0x2580
jne 0x1001e2a3
push 0x560
lea eax, [ebp - 0x570]
push eax
push 0x12c0
push 0x1008eb98
push dword [0x1008eb90]
call fcn.1003e600
xor ecx, ecx
add esp, 0x14
test eax, eax
cmovg ecx, eax
test ecx, ecx
je 0x1001e2a3
movzx edi, cx
test di, di
je 0x1001e22d
mov eax, 0x560
cmp di, ax
ja 0x1001e22d
cmp dword [0x1008eb74], 3
jne 0x1001e22d
mov eax, dword [0x100914bc]
push ecx
mov word [eax + 0x12], di
mov esi, dword [0x100914bc]
lea ecx, [esi + 4]
call fcn.1003aaa0
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0x570]
push edi
push eax
mov eax, dword [0x100914bc]
add eax, 0x18
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [0x100914bc]
add esp, 0xc
movzx eax, word [ecx + 0x12]
push 0
add eax, 0x18
push eax
push ecx
push dword [0x1008c584]
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [0x100914bc]
mov esi, dword [sym.imp.bass.dll_BASS_ChannelGetData]
inc dword [eax + 0x14]
cmp byte [0x1008eb7d], 0
jne 0x1001e2a3
cmp byte [0x1008eb94], 0
je 0x1001e28e
cmp byte [0x1008eb8b], 0
mov byte [0x1008eb8a], 0
jne 0x1001e28e
push dword [0x10091118]
call dword [sym.imp.bass.dll_BASS_ChannelPause]
push 0xfbc
push dword [0x1008eb90]
call fcn.10040fc0
add esp, 8
push 0
push 0
push dword [0x10091118]
call esi
cmp eax, 0xffffffff
je 0x1001e28e
test eax, eax
je 0x1001e28e
push eax
push 0
push dword [0x10091118]
call esi
cmp byte [0x1008eb1a], 0
je 0x1001e2a3
mov eax, dword [0x100914bc]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006bfcb
mov esp, ebp
pop ebp
ret