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

Disassembly:
sub esp, 0xdc
mov eax, dword [0x570400]
xor eax, esp
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0xe4]
push ebx
push ebp
push esi
mov esi, dword [esp + 0xec]
xor ebp, ebp
mov dword [esp + 0x28], eax
mov ebx, 0xa
mov eax, dword [esp + 0xfc]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x38], ebp
mov byte [esp + 0xf], 0
push edi
lea edi, [esp + 0x98]
mov dword [esp + 0x1c], edi
test esi, esi
je 0x4f9134
cmp dword [esi], 0xbab1e
jne 0x4f9134
cmp byte [esi + 0x117], 0
je 0x4f8a45
lea eax, [ebx - 2]
jmp 0x4f9139
mov eax, dword [esp + 0xfc]
mov dword [esp + 0x40], eax
test eax, eax
jns 0x4f8a5b
mov eax, ebx
jmp 0x4f9139
lea eax, [esp + 0x18]
push eax
push esi
call fcn.004f88d0
mov eax, dword [esp + 0x20]
add esp, 8
test eax, eax
js 0x4f8a7e
mov ecx, dword [esp + 0x40]
cmp eax, ecx
cmovl ecx, eax
mov dword [esp + 0x40], ecx
push 0x50
lea eax, [esp + 0x9c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [esi + 4]
xorps xmm0, xmm0
mov eax, dword [sym.imp.WS2_32.dll_WSAEventSelect]
add esp, 0xc
mov dword [esp + 0x24], ecx
mov dword [esp + 0x38], eax
movups xmmword [esp + 0x4c], xmm0
movups xmmword [esp + 0x5c], xmm0
test ecx, ecx
je 0x4f8c2e
lea eax, [esp + 0x4c]
push eax
push ecx
call fcn.004f73d0
xor esi, esi
add esp, 8
cmp dword [esp + 0x60], esi
jbe 0x4f8c13
mov dl, byte [esp + esi + 0x64]
mov eax, 0
mov cl, dl
mov edi, 0x29
and cl, 1
cmove edi, eax
xor ebx, ebx
test cl, 1
mov eax, 0x300
cmove eax, ebx
movzx eax, ax
mov ecx, eax
mov ebx, eax
mov dword [esp + 0x28], ecx
test dl, 2
je 0x4f8b4d
mov ebx, dword [esp + esi*4 + 0x4c]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x1c], 4
push eax
push 0x1008
push 0xffff
push ebx
or edi, 0x32
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4f8b43
cmp dword [esp + 0x44], 1
jne 0x4f8b43
push eax
push eax
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esp + 0x28]
or eax, 0x10
movzx ebx, ax
test bx, bx
je 0x4f8be9
mov ecx, dword [esp + 0x1c]
test ebp, ebp
je 0x4f8b6f
mov eax, dword [esp + esi*4 + 0x4c]
cmp eax, dword [ecx + ebp*8 - 8]
jne 0x4f8b6f
or word [ecx + ebp*8 - 4], bx
jmp 0x4f8be9
mov edx, dword [esp + 0x14]
cmp ebp, edx
jb 0x4f8bd8
lea eax, [edx + 0x64]
push 8
push eax
mov dword [esp + 0x30], eax
call dword [0x570010]
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x4f8d86
mov edx, dword [esp + 0x14]
lea ecx, [edx*8]
push ecx
push dword [esp + 0x20]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp byte [esp + 0x13], 0
je 0x4f8bc3
push dword [esp + 0x1c]
call dword [0x570004]
add esp, 4
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], edx
mov byte [esp + 0x13], 1
mov eax, dword [esp + esi*4 + 0x4c]
mov dword [ecx + ebp*8], eax
mov word [ecx + ebp*8 + 4], bx
inc ebp
mov dword [esp + 0x3c], ebp
test edi, edi
je 0x4f8c08
mov eax, dword [esp + 0x20]
push edi
push dword [eax + 0x108]
push dword [esp + esi*4 + 0x54]
call dword [esp + 0x44]
test eax, eax
jne 0x4f8da8
inc esi
cmp esi, dword [esp + 0x60]
jb 0x4f8ad1
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x24], ecx
test ecx, ecx
jne 0x4f8ab7
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0xf8]
mov dword [esp + 0x44], ebp
mov dword [esp + 0x24], 0
test esi, esi
je 0x4f8dff
mov esi, dword [esp + 0x2c]
add esi, 4
movzx edx, word [esi]
mov al, dl
and al, 1
movzx ecx, al
mov al, dl
neg ecx
sbb ecx, ecx
and ecx, 0x29
mov dword [esp + 0x14], ecx
or dword [esp + 0x14], 4
and al, 2
mov eax, dword [esp + 0x14]
cmove eax, ecx
test dl, 4
je 0x4f8cc7
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 4
push ecx
lea ecx, [esp + 0x2c]
or eax, 0x32
push ecx
push 0x1008
mov dword [esp + 0x20], eax
mov eax, dword [esi - 4]
push 0xffff
push eax
mov dword [esp + 0x48], eax
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4f8cc3
cmp dword [esp + 0x28], 1
jne 0x4f8cc3
push eax
push eax
push eax
push dword [esp + 0x40]
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x24]
push dword [eax + 0x108]
push dword [esi - 4]
call dword [esp + 0x44]
test eax, eax
jne 0x4f8f21
cmp ebp, ebx
jb 0x4f8d38
lea eax, [ebx + 0x64]
push 8
push eax
mov dword [esp + 0x3c], eax
call dword [0x570010]
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x4f8f06
lea ecx, [ebx*8]
push ecx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp byte [esp + 0x13], 0
je 0x4f8d27
push edi
call dword [0x570004]
add esp, 4
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x1c], edi
mov byte [esp + 0x13], 1
mov eax, dword [esi - 4]
xor ecx, ecx
mov dword [edi + ebp*8], eax
xor eax, eax
mov word [edi + ebp*8 + 4], ax
movzx eax, word [esi]
mov edx, eax
test al, 1
je 0x4f8d5f
mov eax, 0x300
mov word [edi + ebp*8 + 4], ax
mov ecx, eax
movzx edx, word [esi]
movzx eax, dx
movzx edx, cx
mov edi, eax
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x1c]
test al, 2
je 0x4f8dca
or ecx, 0x400
mov word [edi + ebp*8 + 4], cx
movzx eax, word [esi]
movzx edx, cx
jmp 0x4f8dce
cmp byte [esp + 0x13], 0
je 0x4f8f17
push dword [esp + 0x1c]
call dword [0x570004]
add esp, 4
mov eax, 3
jmp 0x4f9139
cmp byte [esp + 0x13], 0
je 0x4f8f32
push dword [esp + 0x1c]
call dword [0x570004]
add esp, 4
mov eax, 4
jmp 0x4f9139
mov eax, dword [esp + 0x18]
test al, 4
je 0x4f8dda
or edx, 0x10
mov word [edi + ebp*8 + 4], dx
mov eax, dword [esp + 0x24]
inc ebp
inc eax
mov dword [esp + 0x3c], ebp
add esi, 8
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0xf8]
jb 0x4f8c50
mov esi, dword [esp + 0xf8]
mov al, byte [esp + 0x108]
test ebp, ebp
jne 0x4f8f3c
test al, al
je 0x4f90ad
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x20]
push 0
push dword [esp + 0x44]
add eax, 0x108
push 0
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov eax, dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov dword [esp + 0x18], eax
test esi, esi
je 0x4f9002
mov eax, dword [esp + 0x44]
mov ebp, dword [esp + 0x18]
lea eax, [eax*8 + 6]
add eax, edi
xor edi, edi
mov dword [esp + 0x28], eax
nop
movsx eax, word [eax]
lea ecx, [esp + 0x6c]
mov dword [esp + 0x34], eax
xor esi, esi
mov eax, dword [esp + 0x2c]
push ecx
push esi
mov dword [esp + 0x74], esi
mov eax, dword [eax + edi*8]
push eax
mov dword [esp + 0x30], eax
call ebp
test eax, eax
jne 0x4f8f6d
mov ecx, dword [esp + 0x6c]
mov eax, esi
test cl, 0x29
mov ebx, ecx
setne al
movzx edx, ax
mov eax, edx
or eax, 4
and bl, 0x32
mov ebx, dword [esp + 0x6c]
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
and bl, 4
mov ebx, dword [esp + 0x14]
movzx ecx, ax
mov eax, edx
cmove ecx, eax
cmp dword [esp + 0x48], 0
movzx eax, cx
mov esi, eax
je 0x4f8f6d
test ebx, ebx
jne 0x4f8f6d
cmp dword [esp + 0x6c], ebx
je 0x4f8f6d
mov eax, dword [esp + 0x20]
inc dword [esp + 0x30]
push ebx
push dword [eax + 0x108]
push dword [esp + 0x2c]
call dword [esp + 0x44]
movzx eax, si
jmp 0x4f8fd8
cmp byte [esp + 0x13], 0
je 0x4f8f17
push edi
call dword [0x570004]
add esp, 4
mov eax, 3
jmp 0x4f9139
cmp byte [esp + 0x13], 0
je 0x4f8f32
push edi
call dword [0x570004]
add esp, 4
mov eax, 4
jmp 0x4f9139
push 0
push 0
push ebp
push edi
call fcn.0051bc40
mov ebx, eax
add esp, 0x10
mov dword [esp + 0x14], ebx
test ebx, ebx
jns 0x4f8f5e
mov eax, 0xc
jmp 0x4f9139
jle 0x4f8e1c
mov dword [esp + 0x30], ebx
jmp 0x4f8e36
mov eax, dword [esp + 0x20]
push 0
push dword [eax + 0x108]
push dword [esp + 0x2c]
call dword [esp + 0x44]
test ebx, ebx
jne 0x4f8f8a
movzx eax, si
jmp 0x4f8fd8
mov edx, dword [esp + 0x34]
mov eax, esi
or eax, 1
and edx, 0x300
movzx ecx, ax
movzx eax, si
mov esi, dword [esp + 0x34]
cmove ecx, eax
movzx edx, cx
mov ebx, esi
mov eax, edx
or eax, 4
and bl, 0x10
mov ebx, dword [esp + 0x14]
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
and esi, 0x400
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx eax, cx
mov ecx, dword [esp + 0x2c]
mov word [ecx + edi*8 + 6], ax
inc edi
mov eax, dword [esp + 0x28]
add eax, 8
mov dword [esp + 0x28], eax
cmp edi, dword [esp + 0xf8]
jb 0x4f8e60
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0x44], 0
je 0x4f909b
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4f909b
mov ebp, dword [esp + 0x18]
mov edi, eax
lea eax, [esp + 0x4c]
push eax
push edi
call fcn.004f73d0
xor esi, esi
add esp, 8
cmp dword [esp + 0x60], esi
jbe 0x4f9088
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x6c]
mov dword [esp + 0x6c], 0
push eax
push 0
push dword [esp + esi*4 + 0x54]
call ebp
test eax, eax
jne 0x4f906d
cmp dword [esp + 0x48], eax
je 0x4f906d
test ebx, ebx
jne 0x4f906d
cmp dword [esp + 0x6c], ebx
je 0x4f906d
inc dword [esp + 0x30]
push 0
push dword [edi + 0x108]
push dword [esp + esi*4 + 0x54]
call dword [esp + 0x44]
inc esi
cmp esi, dword [esp + 0x60]
jb 0x4f9040
mov edi, dword [esp + 0x2c]
mov edi, dword [edi + 0x10]
mov dword [esp + 0x2c], edi
test edi, edi
jne 0x4f9026
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
push dword [ebx + 0x108]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
jmp 0x4f90b1
mov ebx, dword [esp + 0x20]
cmp byte [esp + 0x13], 0
je 0x4f90c2
push edi
call dword [0x570004]
add esp, 4
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x4f90d0
mov eax, dword [esp + 0x30]
mov dword [ecx], eax
cmp byte [esp + 0x104], 0
je 0x4f9130
test ebp, ebp
jne 0x4f9130
cmp byte [esp + 0x108], 0
jne 0x4f9130
cmp dword [ebx], 0xbab1e
mov dword [esp + 0x18], ebp
jne 0x4f9130
cmp byte [ebx + 0x117], 0
jne 0x4f9130
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.004f88d0
add esp, 8
test eax, eax
jne 0x4f9130
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4f9130
mov ecx, dword [esp + 0x40]
cmp eax, ecx
jg 0x4f9123
test eax, eax
jns 0x4f9125
mov eax, ecx
cdq
push edx
push eax
call fcn.0051c150
add esp, 8
xor eax, eax
jmp 0x4f9139
mov eax, 1
mov ecx, dword [esp + 0xe8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0054507b
add esp, 0xdc
ret