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

Disassembly:
sub esp, 0xbc
mov eax, dword [0x6c45ac]
xor eax, esp
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0xc4]
push ebx
push esi
mov esi, dword [esp + 0xc8]
lea ebx, [esp + 0x70]
push edi
xor edi, edi
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x18], esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ebx
mov byte [esp + 0xf], 0
test esi, esi
je 0x4e7f8b
cmp dword [esi], 0xbab1e
jne 0x4e7f8b
cmp byte [esi + 0xe2], 0
je 0x4e7997
lea eax, [edi + 8]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.00590be8
add esp, 0xbc
ret
cmp dword [esp + 0xd8], edi
jge 0x4e79bd
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.00590be8
add esp, 0xbc
ret
push ebp
mov ebp, dword [esi + 4]
test ebp, ebp
je 0x4e7a28
lea eax, [esp + 0x64]
push eax
push ebp
call fcn.004e6400
add esp, 8
mov ebx, eax
xor edx, edx
mov eax, 1
nop dword [eax]
or esi, 0xffffffff
test ebx, eax
je 0x4e79f3
mov ecx, dword [esp + edx*4 + 0x64]
cmp ecx, 0xffffffff
jae 0x4e79f3
inc edi
mov esi, ecx
mov ecx, eax
rol ecx, 0x10
test ebx, ecx
je 0x4e7a08
mov ecx, dword [esp + edx*4 + 0x64]
cmp ecx, 0xffffffff
jae 0x4e7a08
inc edi
mov esi, ecx
cmp esi, 0xffffffff
je 0x4e7a15
inc edx
rol eax, 1
cmp edx, 5
jb 0x4e79e0
mov ebp, dword [ebp + 4]
mov dword [esp + 0x2c], edi
test ebp, ebp
jne 0x4e79c5
mov esi, dword [esp + 0x1c]
lea ebx, [esp + 0x78]
lea eax, [esp + 0x14]
push eax
push esi
call fcn.004e7810
mov eax, dword [esp + 0x1c]
add esp, 8
test eax, eax
js 0x4e7a51
mov ecx, dword [esp + 0xdc]
cmp eax, ecx
cmovl ecx, eax
mov dword [esp + 0xdc], ecx
mov eax, dword [esp + 0xd8]
add eax, edi
cmp byte [esp + 0xe8], 0
lea ecx, [eax + 1]
cmove ecx, eax
cmp ecx, 0xa
jbe 0x4e7aa9
lea eax, [ecx*8]
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
mov dword [esp + 0x20], ebx
test ebx, ebx
jne 0x4e7aa4
lea eax, [ebx + 3]
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.00590be8
add esp, 0xbc
ret
mov byte [esp + 0x13], 1
xor ebp, ebp
mov dword [esp + 0x18], ebp
test edi, edi
je 0x4e7ba1
mov eax, dword [esi + 4]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4e7ba1
lea ecx, [esp + 0x64]
push ecx
push eax
call fcn.004e6400
add esp, 8
mov dword [esp + 0x24], eax
xor esi, esi
nop word [eax + eax]
mov edx, 1
mov ecx, esi
shl edx, cl
or edi, 0xffffffff
xor ebx, ebx
test eax, edx
je 0x4e7b18
mov eax, dword [esp + esi*4 + 0x64]
cmp eax, 0xffffffff
jae 0x4e7b18
mov edx, dword [esp + 0x20]
mov edi, eax
mov ecx, 1
mov ebx, 0x29
mov dword [edx + ebp*8], edi
mov word [edx + ebp*8 + 4], cx
inc ebp
mov dword [esp + 0x18], ebp
lea ecx, [esi + 0x10]
mov eax, 1
shl eax, cl
test dword [esp + 0x24], eax
je 0x4e7b59
mov eax, dword [esp + esi*4 + 0x64]
cmp eax, 0xffffffff
jae 0x4e7b59
push 0
push 0
mov edi, eax
or ebx, 0x32
push 0
push edi
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esp + 0x20]
mov ecx, 4
mov dword [eax + ebp*8], edi
mov word [eax + ebp*8 + 4], cx
inc ebp
mov dword [esp + 0x18], ebp
cmp edi, 0xffffffff
je 0x4e7b86
mov eax, dword [esp + 0x1c]
push ebx
push dword [eax + 0xdc]
push edi
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x4e7cb6
mov eax, dword [esp + 0x24]
inc esi
cmp esi, 5
jb 0x4e7ae0
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4e7ac6
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
cmp dword [esp + 0xd8], 0
mov dword [esp + 0x14], 0
jbe 0x4e7c98
mov esi, dword [esp + 0x30]
lea ebx, [ebx + ebp*8]
add ebx, 4
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 + 0x18], ecx
or dword [esp + 0x18], 4
and al, 2
mov eax, dword [esp + 0x18]
cmove eax, ecx
test dl, 4
je 0x4e7c08
push 0
push 0
push 0
push dword [esi - 4]
or eax, 0x32
mov dword [esp + 0x28], eax
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x20]
push dword [eax + 0xdc]
push dword [esi - 4]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x4e7cb6
mov eax, dword [esi - 4]
xor ecx, ecx
mov dword [ebx - 4], eax
xor eax, eax
mov word [ebx], ax
movzx eax, word [esi]
mov edx, eax
test al, 1
je 0x4e7c47
mov eax, 1
mov word [ebx], ax
mov ecx, eax
movzx edx, word [esi]
movzx eax, dx
movzx edx, cx
mov edi, eax
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x2c]
test al, 2
je 0x4e7c69
or ecx, 2
mov word [ebx], cx
movzx eax, word [esi]
movzx edx, cx
jmp 0x4e7c6d
mov eax, dword [esp + 0x24]
test al, 4
je 0x4e7c77
or edx, 4
mov word [ebx], dx
mov eax, dword [esp + 0x14]
inc ebp
inc eax
mov dword [esp + 0x18], ebp
add ebx, 8
mov dword [esp + 0x14], eax
add esi, 8
cmp eax, dword [esp + 0xd8]
jb 0x4e7bc4
test ebp, ebp
jne 0x4e7cd4
cmp byte [esp + 0xe8], 0
je 0x4e7efb
mov esi, dword [esp + 0x20]
xor ebx, ebx
mov dword [esp + 0x24], ebx
jmp 0x4e7cec
cmp byte [esp + 0x13], 0
je 0x4e7cca
push dword [esp + 0x20]
call dword [0x6c4004]
add esp, 4
mov eax, 4
jmp 0x4e7a8b
mov esi, dword [esp + 0x20]
push 0
push 0
push ebp
push esi
call fcn.00503520
add esp, 0x10
mov dword [esp + 0x24], eax
mov ebx, eax
test ebx, ebx
jg 0x4e7d0e
mov ecx, dword [esp + 0x1c]
push 0
push dword [esp + 0xe0]
add ecx, 0xdc
push 0
push ecx
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
xor ecx, ecx
mov eax, ebx
test ebx, ebx
cmovle eax, ecx
mov dword [esp + 0x28], eax
cmp dword [esp + 0xd8], ecx
jbe 0x4e7e40
lea ebp, [edi*8 + 6]
mov dword [esp + 0x28], eax
add ebp, esi
xor edi, edi
nop word [eax + eax]
movsx eax, word [ebp]
xor esi, esi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x34]
push esi
mov dword [esp + 0x40], esi
push dword [eax + edi*8]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x4e7dbc
mov ecx, dword [esp + 0x38]
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 + 0x38]
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 + 0x24]
movzx ecx, ax
mov eax, edx
cmove ecx, eax
cmp dword [esp + 0x34], 0
movzx eax, cx
mov esi, eax
je 0x4e7dbc
test ebx, ebx
jg 0x4e7dbc
cmp dword [esp + 0x38], 0
je 0x4e7dbc
inc dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
push 0
push dword [eax + 0xdc]
mov eax, dword [esp + 0x38]
push dword [eax + edi*8]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test ebx, ebx
jle 0x4e7e27
mov ebx, dword [esp + 0x14]
mov eax, esi
or eax, 1
mov edx, ebx
movzx ecx, ax
and dl, 1
movzx eax, si
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 4
and bl, 4
mov ebx, dword [esp + 0x14]
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
and bl, 2
mov ebx, dword [esp + 0x24]
movzx ecx, ax
mov eax, edx
cmove ecx, eax
mov eax, dword [esp + 0x30]
mov word [eax + edi*8 + 6], cx
inc edi
add ebp, 8
cmp edi, dword [esp + 0xd8]
jb 0x4e7d40
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x4e7ee9
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4e7ee9
nop dword [eax + eax]
lea ecx, [esp + 0x64]
push ecx
push eax
call fcn.004e6400
add esp, 8
mov ebp, eax
xor esi, esi
mov edi, 1
lea ecx, [esi + 0x10]
mov edx, edi
bts edx, ecx
test ebp, edx
je 0x4e7ed2
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0
push eax
push 0
push dword [esp + esi*4 + 0x6c]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x4e7eb4
cmp dword [esp + 0x34], eax
je 0x4e7eb4
test ebx, ebx
jg 0x4e7eb4
cmp dword [esp + 0x38], eax
je 0x4e7eb4
inc dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
push 0
push dword [eax + 0xdc]
push dword [esp + esi*4 + 0x6c]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
inc esi
rol edi, 1
cmp esi, 5
jb 0x4e7e77
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4e7e60
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
push dword [ebx + 0xdc]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
jmp 0x4e7eff
mov ebx, dword [esp + 0x1c]
cmp byte [esp + 0x13], 0
je 0x4e7f13
push dword [esp + 0x20]
call dword [0x6c4004]
add esp, 4
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x4e7f21
mov eax, dword [esp + 0x28]
mov dword [ecx], eax
cmp byte [esp + 0xe4], 0
je 0x4e7f84
test ebp, ebp
jne 0x4e7f84
cmp byte [esp + 0xe8], 0
jne 0x4e7f84
cmp dword [ebx], 0xbab1e
mov dword [esp + 0x14], ebp
jne 0x4e7f84
cmp byte [ebx + 0xe2], 0
jne 0x4e7f84
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.004e7810
add esp, 8
test eax, eax
jne 0x4e7f84
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4e7f84
mov ecx, dword [esp + 0xdc]
cmp eax, ecx
jg 0x4e7f77
test eax, eax
jns 0x4e7f79
mov eax, ecx
cdq
push edx
push eax
call fcn.00503a50
add esp, 8
xor eax, eax
jmp 0x4e7a8b
mov ecx, dword [esp + 0xc4]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00590be8
add esp, 0xbc
ret