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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov ebp, ecx
mov ecx, dword [esp + 0x38]
mov dword [esp], edx
xor edx, edx
cmp dword [ecx + 8], 1
jne 0x10049ee0
mov eax, dword [ecx + 0xc]
mov edx, dword [eax]
and edx, 0xf
mov ebx, dword [esp + 0x34]
and edx, 0xfffffffd
call fcn.100498b0
mov eax, dword [ebp]
lea edi, [eax + 0x70]
mov dword [esp + 4], eax
nop word cs:[eax + eax]
mov eax, dword [0x104debf8]
mov ecx, dword [esp]
mov edx, dword [ecx + 8]
cmp eax, 5
jb 0x10049f1d
cmp edx, ebx
jb 0x1004a37f
mov eax, dword [0x104debfc]
mov esi, edx
sub esi, ebx
jb 0x1004a376
mov eax, dword [esp]
mov dword [esp + 8], esi
mov dword [esp + 0x18], 0
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
lea eax, [eax + ebx]
mov dword [esp + 0xc], eax
push 0
push edi
push 0
lea eax, [esp + 0x24]
push eax
push 1
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 0x88]
call sub.WS2_32.dll_WSASend
cmp eax, 0xffffffff
je 0x10049f80
mov ebp, dword [esp + 0x18]
mov ecx, 1
jmp 0x10049f95
call sub.WS2_32.dll_WSAGetLastError
xor ecx, ecx
cmp eax, 0x3e5
cmovne ebp, eax
jne 0x1004a05c
cmp ecx, 1
jne 0x10049fbe
mov eax, dword [esp + 0x38]
cmp byte [eax + 0x4c], 0
je 0x10049fbe
mov eax, dword [0x104debf8]
cmp eax, 5
jb 0x10049fb3
mov eax, dword [0x104debfc]
cmp esi, ebp
je 0x1004a010
add ebx, ebp
jmp 0x10049f00
mov eax, dword [0x104debf8]
cmp eax, 5
jb 0x10049fcd
mov eax, dword [0x104debfc]
mov ecx, dword [esp]
mov edi, dword [esp + 0x38]
mov eax, dword [ecx + 8]
movsd xmm0, qword [ecx]
mov dword [esp + 0x10], eax
movsd qword [esp + 8], xmm0
mov eax, dword [edi + 0x38]
test eax, eax
je 0x1004a165
cmp eax, 2
je 0x10049ffe
cmp eax, 1
jne 0x1004a09a
cmp dword [edi + 0x40], 0
je 0x1004a165
mov esi, dword [edi + 0x3c]
jmp 0x1004a157
mov edi, dword [esp + 0x38]
mov edx, 2
cmp dword [edi + 8], 1
jne 0x1004a02a
mov eax, dword [edi + 0xc]
mov edx, dword [eax]
and edx, 0xd
or edx, 2
mov ecx, edi
call fcn.100498b0
mov eax, dword [edi + 0x38]
test eax, eax
je 0x1004a1af
cmp eax, 2
je 0x1004a04a
cmp eax, 1
jne 0x1004a0ce
cmp dword [edi + 0x40], 0
je 0x1004a1af
mov esi, dword [edi + 0x3c]
jmp 0x1004a1a1
mov eax, dword [0x104debf8]
cmp eax, 5
jb 0x1004a06b
mov eax, dword [0x104debfc]
mov edi, dword [esp + 0x38]
mov eax, dword [edi + 0x38]
test eax, eax
je 0x1004a20f
cmp eax, 2
je 0x1004a088
cmp eax, 1
jne 0x1004a109
cmp dword [edi + 0x40], 0
je 0x1004a20f
mov esi, dword [edi + 0x3c]
jmp 0x1004a201
cmp byte [edi + 0x3c], 2
jb 0x1004a165
mov esi, dword [edi + 0x40]
mov eax, dword [esi + 4]
push dword [esi]
call dword [eax]
add esp, 4
mov eax, dword [esi + 4]
cmp dword [eax + 4], 0
je 0x1004a154
mov esi, dword [esi]
cmp dword [eax + 8], 9
jae 0x1004a144
call sub.KERNEL32.dll_GetProcessHeap
push esi
jmp 0x1004a14c
cmp byte [edi + 0x3c], 2
jb 0x1004a1af
mov esi, dword [edi + 0x40]
mov eax, dword [esi + 4]
push dword [esi]
call dword [eax]
add esp, 4
mov eax, dword [esi + 4]
cmp dword [eax + 4], 0
je 0x1004a19e
mov esi, dword [esi]
cmp dword [eax + 8], 9
jae 0x1004a18e
call sub.KERNEL32.dll_GetProcessHeap
push esi
jmp 0x1004a196
cmp byte [edi + 0x3c], 2
jb 0x1004a20f
mov esi, dword [edi + 0x40]
mov eax, dword [esi + 4]
push dword [esi]
call dword [eax]
add esp, 4
mov eax, dword [esi + 4]
cmp dword [eax + 4], 0
je 0x1004a1fe
mov esi, dword [esi]
cmp dword [eax + 8], 9
jae 0x1004a1ee
call sub.KERNEL32.dll_GetProcessHeap
push esi
jmp 0x1004a1f6
call sub.KERNEL32.dll_GetProcessHeap
push dword [esi - 4]
push 0
push eax
call sub.KERNEL32.dll_HeapFree
mov esi, dword [edi + 0x40]
call sub.KERNEL32.dll_GetProcessHeap
push esi
push 0
push eax
call sub.KERNEL32.dll_HeapFree
mov dword [edi + 0x38], 1
mov ecx, dword [esp + 4]
movsd xmm0, qword [esp + 8]
movsd qword [edi + 0x3c], xmm0
mov eax, dword [esp + 0x10]
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], ebx
lock inc dword [ecx + 0x8c]
jmp 0x1004a1e6
call sub.KERNEL32.dll_GetProcessHeap
push dword [esi - 4]
push 0
push eax
call sub.KERNEL32.dll_HeapFree
mov esi, dword [edi + 0x40]
call sub.KERNEL32.dll_GetProcessHeap
push esi
push 0
push eax
call sub.KERNEL32.dll_HeapFree
mov dword [edi + 0x38], 0
mov eax, dword [esp]
movsd xmm0, qword [esp + 8]
movsd xmm1, qword [esp + 0x10]
movsd qword [edi + 0x3c], xmm0
movsd qword [edi + 0x44], xmm1
cmp dword [eax + 4], 0
je 0x1004a1e6
call sub.KERNEL32.dll_GetProcessHeap
push dword [esp + 0x1c]
push 0
push eax
call sub.KERNEL32.dll_HeapFree
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.KERNEL32.dll_GetProcessHeap
push dword [esi - 4]
push 0
push eax
call sub.KERNEL32.dll_HeapFree
mov esi, dword [edi + 0x40]
call sub.KERNEL32.dll_GetProcessHeap
push esi
push 0
push eax
call sub.KERNEL32.dll_HeapFree
mov dword [edi + 0x38], 3
mov dword [edi + 0x40], ebp
mov dword [edi + 0x3c], 0
mov edx, 2
cmp dword [edi + 8], 1
jne 0x1004a236
mov eax, dword [edi + 0xc]
mov edx, dword [eax]
and edx, 0xd
or edx, 2
mov ecx, edi
call fcn.100498b0
mov eax, dword [esp]
mov ecx, edi
mov edi, dword [eax]
mov ebp, dword [eax + 4]
mov eax, dword [ecx + 4]
cmp eax, 2
jne 0x1004a29c
mov esi, dword [ecx]
test esi, esi
je 0x1004a29c
mov ecx, dword [esi + 0x10]
call fcn.100f4810
mov eax, dword [0x104dec50]
test eax, eax
jne 0x1004a34d
xor ebx, ebx
mov al, byte [esi + 0x14]
lea edx, [esi + 0x10]
test al, al
jne 0x1004a390
mov eax, dword [esi + 0x20]
cmp eax, dword [esi + 0x1c]
jae 0x1004a2af
mov ecx, dword [esi + 0x18]
lea eax, [eax + eax*2]
mov dword [ecx + eax*4], edi
mov dword [ecx + eax*4 + 4], ebp
mov dword [ecx + eax*4 + 8], 0
inc dword [esi + 0x20]
jmp 0x1004a2c5
test ebp, ebp
je 0x1004a1e6
call sub.KERNEL32.dll_GetProcessHeap
push edi
jmp 0x1004a1de
test ebp, ebp
je 0x1004a2c5
mov ebp, edx
call sub.KERNEL32.dll_GetProcessHeap
push edi
push 0
push eax
call sub.KERNEL32.dll_HeapFree
mov edx, ebp
test bl, bl
jne 0x1004a2d6
mov eax, dword [0x104dec50]
test eax, eax
jne 0x1004a35c
mov esi, dword [edx]
mov eax, dword [0x104dec60]
test eax, eax
je 0x1004a2f9
cmp eax, 0x100f30b0
jne 0x1004a31e
mov eax, dword [esi]
mov byte [eax + 0x18], 0
push eax
call sub.KERNEL32.dll_LeaveCriticalSection
jmp 0x1004a1e6
mov ecx, 0x10421629
mov edx, 0x17
call fcn.100f2ce0
test eax, eax
mov eax, 0x100f30b0
cmovne eax, edx
mov dword [0x104dec60], eax
cmp eax, 0x100f30b0
je 0x1004a2e8
mov eax, dword [0x104dec78]
test eax, eax
jne 0x1004a345
mov ecx, 0x10421918
mov edx, 0x17
call fcn.100f2ce0
test eax, eax
mov eax, 0x100f4ef0
cmovne eax, edx
mov dword [0x104dec78], eax
push esi
call eax
jmp 0x1004a1e6
call fcn.100fa7c0
mov ebx, eax
xor bl, 1
jmp 0x1004a26c
mov edi, edx
call fcn.100fa7c0
mov edx, edi
test al, al
jne 0x1004a2d6
mov byte [esi + 0x14], 1
jmp 0x1004a2d6
mov ecx, ebx
push 0x1041885c
jmp 0x1004a386
mov ecx, ebx
push 0x1041884c
call fcn.100098e0
add esp, 4
ud2
mov dword [esp + 8], edx
mov byte [esp + 0xc], bl
mov ecx, 0x1044a65b
mov edx, 0x2b
push 0x1041881c
push 0x1041880c
lea eax, [esp + 0x10]
push eax
call fcn.1000a790
add esp, 0xc
ud2