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

Disassembly:
sub esp, 0xe0
mov eax, dword [0x6d6ec0]
xor eax, esp
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0xf4]
push ebx
mov ebx, dword [esp + 0xe8]
push ebp
mov ebp, dword [esp + 0xf0]
push edi
xor edi, edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], edi
test ebx, ebx
je 0x4f90cf
cmp dword [ebx], 0xbab1e
jne 0x4f90cf
cmp byte [ebx + 0x147], 0
je 0x4f8bd6
lea eax, [edi + 8]
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0xdc]
xor ecx, esp
call fcn.0061f478
add esp, 0xe0
ret
cmp dword [esp + 0xfc], edi
jge 0x4f8bfc
pop edi
pop ebp
mov eax, 0xa
pop ebx
mov ecx, dword [esp + 0xdc]
xor ecx, esp
call fcn.0061f478
add esp, 0xe0
ret
push esi
push 0xa
lea eax, [esp + 0xa0]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.0051d9c0
mov esi, dword [ebx + 4]
xorps xmm0, xmm0
add esp, 0xc
movups xmmword [esp + 0x50], xmm0
movups xmmword [esp + 0x60], xmm0
test esi, esi
je 0x4f8c54
lea eax, [esp + 0x50]
push eax
push esi
call fcn.004f74b0
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0051d850
add esp, 0x10
test eax, eax
jne 0x4f8ec9
mov esi, dword [esi + 0x10]
test esi, esi
jne 0x4f8c28
lea eax, [esp + 0x30]
push eax
lea eax, [ebx + 0xb0]
push eax
call fcn.004ff360
add esp, 8
test eax, eax
jne 0x4f8ec9
mov eax, dword [esp + 0x34]
xor esi, esi
mov dword [esp + 0x1c], eax
cmp dword [esp + 0xfc], esi
jbe 0x4f8cec
movzx ecx, word [ebp + esi*8 + 4]
mov al, cl
mov bl, cl
and al, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x300
mov edx, eax
or eax, 0x400
movzx ecx, ax
test bl, 2
movzx ebx, word [ebp + esi*8 + 4]
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 0x10
test bl, 4
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx eax, cx
push eax
mov eax, ebp
push dword [eax + esi*8]
lea eax, [esp + 0x38]
push eax
call fcn.0051d980
add esp, 0xc
test eax, eax
jne 0x4f8ec9
inc esi
cmp esi, dword [esp + 0xfc]
jb 0x4f8c83
mov ebp, dword [sym.imp.WS2_32.dll_WSAEventSelect]
xor ebx, ebx
mov dword [esp + 0x28], ebp
cmp dword [esp + 0x34], ebx
jbe 0x4f8da3
mov eax, dword [esp + 0x30]
movzx edx, word [eax + ebx*8 + 4]
lea eax, [eax + ebx*8]
mov ecx, edx
mov dword [esp + 0x10], eax
and ecx, 0x300
neg ecx
sbb ecx, ecx
and ecx, 0x29
mov esi, ecx
or esi, 4
test edx, 0x400
cmove esi, ecx
test dl, 0x10
je 0x4f8d78
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], eax
push ecx
push 0x1008
push 0xffff
push eax
or esi, 0x32
mov dword [esp + 0x24], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4f8d78
cmp dword [esp + 0x24], 1
jne 0x4f8d78
push eax
push eax
push eax
push dword [esp + 0x2c]
call dword [sym.imp.WS2_32.dll_send]
test esi, esi
je 0x4f8d98
mov eax, dword [esp + 0x14]
push esi
push dword [eax + 0x138]
mov eax, dword [esp + 0x38]
push dword [eax + ebx*8]
call ebp
test eax, eax
jne 0x4f8ec9
inc ebx
cmp ebx, dword [esp + 0x34]
jb 0x4f8d02
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push esi
call fcn.004f8a70
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
js 0x4f8dd0
mov ecx, dword [esp + 0x100]
cmp eax, ecx
cmovl ecx, eax
mov dword [esp + 0x100], ecx
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x4f8ed6
mov dl, byte [esp + 0x10c]
test dl, dl
je 0x4f903f
xor ebp, ebp
push 0
push dword [esp + 0x104]
lea ebx, [esi + 0x138]
push 0
push ebx
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov ebx, dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], ebx
cmp dword [esp + 0xfc], ecx
jbe 0x4f8f9b
mov edx, dword [esp + 0x1c]
shl edx, 3
mov dword [esp + 0x24], edx
nop
mov eax, dword [esp + 0x30]
xor esi, esi
movsx eax, word [edx + eax + 6]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x70], esi
lea eax, [eax + ecx*8]
lea ecx, [esp + 0x70]
mov dword [esp + 0x4c], eax
mov eax, dword [eax]
push ecx
push esi
push eax
mov dword [esp + 0x50], eax
call ebx
test eax, eax
jne 0x4f8f07
mov ecx, dword [esp + 0x70]
mov eax, esi
test cl, 0x29
mov ebx, ecx
setne al
movzx edx, ax
mov eax, edx
or eax, 4
test bl, 0x32
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
test bl, 4
movzx ecx, ax
mov eax, edx
cmove ecx, eax
cmp dword [esp + 0x2c], 0
movzx eax, cx
mov esi, eax
je 0x4f8f07
test ebp, ebp
jne 0x4f8f07
test ebx, ebx
je 0x4f8f07
mov eax, dword [esp + 0x14]
inc edi
push ebp
push dword [eax + 0x138]
push dword [esp + 0x4c]
call dword [esp + 0x34]
movzx eax, si
jmp 0x4f8f6a
mov dword [esp + 0x18], 3
jmp 0x4f90a5
push 0
push 0
push eax
push dword [esp + 0x3c]
call fcn.0051d4d0
mov ebp, eax
add esp, 0x10
test ebp, ebp
jns 0x4f8efa
mov dword [esp + 0x18], 0xc
jmp 0x4f90a5
jle 0x4f8ded
mov edi, ebp
jmp 0x4f8e07
mov eax, dword [esp + 0x14]
push 0
push dword [eax + 0x138]
push dword [esp + 0x4c]
call dword [esp + 0x34]
test ebp, ebp
jne 0x4f8f24
movzx eax, si
jmp 0x4f8f6a
mov ebx, dword [esp + 0x48]
mov eax, esi
or eax, 1
test dword [esp + 0x48], 0x300
movzx ecx, ax
movzx eax, si
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 4
test bl, 0x10
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
test ebx, 0x400
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx eax, cx
mov ecx, dword [esp + 0x4c]
mov word [ecx + 6], ax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
inc ecx
mov ebx, dword [esp + 0x10]
add edx, 8
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
cmp ecx, dword [esp + 0xfc]
jb 0x4f8e30
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x1c], 0
je 0x4f9028
mov ebx, dword [esi + 4]
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x4f9028
lea eax, [esp + 0x50]
push eax
push ebx
call fcn.004f74b0
xor esi, esi
add esp, 8
cmp dword [esp + 0x64], esi
jbe 0x4f9019
mov ebx, dword [esp + 0x28]
nop dword [eax + eax]
lea eax, [esp + 0x70]
mov dword [esp + 0x70], 0
push eax
push 0
push dword [esp + esi*4 + 0x58]
call dword [esp + 0x1c]
test eax, eax
jne 0x4f8ffc
cmp dword [esp + 0x2c], eax
je 0x4f8ffc
test ebp, ebp
jne 0x4f8ffc
cmp dword [esp + 0x70], ebp
je 0x4f8ffc
inc edi
mov eax, dword [esp + 0x14]
push 0
push dword [eax + 0x138]
push dword [esp + esi*4 + 0x58]
call ebx
inc esi
cmp esi, dword [esp + 0x64]
jb 0x4f8fd0
mov ebx, dword [esp + 0x1c]
mov ebx, dword [ebx + 0x10]
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x4f8fb1
mov esi, dword [esp + 0x14]
push dword [esi + 0x138]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
mov eax, dword [esp + 0x34]
mov dl, byte [esp + 0x10c]
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x4f9049
mov dword [ecx], edi
cmp byte [esp + 0x108], 0
je 0x4f90a5
test eax, eax
jne 0x4f90a5
test dl, dl
jne 0x4f90a5
cmp dword [esi], 0xbab1e
mov dword [esp + 0x10], eax
jne 0x4f90a5
cmp byte [esi + 0x147], dl
jne 0x4f90a5
lea eax, [esp + 0x10]
push eax
push esi
call fcn.004f8a70
add esp, 8
test eax, eax
jne 0x4f90a5
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4f90a5
mov ecx, dword [esp + 0x100]
cmp eax, ecx
jg 0x4f9098
test eax, eax
jns 0x4f909a
mov eax, ecx
cdq
push edx
push eax
call fcn.0051db10
add esp, 8
lea eax, [esp + 0x30]
push eax
call fcn.0051d9a0
mov eax, dword [esp + 0x1c]
add esp, 4
pop esi
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0xdc]
xor ecx, esp
call fcn.0061f478
add esp, 0xe0
ret
mov ecx, dword [esp + 0xe8]
mov eax, 1
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0061f478
add esp, 0xe0
ret