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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4d33b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov ecx, 0x40affc
push 3
mov eax, dword [esi + 0x10]
mov edi, dword [eax]
mov eax, 0x40b004
cmp dword [edi + 0x2a4], ebx
cmove eax, ecx
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0xc]
pop ecx
sub eax, ebx
je 0x49e155
sub eax, ecx
je 0x49e14c
sub eax, 1
je 0x49e147
sub eax, 1
je 0x49e140
sub eax, 1
je 0x49e128
sub eax, 1
je 0x49e155
push 0x40b024
push edi
call fcn.004928db
pop ecx
jmp 0x49e3a2
push 6
push esi
cmp dword [edi + 0x2dc], ebx
je 0x49e14e
call fcn.0049d71b
pop ecx
mov ebx, eax
jmp 0x49e3a2
mov dword [esi], ecx
jmp 0x49e3a3
push 4
push esi
jmp 0x49e133
push ecx
push esi
call fcn.0049d6df
jmp 0x49e138
inc dword [esi + 0x18]
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x20]
jle 0x49e170
mov dword [esi + 8], 0xffffff9e
xor eax, eax
mov dword [esi], ecx
jmp 0x49e3a5
mov eax, dword [esi + 0x160]
cmp dword [edi + 0x2dc], ebx
mov byte [eax], bl
mov eax, dword [esi + 0x160]
je 0x49e1c0
mov byte [eax + 1], 2
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x160]
add ecx, 4
mov eax, dword [eax]
mov dword [eax + 0xdc], ecx
mov ecx, dword [edi + 0x1b0]
mov eax, ecx
mov edx, dword [edi + 0x1b4]
and eax, edx
cmp eax, 0xffffffff
je 0x49e1c4
push edx
push ecx
push edi
call fcn.0049aa37
add esp, 0xc
jmp 0x49e1c4
mov byte [eax + 1], 1
mov eax, dword [esi + 0x10]
push ebx
push ebx
mov eax, dword [eax]
mov eax, dword [eax + 0x8638]
inc eax
push eax
push edi
call fcn.004a45b8
add esp, 0x10
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x49e1eb
push 0x1b
pop eax
jmp 0x49e3a5
push ebx
push dword [ebp - 0x48]
push ebx
push eax
mov eax, dword [esi + 0x160]
push 0x40b010
push dword [esi + 0x154]
add eax, 2
push eax
call fcn.004888f6
mov edx, dword [ebp - 0x4c]
add esp, 0x1c
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x49e214
sub edx, ecx
mov ecx, dword [ebp - 0x48]
lea eax, [ecx + 1]
mov dword [ebp - 0x48], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49e226
sub ecx, dword [ebp - 0x48]
add edx, 4
add edx, ecx
mov dword [ebp - 0x48], edx
cmp dword [edi + 0x2dc], ebx
je 0x49e272
mov ecx, dword [edi + 0x1b0]
mov eax, ecx
and eax, dword [edi + 0x1b4]
cmp eax, 0xffffffff
je 0x49e272
push dword [edi + 0x1b4]
lea eax, [ebp - 0x44]
push ecx
push 0x418074
push 0x40
push eax
call fcn.004888f6
mov edx, dword [ebp - 0x48]
add esp, 0x14
jmp 0x49e283
mov ecx, ebx
mov al, byte [ecx + 0x416b94]
mov byte [ebp + ecx - 0x44], al
inc ecx
test al, al
jne 0x49e274
mov eax, dword [esi + 0x160]
push 0x40af74
add eax, edx
push eax
push edx
push esi
call fcn.0049d9fc
mov ecx, dword [ebp - 0x48]
add ecx, eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [esi + 0x160]
add eax, ecx
mov dword [ebp - 0x48], ecx
push eax
push ecx
push esi
call fcn.0049d9fc
push dword [esi + 0x158]
add dword [ebp - 0x48], eax
lea eax, [ebp - 0x44]
push 0x416f54
push 0x40
push eax
call fcn.004888f6
mov eax, dword [esi + 0x160]
mov ecx, dword [ebp - 0x48]
add eax, ecx
push 0x40ae74
push eax
push ecx
push esi
call fcn.0049d9fc
mov ecx, dword [ebp - 0x48]
add esp, 0x40
add ecx, eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x48], ecx
push eax
mov eax, dword [esi + 0x160]
add eax, ecx
push eax
push ecx
push esi
call fcn.0049d9fc
push dword [esi + 0x1c]
add dword [ebp - 0x48], eax
lea eax, [ebp - 0x44]
push 0x416f54
push 0x40
push eax
call fcn.004888f6
mov eax, dword [esi + 0x160]
mov ecx, dword [ebp - 0x48]
add eax, ecx
push 0x40b01c
push eax
push ecx
push esi
call fcn.0049d9fc
mov ecx, dword [ebp - 0x48]
add ecx, eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [esi + 0x160]
add eax, ecx
mov dword [ebp - 0x48], ecx
push eax
push ecx
push esi
call fcn.0049d9fc
mov ecx, dword [ebp - 0x48]
add esp, 0x40
add ecx, eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x48], ecx
mov eax, dword [eax + 0x3c]
push dword [eax + 0x10]
push dword [eax + 0x18]
push ebx
push ecx
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, dword [ebp - 0x48]
je 0x49e399
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [esi + 0x10]
call fcn.00487de3
push eax
push 0x4180a8
push edi
call fcn.004928db
add esp, 0x14
push dword [ebp - 0x4c]
call dword [0x4d336c]
pop ecx
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004aab4c
mov esp, ebp
pop ebp
ret