Function at 0x49dff0
Capabilities:
Resolve function by parsing pe exports
Send data
Send data on socket

Disassembly:
sub esp, 0xdc
mov eax, dword [0x401424]
xor eax, esp
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0xf0]
push ebx
push ebp
mov ebp, dword [esp + 0xe8]
xor ebx, ebx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x40], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0xa
mov dword [esp + 0x1c], ebx
mov byte [esp + 0xb], bl
push esi
mov esi, dword [esp + 0xf0]
mov dword [esp + 0x28], esi
push edi
lea edi, [esp + 0x98]
mov dword [esp + 0x1c], edi
test ebp, ebp
je 0x49e728
cmp dword [ebp], 0xbab1e
jne 0x49e728
cmp byte [ebp + 0x117], bl
je 0x49e073
lea eax, [ebx + 8]
jmp 0x49e72d
mov eax, dword [esp + 0xfc]
mov dword [esp + 0x3c], eax
test eax, eax
jns 0x49e08c
mov eax, 0xa
jmp 0x49e72d
lea eax, [esp + 0x14]
push eax
push ebp
call fcn.0049df00
mov eax, dword [esp + 0x1c]
add esp, 8
test eax, eax
js 0x49e0af
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
cmovl ecx, eax
mov dword [esp + 0x3c], ecx
push 0x50
lea eax, [esp + 0x9c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp + 4]
xorps xmm0, xmm0
mov ecx, dword [sym.imp.WS2_32.dll_WSAEventSelect]
add esp, 0xc
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], ecx
movups xmmword [esp + 0x4c], xmm0
movups xmmword [esp + 0x5c], xmm0
test eax, eax
je 0x49e27b
nop dword [eax]
lea ecx, [esp + 0x4c]
push ecx
push eax
call fcn.0049c9a0
xor edi, edi
add esp, 8
mov dword [esp + 0x20], edi
cmp dword [esp + 0x60], edi
jbe 0x49e260
nop
mov dl, byte [esp + edi + 0x64]
mov eax, 0
test dl, 1
mov esi, 0x29
mov cl, dl
cmove esi, eax
xor ebx, ebx
test cl, 1
mov eax, 0x300
cmove eax, ebx
movzx eax, ax
mov ebx, eax
mov ebp, eax
test dl, 2
je 0x49e184
mov ebp, dword [esp + edi*4 + 0x4c]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x18], 4
push eax
push 0x1008
push 0xffff
push ebp
or esi, 0x32
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x49e17e
cmp dword [esp + 0x44], 1
jne 0x49e17e
push eax
push eax
push eax
push ebp
call dword [sym.imp.WS2_32.dll_send]
or ebx, 0x10
movzx ebp, bx
mov ebx, dword [esp + 0x24]
test bp, bp
je 0x49e22e
mov edx, dword [esp + 0x1c]
test ebx, ebx
je 0x49e1b1
mov eax, dword [esp + edi*4 + 0x4c]
lea ecx, [ebx*8]
cmp eax, dword [ecx + edx - 8]
jne 0x49e1b1
or word [ecx + edx - 4], bp
jmp 0x49e22e
mov eax, dword [esp + 0x18]
cmp ebx, eax
jb 0x49e216
add eax, 0x64
push 8
push eax
mov dword [esp + 0x1c], eax
call dword [fcn.00401044]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x49e3df
mov ecx, dword [esp + 0x18]
shl ecx, 3
push ecx
push dword [esp + 0x20]
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp byte [esp + 0x13], 0
je 0x49e1ff
push dword [esp + 0x1c]
call dword [fcn.00401038]
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
mov byte [esp + 0x13], 1
mov eax, dword [esp + edi*4 + 0x4c]
lea ecx, [ebx*8]
inc ebx
mov dword [ecx + edx], eax
mov word [ecx + edx + 4], bp
mov dword [esp + 0x24], ebx
mov ebp, dword [esp + 0x38]
test esi, esi
je 0x49e24d
push esi
push dword [ebp + 0x108]
push dword [esp + edi*4 + 0x54]
call dword [esp + 0x40]
test eax, eax
jne 0x49e3fd
mov edi, dword [esp + 0x20]
inc edi
mov dword [esp + 0x20], edi
cmp edi, dword [esp + 0x60]
jb 0x49e110
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x49e0f0
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x2c]
cmp dword [esp + 0xf8], 0
mov dword [esp + 0x44], ebx
mov dword [esp + 0x28], 0
je 0x49e451
lea eax, [ebp + 0x108]
add esi, 4
mov dword [esp + 0x20], eax
movzx edx, word [esi]
mov al, dl
and al, 1
movzx ecx, al
neg ecx
sbb ecx, ecx
and ecx, 0x29
mov ebp, ecx
or ebp, 4
test dl, 2
cmove ebp, ecx
test dl, 4
je 0x49e308
mov eax, dword [esi - 4]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x28], eax
push ecx
push 0x1008
push 0xffff
push eax
or ebp, 0x32
mov dword [esp + 0x28], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x49e308
cmp dword [esp + 0x40], 1
jne 0x49e308
push eax
push eax
push eax
push dword [esp + 0x30]
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esp + 0x20]
push ebp
push dword [eax]
push dword [esi - 4]
call dword [esp + 0x40]
test eax, eax
jne 0x49e436
mov ebp, dword [esp + 0x18]
cmp ebx, ebp
jb 0x49e37d
lea eax, [ebp + 0x64]
push 8
push eax
mov dword [esp + 0x20], eax
call dword [fcn.00401044]
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x49e41b
lea ecx, [ebp*8]
push ecx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp byte [esp + 0x13], 0
je 0x49e368
push edi
call dword [fcn.00401038]
add esp, 4
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ecx
mov byte [esp + 0x13], 1
mov eax, dword [esi - 4]
mov dword [edi + ebx*8], eax
xor eax, eax
mov word [edi + ebx*8 + 4], ax
test byte [esi], 1
je 0x49e399
mov eax, 0x300
mov word [edi + ebx*8 + 4], ax
test byte [esi], 2
movzx ecx, ax
je 0x49e3ae
or eax, 0x400
mov word [edi + ebx*8 + 4], ax
movzx ecx, ax
test byte [esi], 4
je 0x49e3bb
or ecx, 0x10
mov word [edi + ebx*8 + 4], cx
mov eax, dword [esp + 0x28]
inc ebx
inc eax
mov dword [esp + 0x24], ebx
add esi, 8
mov dword [esp + 0x28], eax
cmp eax, dword [esp + 0xf8]
jb 0x49e2a2
mov esi, dword [esp + 0x20]
jmp 0x49e45b
cmp byte [esp + 0x13], 0
je 0x49e42c
push dword [esp + 0x1c]
call dword [fcn.00401038]
add esp, 4
mov eax, 3
jmp 0x49e72d
cmp byte [esp + 0x13], 0
je 0x49e447
push dword [esp + 0x1c]
call dword [fcn.00401038]
add esp, 4
mov eax, 4
jmp 0x49e72d
cmp byte [esp + 0x13], 0
je 0x49e42c
push edi
call dword [fcn.00401038]
add esp, 4
mov eax, 3
jmp 0x49e72d
cmp byte [esp + 0x13], 0
je 0x49e447
push edi
call dword [fcn.00401038]
add esp, 4
mov eax, 4
jmp 0x49e72d
lea esi, [ebp + 0x108]
mov dword [esp + 0x20], esi
mov al, byte [esp + 0x108]
test ebx, ebx
jne 0x49e53c
test al, al
je 0x49e6a3
xor ebp, ebp
push 0
push dword [esp + 0x40]
push 0
push esi
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp dword [esp + 0xf8], 0
mov ecx, dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov dword [esp + 0x14], ecx
jbe 0x49e5f6
mov eax, dword [esp + 0x44]
lea eax, [eax*8 + 6]
add eax, edi
xor edi, edi
mov dword [esp + 0x40], eax
movsx ebx, word [eax]
lea edx, [esp + 0x6c]
mov eax, dword [esp + 0x2c]
xor esi, esi
push edx
push esi
mov dword [esp + 0x20], ebx
mov eax, dword [eax + edi*8]
push eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x78], esi
call ecx
test eax, eax
jne 0x49e56d
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
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 + 0x48], 0
movzx eax, cx
mov esi, eax
je 0x49e569
test ebp, ebp
jne 0x49e569
test ebx, ebx
je 0x49e569
mov eax, dword [esp + 0x20]
inc dword [esp + 0x30]
push ebp
push dword [eax]
push dword [esp + 0x30]
call dword [esp + 0x40]
movzx eax, si
jmp 0x49e5c8
push 0
push 0
push ebx
push edi
call fcn.004bc580
mov ebp, eax
add esp, 0x10
test ebp, ebp
jns 0x49e55a
mov eax, 0xc
jmp 0x49e72d
jle 0x49e474
mov dword [esp + 0x30], ebp
jmp 0x49e485
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
push 0
push dword [eax]
push dword [esp + 0x30]
call dword [esp + 0x40]
test ebp, ebp
jne 0x49e586
movzx eax, si
jmp 0x49e5c8
mov eax, esi
or eax, 1
test ebx, 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 dword [esp + 0x18], 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 + 0x40]
mov ecx, dword [esp + 0x14]
add eax, 8
mov dword [esp + 0x40], eax
cmp edi, dword [esp + 0xf8]
jb 0x49e4b0
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0x44], 0
je 0x49e697
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x49e697
mov edi, dword [esp + 0x20]
mov ebx, eax
nop word [eax + eax]
lea eax, [esp + 0x4c]
push eax
push ebx
call fcn.0049c9a0
xor esi, esi
add esp, 8
cmp dword [esp + 0x60], esi
jbe 0x49e684
mov ebx, dword [esp + 0x14]
nop word [eax + eax]
lea eax, [esp + 0x6c]
mov dword [esp + 0x6c], 0
push eax
push 0
push dword [esp + esi*4 + 0x54]
call ebx
test eax, eax
jne 0x49e66d
cmp dword [esp + 0x48], eax
je 0x49e66d
test ebp, ebp
jne 0x49e66d
cmp dword [esp + 0x6c], ebp
je 0x49e66d
inc dword [esp + 0x30]
push 0
push dword [edi]
push dword [esp + esi*4 + 0x54]
call dword [esp + 0x40]
inc esi
cmp esi, dword [esp + 0x60]
jb 0x49e640
mov ebx, dword [esp + 0x2c]
mov ebx, dword [ebx + 0x10]
mov dword [esp + 0x2c], ebx
test ebx, ebx
jne 0x49e620
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
push dword [eax]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
cmp byte [esp + 0x13], 0
je 0x49e6b4
push edi
call dword [fcn.00401038]
add esp, 4
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x49e6c2
mov eax, dword [esp + 0x30]
mov dword [ecx], eax
cmp byte [esp + 0x104], 0
je 0x49e724
test ebx, ebx
jne 0x49e724
cmp byte [esp + 0x108], bl
jne 0x49e724
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], ebx
cmp dword [eax], 0xbab1e
jne 0x49e724
cmp byte [eax + 0x117], bl
jne 0x49e724
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.0049df00
add esp, 8
test eax, eax
jne 0x49e724
mov eax, dword [esp + 0x14]
test eax, eax
je 0x49e724
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
jg 0x49e717
test eax, eax
jns 0x49e719
mov eax, ecx
cdq
push edx
push eax
call fcn.004bca40
add esp, 8
xor eax, eax
jmp 0x49e72d
mov eax, 1
mov ecx, dword [esp + 0xe8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ed9d4
add esp, 0xdc
ret