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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xb8
mov ebp, 1
test ecx, ecx
je 0x6b46e549
cmp dword [ecx], 0xbab1e
jne 0x6b46e549
mov ebp, 8
cmp dword [ecx + 0xd0], 0
je 0x6b46e556
mov eax, ebp
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [esp + 0xd0], 0
js 0x6b46e742
mov dword [esp + 4], edx
mov dword [esp + 0xc], ecx
mov ebp, dword [ecx + 4]
xor edi, edi
test ebp, ebp
jne 0x6b46e58b
jmp 0x6b46e6e4
mov ebp, dword [ebp + 4]
test ebp, ebp
je 0x6b46e6e4
mov esi, edi
mov ecx, ebp
lea edx, [esp + 0x18]
call fcn.6b46e3c0
mov ecx, eax
and ecx, 1
mov edx, dword [esp + 0x18]
cmp edx, 0xffffffff
setne bl
and bl, cl
movzx edi, bl
add edi, esi
cmp ecx, 1
mov ecx, 0
sbb ecx, ecx
or ecx, edx
test eax, 0x10000
je 0x6b46e5d2
mov edx, dword [esp + 0x18]
xor ebx, ebx
cmp edx, 0xffffffff
setne bl
cmovne ecx, edx
add edi, ebx
cmp ecx, 0xffffffff
je 0x6b46e580
mov ecx, eax
and ecx, 2
mov edx, ecx
shr edx, 1
mov esi, dword [esp + 0x1c]
cmp esi, 0xffffffff
setne bl
and bl, dl
movzx edx, bl
add edi, edx
cmp ecx, 1
mov ecx, 0
sbb ecx, ecx
or ecx, esi
test eax, 0x20000
je 0x6b46e615
mov edx, dword [esp + 0x1c]
xor ebx, ebx
cmp edx, 0xffffffff
setne bl
cmovne ecx, edx
add edi, ebx
cmp ecx, 0xffffffff
je 0x6b46e580
mov ecx, eax
and ecx, 4
mov edx, ecx
shr edx, 2
mov esi, dword [esp + 0x20]
cmp esi, 0xffffffff
setne bl
and bl, dl
movzx edx, bl
add edi, edx
cmp ecx, 1
mov ecx, 0
sbb ecx, ecx
or ecx, esi
test eax, 0x40000
je 0x6b46e65d
mov edx, dword [esp + 0x20]
xor ebx, ebx
cmp edx, 0xffffffff
setne bl
cmovne ecx, edx
add edi, ebx
cmp ecx, 0xffffffff
je 0x6b46e580
mov ecx, eax
and ecx, 8
mov edx, ecx
shr edx, 3
mov esi, dword [esp + 0x24]
cmp esi, 0xffffffff
setne bl
and bl, dl
movzx edx, bl
add edi, edx
cmp ecx, 1
mov ecx, 0
sbb ecx, ecx
or ecx, esi
test eax, 0x80000
je 0x6b46e6a5
mov edx, dword [esp + 0x24]
xor ebx, ebx
cmp edx, 0xffffffff
setne bl
cmovne ecx, edx
add edi, ebx
cmp ecx, 0xffffffff
je 0x6b46e580
mov ecx, eax
shr cl, 4
cmp dword [esp + 0x28], 0xffffffff
setne dl
and dl, cl
movzx ecx, dl
add edi, ecx
test eax, 0x100000
je 0x6b46e580
xor eax, eax
cmp dword [esp + 0x28], 0xffffffff
setne al
add edi, eax
mov ebp, dword [ebp + 4]
test ebp, ebp
jne 0x6b46e58b
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x38], eax
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x5c], 0
je 0x6b46e74c
call fcn.6b485a50
mov ebx, eax
mov ebp, edx
push dword [esi + 0x5c]
push 0
push 0
call fcn.6b480f10
add esp, 0xc
mov dword [esi + 0x5c], eax
mov edx, dword [eax + 0x10]
xor ecx, ecx
cmp edx, ebx
jl 0x6b46e751
mov eax, dword [eax + 0x14]
jg 0x6b46e726
cmp eax, ebp
jle 0x6b46e751
push ebp
push ebx
push eax
push edx
call fcn.6b485b20
add esp, 0x10
xor esi, esi
mov ecx, 1
cmp ecx, eax
sbb esi, edx
cmovl ecx, eax
jmp 0x6b46e751
mov ebp, 0xa
jmp 0x6b46e549
mov ecx, 0xffffffff
mov edx, dword [esp + 0xd0]
cmp ecx, edx
mov eax, edx
cmovle eax, ecx
test ecx, ecx
cmovs eax, edx
mov dword [esp + 0x34], eax
cmp dword [esp + 0xdc], 1
mov ebp, dword [esp + 0xcc]
mov eax, ebp
sbb eax, 0xffffffff
add eax, edi
cmp eax, 0xb
jb 0x6b46e7a6
mov ecx, dword [0x6b83acf8]
shl eax, 3
push eax
call dword [ecx]
add esp, 4
test eax, eax
je 0x6b46e9c3
mov dword [esp + 0x2c], 0
mov edx, eax
jmp 0x6b46e7b0
lea edx, [esp + 0x68]
mov al, 1
mov dword [esp + 0x2c], eax
xor esi, esi
test edi, edi
mov ecx, edx
mov dword [esp + 0x10], edx
je 0x6b46e8cd
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 4]
test eax, eax
je 0x6b46e8cd
xor esi, esi
lea edx, [esp + 0x18]
mov dword [esp], esi
mov dword [esp + 0x30], eax
mov ecx, eax
call fcn.6b46e3c0
mov esi, eax
xor ebx, ebx
mov dword [esp + 8], eax
nop
nop
nop
nop
nop
xor ebp, ebp
bt esi, ebx
jae 0x6b46e820
mov eax, dword [esp + ebx*4 + 0x18]
cmp eax, 0xffffffff
je 0x6b46e820
mov ecx, dword [esp + 0x10]
mov edx, dword [esp]
mov dword [ecx + edx*8], eax
mov word [ecx + edx*8 + 4], 1
inc edx
mov dword [esp], edx
mov ebp, 0x29
jmp 0x6b46e825
mov eax, 0xffffffff
mov ecx, ebx
shr esi, cl
test esi, 0x10000
je 0x6b46e870
mov esi, dword [esp + ebx*4 + 0x18]
cmp esi, 0xffffffff
je 0x6b46e870
or ebp, 0x32
push 0
push 0
push 0
push esi
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp]
mov dword [eax + ecx*8], esi
mov word [eax + ecx*8 + 4], 4
inc ecx
mov dword [esp], ecx
mov eax, esi
mov esi, dword [esp + 8]
jmp 0x6b46e879
cmp eax, 0xffffffff
mov esi, dword [esp + 8]
je 0x6b46e8ac
push ebp
mov ecx, dword [esp + 0x10]
push dword [ecx + 0xc4]
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
sete cl
or cl, byte [esp + 0x2c]
je 0x6b46e9f1
test eax, eax
jne 0x6b46e9ff
inc ebx
cmp ebx, 5
jne 0x6b46e7f0
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 4]
test eax, eax
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0xcc]
mov esi, dword [esp]
lea edx, [esp + 0x18]
jne 0x6b46e7d5
test ebp, ebp
je 0x6b46e994
mov eax, dword [esp + 4]
lea ebx, [eax + 4]
jmp 0x6b46e8f0
mov ecx, esi
mov esi, dword [esp]
inc esi
add ebx, 8
dec ebp
je 0x6b46e994
mov dword [esp], esi
movzx eax, word [ebx]
test al, 1
mov ecx, 0x29
mov edx, 0
cmove ecx, edx
mov edx, eax
and edx, 2
lea esi, [ecx + edx*2]
test al, 4
je 0x6b46e923
or esi, 0x32
push 0
push 0
push 0
push dword [ebx - 4]
call dword [sym.imp.WS2_32.dll_send]
push esi
mov eax, dword [esp + 0x10]
push dword [eax + 0xc4]
push dword [ebx - 4]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x6b46e9cd
mov ecx, dword [ebx - 4]
mov edx, dword [esp]
lea eax, [edx*4]
mov esi, dword [esp + 0x10]
mov dword [esi + edx*8], ecx
mov word [esi + edx*8 + 4], 0
movzx ecx, word [ebx]
and ecx, 1
mov word [esi + edx*8 + 4], cx
movzx edx, word [ebx]
test dl, 2
je 0x6b46e97b
movzx ecx, cx
or ecx, 2
mov word [esi + eax*2 + 4], cx
movzx edx, word [ebx]
test dl, 4
je 0x6b46e8e0
movzx ecx, cx
or ecx, 4
mov word [esi + eax*2 + 4], cx
jmp 0x6b46e8e0
or dword [esp + 0x38], esi
je 0x6b46ea09
test esi, esi
je 0x6b46ea1a
push 0
push 0
push esi
push ecx
call fcn.6b476320
add esp, 0x10
test eax, eax
mov ebx, dword [esp + 0xcc]
jle 0x6b46ea25
mov dword [esp], 0
jmp 0x6b46ea48
mov ebp, 3
jmp 0x6b46e549
mov ebp, 4
cmp byte [esp + 0x2c], 0
mov ecx, dword [esp + 0x10]
jne 0x6b46e549
mov eax, dword [0x6b83acf4]
push ecx
call dword [eax]
add esp, 4
jmp 0x6b46e549
mov eax, dword [0x6b83acf4]
push dword [esp + 0x10]
call dword [eax]
add esp, 4
mov ebp, 4
jmp 0x6b46e549
mov dword [esp + 8], 0
mov esi, dword [esp + 0xc]
jmp 0x6b46ed0f
xor esi, esi
mov ebx, dword [esp + 0xcc]
jmp 0x6b46ea27
mov esi, eax
mov eax, dword [esp + 0xc]
add eax, 0xc4
push 0
push dword [esp + 0x38]
push 0
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov al, 1
mov dword [esp], eax
mov eax, esi
xor esi, esi
test eax, eax
cmovs eax, esi
mov dword [esp + 8], eax
test ebx, ebx
je 0x6b46eb1f
cmp dword [esp + 0xd4], 0
setne al
and al, byte [esp]
mov byte [esp + 0x17], al
mov eax, dword [esp + 0x10]
lea eax, [eax + edi*8 + 6]
mov dword [esp + 0x30], eax
jmp 0x6b46ea8e
inc esi
cmp dword [esp + 0xcc], esi
je 0x6b46eb1f
mov eax, dword [esp + 0x30]
movzx ebx, word [eax + esi*8]
mov dword [esp + 0x3c], 0
lea eax, [esp + 0x3c]
push eax
push 0
mov eax, dword [esp + 0xc]
push dword [eax + esi*8]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
je 0x6b46eaba
xor ebp, ebp
jmp 0x6b46eae6
mov eax, dword [esp + 0x3c]
xor ecx, ecx
test al, 0x29
setne cl
lea edx, [ecx + 4]
test al, 0x32
cmove edx, ecx
mov ebp, eax
shr ebp, 1
and ebp, 2
or ebp, edx
test eax, eax
setne al
and al, byte [esp + 0x17]
movzx eax, al
add dword [esp + 8], eax
push 0
mov eax, dword [esp + 0x10]
push dword [eax + 0xc4]
mov eax, dword [esp + 0xc]
push dword [eax + esi*8]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp byte [esp], 0
jne 0x6b46ea80
and ebx, 7
movzx eax, bp
or eax, ebx
mov ecx, dword [esp + 4]
mov word [ecx + esi*8 + 6], ax
jmp 0x6b46ea80
test edi, edi
je 0x6b46ecff
mov eax, dword [esp + 0xc]
mov edi, dword [eax + 4]
test edi, edi
je 0x6b46ecff
cmp dword [esp + 0xd4], 0
setne bl
and bl, byte [esp]
lea esi, [esp + 0x3c]
mov ebp, dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov byte [esp + 4], bl
jmp 0x6b46eb72
mov dword [esp + 8], esi
movzx ebx, byte [esp + 4]
lea esi, [esp + 0x3c]
mov ebp, dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov edi, dword [edi + 4]
test edi, edi
je 0x6b46ecff
mov ecx, edi
lea edx, [esp + 0x18]
call fcn.6b46e3c0
mov dword [esp], eax
test eax, 0x10001
je 0x6b46eb67
mov dword [esp + 0x3c], 0
push esi
push 0
push dword [esp + 0x20]
call ebp
test eax, eax
sete al
and al, bl
cmp dword [esp + 0x3c], 0
setne cl
and cl, al
movzx eax, cl
mov esi, dword [esp + 8]
add esi, eax
push 0
mov ebx, dword [esp + 0x10]
push dword [ebx + 0xc4]
push dword [esp + 0x20]
mov ebp, dword [sym.imp.WS2_32.dll_WSAEventSelect]
call ebp
test dword [esp], 0x20002
je 0x6b46eb54
mov dword [esp + 0x3c], 0
lea eax, [esp + 0x3c]
push eax
push 0
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
sete al
and al, byte [esp + 4]
cmp dword [esp + 0x3c], 0
setne cl
and cl, al
movzx eax, cl
add esi, eax
push 0
push dword [ebx + 0xc4]
push dword [esp + 0x24]
call ebp
test dword [esp], 0x40004
je 0x6b46eb54
mov dword [esp + 0x3c], 0
lea eax, [esp + 0x3c]
push eax
push 0
push dword [esp + 0x28]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
sete al
and al, byte [esp + 4]
cmp dword [esp + 0x3c], 0
setne cl
and cl, al
movzx eax, cl
add esi, eax
push 0
push dword [ebx + 0xc4]
push dword [esp + 0x28]
call ebp
test dword [esp], 0x80008
je 0x6b46eb54
mov dword [esp + 0x3c], 0
lea eax, [esp + 0x3c]
push eax
push 0
push dword [esp + 0x2c]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
sete al
and al, byte [esp + 4]
cmp dword [esp + 0x3c], 0
setne cl
and cl, al
movzx eax, cl
add esi, eax
push 0
push dword [ebx + 0xc4]
push dword [esp + 0x2c]
call ebp
test dword [esp], 0x100010
je 0x6b46eb54
mov dword [esp + 0x3c], 0
lea eax, [esp + 0x3c]
push eax
push 0
push dword [esp + 0x30]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
sete al
and al, byte [esp + 4]
cmp dword [esp + 0x3c], 0
setne cl
and cl, al
movzx eax, cl
add esi, eax
mov dword [esp + 8], esi
push 0
push dword [ebx + 0xc4]
push dword [esp + 0x30]
call ebp
jmp 0x6b46eb58
mov esi, dword [esp + 0xc]
push dword [esi + 0xc4]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
cmp byte [esp + 0x2c], 0
mov edi, dword [esp + 0xd4]
jne 0x6b46ed2b
mov eax, dword [0x6b83acf4]
push dword [esp + 0x10]
call dword [eax]
add esp, 4
mov eax, dword [esp + 0xd8]
test edi, edi
je 0x6b46ed3c
mov ecx, dword [esp + 8]
mov dword [edi], ecx
xor ebp, ebp
test eax, eax
je 0x6b46e549
cmp dword [esp + 0x38], 0
jne 0x6b46e549
cmp dword [esi], 0xbab1e
jne 0x6b46e549
cmp dword [esi + 0xd0], 0
jne 0x6b46e549
cmp dword [esi + 0x5c], 0
je 0x6b46edcb
call fcn.6b485a50
mov edi, eax
mov ebx, edx
push dword [esi + 0x5c]
push 0
push 0
call fcn.6b480f10
add esp, 0xc
mov dword [esi + 0x5c], eax
mov ecx, dword [eax + 0x10]
cmp ecx, edi
jl 0x6b46e549
mov eax, dword [eax + 0x14]
jg 0x6b46eda3
cmp eax, ebx
jle 0x6b46e549
push ebx
push edi
push eax
push ecx
call fcn.6b485b20
add esp, 0x10
xor ebp, ebp
mov ecx, 1
cmp ecx, eax
mov esi, 0
sbb esi, edx
cmovl ecx, eax
test ecx, ecx
jne 0x6b46edd0
jmp 0x6b46e549
mov ecx, 0xffffffff
test ecx, ecx
mov eax, ecx
mov edx, dword [esp + 0x34]
cmovs eax, edx
cmp ecx, edx
cmovg eax, edx
mov ecx, eax
sar ecx, 0x1f
push ecx
push eax
call fcn.6b4761a0
add esp, 8
xor ebp, ebp
jmp 0x6b46e549