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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xf0
mov dword [esp + 0x2c], edx
mov eax, dword [0x7a9040]
xor eax, ebp
mov dword [esp + 0xe8], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0xd0], xmm0
mov dword [esp + 0xe0], 0xffffffff
xor esi, esi
inc esi
test ecx, ecx
je 0x4fb146
cmp dword [ecx], 0xbab1e
jne 0x4fb146
mov esi, 8
cmp byte [ecx + 0x10b], 0
je 0x4fb165
mov ecx, dword [esp + 0xe8]
xor ecx, ebp
call fcn.00650d60
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, 0xa
jmp 0x4fb146
cmp dword [ebp + 0xc], 0
js 0x4fb15e
movdqa xmmword [esp + 0xc0], xmm0
movdqa xmmword [esp + 0xb0], xmm0
movdqa xmmword [esp + 0xa0], xmm0
movdqa xmmword [esp + 0x90], xmm0
movdqa xmmword [esp + 0x80], xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x60], xmm0
movdqu xmmword [esp + 0x6c], xmm0
mov dword [esp + 0x14], ecx
mov esi, dword [ecx + 4]
mov dword [esp + 0xc], 0
mov ecx, 0
test esi, esi
je 0x4fb287
xor edi, edi
lea ebx, [esp + 0xd0]
jmp 0x4fb223
mov esi, 4
cmp dword [esp + 0x30], 0xb
jb 0x4fb146
mov ecx, dword [fcn.005464a0]
call dword [0x7a29f4]
push dword [esp + 0x18]
call ecx
add esp, 4
jmp 0x4fb146
test eax, 0x100010
sete al
cmp dword [esp + 0xe0], 0xffffffff
sete cl
or cl, al
movzx eax, cl
xor eax, 5
add edi, eax
mov ecx, edi
mov esi, dword [esi + 0x10]
mov edi, ecx
test esi, esi
je 0x4fb287
mov ecx, esi
mov edx, ebx
call fcn.004fb070
test eax, 0x10001
je 0x4fb218
cmp dword [esp + 0xd0], 0xffffffff
je 0x4fb218
lea ecx, [edi + 1]
test eax, 0x20002
je 0x4fb21a
cmp dword [esp + 0xd4], 0xffffffff
je 0x4fb21a
lea ecx, [edi + 2]
test eax, 0x40004
je 0x4fb21a
cmp dword [esp + 0xd8], 0xffffffff
je 0x4fb21a
lea ecx, [edi + 3]
test eax, 0x80008
je 0x4fb21a
cmp dword [esp + 0xdc], 0xffffffff
jne 0x4fb1fb
jmp 0x4fb21a
xor eax, eax
dec eax
mov dword [esp + 0xc], eax
jmp 0x4fb343
mov bl, byte [ebp + 0x18]
mov edi, dword [esp + 0x14]
cmp byte [edi + 0x10c], 0
mov dword [esp + 0x28], ecx
jne 0x4fb343
cmp dword [edi + 0x6c], 0
je 0x4fb27b
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x40]
movdqa xmmword [esi], xmm0
push esi
call fcn.0050a160
add esp, 4
mov eax, dword [edi + 0x6c]
sub esp, 0x14
mov dword [esp + 0x10], eax
pxor xmm0, xmm0
movdqu xmmword [esp], xmm0
call fcn.00508710
add esp, 0x14
mov dword [edi + 0x6c], eax
mov ecx, dword [eax + 0x10]
mov edi, dword [esi]
mov edx, dword [esi + 4]
mov dword [esp + 0xc], 0
cmp ecx, edi
mov esi, dword [eax + 0x14]
mov ebx, esi
sbb ebx, edx
jl 0x4fb338
cmp edi, ecx
sbb edx, esi
mov bl, byte [ebp + 0x18]
jl 0x4fb305
mov ecx, dword [eax + 0x18]
cmp ecx, dword [esp + 0x48]
jle 0x4fb33b
add eax, 0x10
sub esp, 0x20
movaps xmm0, xmmword [esp + 0x60]
movups xmmword [esp + 0x10], xmm0
movdqu xmm0, xmmword [eax]
movdqu xmmword [esp], xmm0
call fcn.0050a240
add esp, 0x20
xor ecx, ecx
xor esi, esi
inc esi
cmp esi, eax
sbb ecx, edx
cmovl esi, eax
mov dword [esp + 0xc], esi
jmp 0x4fb33b
mov bl, byte [ebp + 0x18]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov eax, dword [ebp + 0xc]
mov edx, dword [esp + 0xc]
cmp edx, eax
cmovb eax, edx
mov dword [esp + 0x34], eax
movzx ebx, bl
add ebx, dword [ebp + 8]
add ebx, ecx
cmp ebx, 0xb
jb 0x4fb38b
mov ecx, dword [fcn.00546590]
lea esi, [ebx*8]
call dword [0x7a29f4]
push esi
call ecx
mov ecx, dword [esp + 0x2c]
add esp, 4
test eax, eax
jne 0x4fb392
mov esi, 3
jmp 0x4fb146
lea eax, [esp + 0x80]
mov dword [esp + 0x30], ebx
mov dword [esp + 0xc], 0
test ecx, ecx
mov dword [esp + 0x18], eax
je 0x4fb3b7
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4fb3b7
mov dword [esp + 0xc], 0
jmp 0x4fb3db
cmp dword [ebp + 8], 0
je 0x4fb5e6
xor ebx, ebx
mov esi, dword [esp + 0xc]
jmp 0x4fb576
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx + 0x10]
test ecx, ecx
je 0x4fb3b7
mov dword [esp + 0x24], ecx
lea edx, [esp + 0xd0]
call fcn.004fb070
mov dword [esp + 0x10], eax
xor ebx, ebx
jmp 0x4fb439
xor eax, eax
push eax
push eax
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
or edi, 0x32
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
or byte [eax + ecx*8 + 4], 0x10
push edi
mov edi, dword [esp + 0x18]
push dword [edi + 0x104]
push dword [esp + ebx*4 + 0xd8]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x4fb1d1
inc ebx
inc dword [esp + 0xc]
cmp ebx, 5
je 0x4fb3d0
xor edi, edi
inc edi
mov ecx, ebx
shl edi, cl
mov eax, 0x10000
shl eax, cl
mov edx, dword [esp + 0x10]
shr edx, cl
test edx, 0x10001
je 0x4fb3cc
mov ecx, dword [esp + ebx*4 + 0xd0]
cmp ecx, 0xffffffff
mov edx, dword [esp + 0xc]
je 0x4fb3cc
mov esi, dword [esp + 0x18]
mov dword [esi + edx*8], ecx
and edi, dword [esp + 0x10]
mov ecx, 0x300
cmove ecx, edi
mov word [esi + edx*8 + 4], cx
mov ecx, 0x29
cmovne edi, ecx
test dword [esp + 0x10], eax
je 0x4fb40f
mov esi, dword [esp + ebx*4 + 0xd0]
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x3c], 4
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x44]
push eax
push 0x1008
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4fb3ff
cmp dword [esp + 0x40], 1
je 0x4fb3f3
jmp 0x4fb3ff
xor eax, eax
push eax
push eax
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
or edi, 0x32
mov esi, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x18]
push dword [edi + 0x104]
push dword [esi + ebx*8]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x4fb1d1
mov eax, dword [esi + ebx*8]
mov edx, esi
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x18]
mov dword [edi + esi*8], eax
mov word [edi + esi*8 + 4], 0
movzx eax, word [edx + ebx*8 + 4]
and eax, 1
neg eax
and eax, 0x300
mov word [edi + esi*8 + 4], ax
movzx ecx, word [edx + ebx*8 + 4]
test cl, 2
je 0x4fb557
movzx eax, ax
or eax, 0x400
mov word [edi + esi*8 + 4], ax
movzx ecx, word [edx + ebx*8 + 4]
test cl, 4
mov edi, dword [esp + 0x14]
je 0x4fb56f
movzx eax, ax
or eax, 0x10
mov ecx, dword [esp + 0x18]
mov word [ecx + esi*8 + 4], ax
inc esi
inc ebx
cmp dword [ebp + 8], ebx
je 0x4fb5ea
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x2c]
movzx eax, word [esi + ebx*8 + 4]
mov ecx, eax
and ecx, 1
mov edx, 0x29
cmovne ecx, edx
mov edx, eax
and edx, 2
lea edi, [ecx + edx*2]
test al, 4
je 0x4fb4f4
mov esi, dword [esi + ebx*8]
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x3c], 4
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x44]
push eax
push 0x1008
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4fb4ed
cmp dword [esp + 0x40], 1
je 0x4fb4e1
jmp 0x4fb4ed
mov esi, dword [esp + 0xc]
mov ecx, dword [ebp + 0x10]
test esi, esi
setne al
mov bl, byte [ebp + 0x18]
or al, bl
xor edx, edx
cmp al, 1
mov dword [esp + 0xc], esi
jne 0x4fb6d0
test esi, esi
je 0x4fb638
xor eax, eax
push eax
push eax
push esi
push dword [esp + 0x24]
call fcn.00500ea0
add esp, 0x10
test eax, eax
js 0x4fb62e
je 0x4fb638
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], 0
jmp 0x4fb65d
mov esi, 0xc
jmp 0x4fb146
lea eax, [edi + 0x104]
xor ecx, ecx
push ecx
push dword [esp + 0x38]
mov dword [esp + 0x24], 0
push ecx
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov al, 1
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x28]
cmp dword [ebp + 8], 0
mov eax, dword [esp + 0x18]
je 0x4fb68f
cmp dword [ebp + 0x10], 0
setne dl
and dl, byte [esp + 0x24]
mov byte [esp + 0x23], dl
lea eax, [eax + ecx*8]
add eax, 6
mov dword [esp + 0x38], eax
xor ebx, ebx
mov eax, dword [esp + 0x2c]
jmp 0x4fb7a0
test ecx, ecx
je 0x4fb6b2
mov edi, dword [esp + 0x14]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x4fb6b6
cmp dword [ebp + 0x10], 0
setne al
and al, byte [esp + 0x24]
mov byte [esp + 0x10], al
jmp 0x4fb82a
mov edi, dword [esp + 0x14]
push dword [edi + 0x104]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
mov bl, byte [ebp + 0x18]
mov esi, dword [esp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x1c]
cmp dword [esp + 0x30], 0xb
jb 0x4fb6f7
mov ecx, dword [fcn.005464a0]
mov esi, edx
call dword [0x7a29f4]
push dword [esp + 0x18]
call ecx
mov edx, esi
mov ecx, dword [ebp + 0x10]
mov esi, dword [esp + 0x10]
add esp, 4
mov al, byte [ebp + 0x14]
test ecx, ecx
je 0x4fb700
mov dword [ecx], edx
test esi, esi
setne cl
xor al, 1
or al, cl
xor esi, esi
or al, bl
jne 0x4fb146
cmp dword [edi], 0xbab1e
jne 0x4fb146
cmp byte [edi + 0x10b], 0
jne 0x4fb146
cmp byte [edi + 0x10c], 0
jne 0x4fb146
cmp dword [edi + 0x6c], 0
jne 0x4fb9a7
jmp 0x4fba37
xor edi, edi
push 0
mov eax, dword [esp + 0x18]
push dword [eax + 0x104]
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp byte [esp + 0x24], 0
jne 0x4fb789
xor eax, eax
test esi, 0x300
setne al
mov ecx, esi
shr ecx, 2
and ecx, 4
shr esi, 9
and esi, 2
or esi, ecx
or esi, eax
movzx edi, di
or edi, esi
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov word [eax + ebx*8 + 6], di
inc ebx
cmp dword [ebp + 8], ebx
je 0x4fb68f
mov ecx, dword [esp + 0x38]
movzx esi, word [ecx + ebx*8]
mov edx, dword [eax + ebx*8]
xor eax, eax
mov dword [esp + 0x50], eax
lea ecx, [esp + 0x50]
push ecx
push eax
mov dword [esp + 0x18], edx
push edx
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x4fb748
mov eax, dword [esp + 0x50]
xor ecx, ecx
test al, 0x29
setne cl
lea edx, [ecx + 4]
test al, 0x32
cmove edx, ecx
mov edi, eax
shr edi, 1
and edi, 2
or edi, edx
test eax, eax
setne al
and al, byte [esp + 0x23]
movzx eax, al
add dword [esp + 0x1c], eax
jmp 0x4fb74a
cmp dword [esp + 0x50], 0
setne al
and al, byte [esp + 0x10]
movzx eax, al
add dword [esp + 0x1c], eax
push 0
push dword [edi + 0x104]
push dword [esp + 0xe8]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
mov ebx, dword [ebx + 0x10]
test ebx, ebx
je 0x4fb6b6
mov ecx, ebx
lea edx, [esp + 0xd0]
call fcn.004fb070
test eax, 0x10001
je 0x4fb81f
mov esi, eax
xor ecx, ecx
mov dword [esp + 0x50], ecx
lea eax, [esp + 0x50]
push eax
push ecx
push dword [esp + 0xd8]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x4fb871
cmp dword [esp + 0x50], 0
setne al
and al, byte [esp + 0x10]
movzx eax, al
add dword [esp + 0x1c], eax
push 0
push dword [edi + 0x104]
push dword [esp + 0xd8]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test esi, 0x20002
je 0x4fb81f
xor ecx, ecx
mov dword [esp + 0x50], ecx
lea eax, [esp + 0x50]
push eax
push ecx
push dword [esp + 0xdc]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x4fb8be
cmp dword [esp + 0x50], 0
setne al
and al, byte [esp + 0x10]
movzx eax, al
add dword [esp + 0x1c], eax
push 0
push dword [edi + 0x104]
push dword [esp + 0xdc]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test esi, 0x40004
je 0x4fb81f
xor ecx, ecx
mov dword [esp + 0x50], ecx
lea eax, [esp + 0x50]
push eax
push ecx
push dword [esp + 0xe0]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x4fb90f
cmp dword [esp + 0x50], 0
setne al
and al, byte [esp + 0x10]
movzx eax, al
add dword [esp + 0x1c], eax
push 0
push dword [edi + 0x104]
push dword [esp + 0xe0]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test esi, 0x80008
je 0x4fb81f
xor ecx, ecx
mov dword [esp + 0x50], ecx
lea eax, [esp + 0x50]
push eax
push ecx
push dword [esp + 0xe4]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x4fb960
cmp dword [esp + 0x50], 0
setne al
and al, byte [esp + 0x10]
movzx eax, al
add dword [esp + 0x1c], eax
push 0
push dword [edi + 0x104]
push dword [esp + 0xe4]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test esi, 0x100010
je 0x4fb81f
xor ecx, ecx
mov dword [esp + 0x50], ecx
lea eax, [esp + 0x50]
push eax
push ecx
push dword [esp + 0xe8]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x4fb80a
jmp 0x4fb7f7
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x40]
movdqa xmmword [esi], xmm0
push esi
call fcn.0050a160
add esp, 4
mov eax, dword [edi + 0x6c]
sub esp, 0x14
mov dword [esp + 0x10], eax
pxor xmm0, xmm0
movdqu xmmword [esp], xmm0
call fcn.00508710
add esp, 0x14
mov dword [edi + 0x6c], eax
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0x14]
mov edi, dword [esi]
mov esi, dword [esi + 4]
cmp edx, edi
mov ebx, ecx
sbb ebx, esi
jl 0x4fba4e
cmp edi, edx
sbb esi, ecx
jl 0x4fb9fc
mov ecx, dword [eax + 0x18]
cmp ecx, dword [esp + 0x48]
jle 0x4fba4e
add eax, 0x10
sub esp, 0x20
movaps xmm0, xmmword [esp + 0x60]
movups xmmword [esp + 0x10], xmm0
movdqu xmm0, xmmword [eax]
movdqu xmmword [esp], xmm0
call fcn.0050a240
add esp, 0x20
xor esi, esi
xor ecx, ecx
inc ecx
cmp ecx, eax
mov edi, 0
sbb edi, edx
cmovl ecx, eax
test ecx, ecx
jne 0x4fba3a
jmp 0x4fb146
xor ecx, ecx
dec ecx
mov eax, dword [esp + 0x34]
cmp ecx, eax
cmovb eax, ecx
push 0
push eax
call fcn.00500cf0
add esp, 8
xor esi, esi
jmp 0x4fb146