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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
mov eax, dword [esp + 0x64]
mov esi, dword [esp + 0x50]
lea edi, [ebx + 0x20]
mov dword [ebx + 0x20], 0
mov dword [ebx + 4], 3
mov dword [ebx + 0x44], ebp
mov dword [ebx + 0x3c], eax
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
test byte [ebp + 0x2e], 0x10
je 0x4e18c0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
sub esp, 0x10
test eax, eax
mov dword [ebx + 0x54], eax
je 0x4e1c49
or eax, 1
mov dword [ebx + 0x58], 0xffffffff
mov dword [ebx + 0x30], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x90]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_WSASend]
sub esp, 0x1c
test eax, eax
jne 0x4e1990
mov ecx, dword [ebp + 0x2c]
test ecx, 0x40000
je 0x4e1b10
mov eax, dword [ebp + 0x40]
mov dword [ebx + 0x34], 0
add dword [ebp + 0x3c], 1
add dword [ebp + 0x88], 1
mov edx, eax
lea edi, [eax + 1]
test edx, edx
mov eax, edi
mov dword [ebp + 0x40], edi
jne 0x4e1a74
test cl, 1
jne 0x4e1a33
test cl, 0x40
je 0x4e1a5e
nop
lea eax, [esi + 0x10]
mov dword [ebx + 8], eax
mov edx, dword [esi + 0x14]
lea eax, [ebx + 8]
mov dword [ebx + 0xc], edx
mov dword [edx], eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x28]
mov dword [ebx + 0x38], 0
test eax, eax
je 0x4e1a23
mov edx, dword [eax + 0x38]
mov dword [ebx + 0x38], edx
mov dword [eax + 0x38], ebx
mov dword [esi + 0x28], ebx
add esp, 0x3c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x3e5
je 0x4e1b10
mov eax, dword [ebp + 0x40]
mov dword [ebx + 0x34], 0
add dword [ebp + 0x3c], 1
add dword [ebp + 0x88], 1
mov edi, eax
lea ecx, [eax + 1]
test edi, edi
mov eax, ecx
mov dword [ebp + 0x40], ecx
jne 0x4e1ae1
mov ecx, dword [ebp + 0x2c]
test cl, 1
jne 0x4e1aa0
test cl, 0x40
je 0x4e1acb
lea esi, [esi]
lea eax, [esi + 0x10]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx + 8], eax
mov edx, dword [esi + 0x14]
lea eax, [ebx + 8]
mov dword [ebx + 0xc], edx
mov dword [edx], eax
mov dword [esi + 0x14], eax
call edi
test eax, eax
jle 0x4e1be5
call edi
movzx eax, ax
or eax, 0x80070000
mov dword [ebx + 0x20], eax
mov eax, dword [esi + 0x28]
mov dword [ebx + 0x38], 0
test eax, eax
jne 0x4e1976
mov dword [ebx + 0x38], ebx
mov dword [esi + 0x28], ebx
add esp, 0x3c
pop ebx
xor eax, eax
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0x37a
mov dword [esp + 4], str.src_win_tcp.c
mov dword [esp], 0x753478
call fcn.0053e6a0
mov ecx, dword [ebp + 0x2c]
test cl, 0x40
jne 0x4e1c60
mov eax, dword [ebp + 0x40]
mov edi, ecx
or edi, 0x40
and ecx, 0x20
mov dword [ebp + 0x2c], edi
je 0x4e1a72
mov edx, dword [ebp + 4]
add dword [edx + 4], 1
mov edi, eax
test edi, edi
jg 0x4e1950
mov dword [esp + 8], 0x37a
mov dword [esp + 4], str.src_win_tcp.c
mov dword [esp], 0x7534a8
call fcn.0053e6a0
jmp 0x4e1950
mov dword [esp + 8], 0x38f
mov dword [esp + 4], str.src_win_tcp.c
mov dword [esp], 0x753478
call fcn.0053e6a0
mov ecx, dword [ebp + 0x2c]
test cl, 0x40
jne 0x4e1c70
mov eax, dword [ebp + 0x40]
mov edi, ecx
or edi, 0x40
and ecx, 0x20
mov dword [ebp + 0x2c], edi
je 0x4e1adf
mov edx, dword [ebp + 4]
add dword [edx + 4], 1
mov ecx, eax
test ecx, ecx
jg 0x4e19e0
mov dword [esp + 8], 0x38f
mov dword [esp + 4], str.src_win_tcp.c
mov dword [esp], 0x7534a8
call fcn.0053e6a0
jmp 0x4e19e0
mov eax, dword [esp + 0x60]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call fcn.004cac10
mov dword [ebx + 0x34], eax
mov eax, dword [ebp + 0x40]
add dword [ebp + 0x3c], 1
add dword [ebp + 0x88], 1
mov edi, eax
lea ecx, [eax + 1]
test edi, edi
mov eax, ecx
mov dword [ebp + 0x40], ecx
jne 0x4e1b6a
mov ecx, dword [ebp + 0x2c]
test cl, 1
jne 0x4e1bf0
test cl, 0x40
jne 0x4e1b75
mov edi, ecx
or edi, 0x40
and ecx, 0x20
mov dword [ebp + 0x2c], edi
je 0x4e1b68
mov ecx, dword [ebp + 4]
add dword [ecx + 4], 1
mov ecx, eax
test ecx, ecx
jle 0x4e1c20
mov ecx, dword [ebp + 0x2c]
lea eax, [esi + 0x10]
mov dword [ebx + 8], eax
mov edi, dword [esi + 0x14]
lea eax, [ebx + 8]
mov dword [ebx + 0xc], edi
mov dword [edi], eax
mov dword [esi + 0x14], eax
mov eax, dword [ebx + 0x34]
add dword [ebp + 0x30], eax
and ecx, 0x100000
je 0x4e1982
mov dword [esp + 0x14], 0xc
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x4e0980
mov eax, dword [ebx + 0x54]
mov dword [esp + 4], eax
lea eax, [ebx + 0x58]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_RegisterWaitForSingleObject]
sub esp, 0x18
test eax, eax
jne 0x4e1982
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call edi
test eax, eax
jg 0x4e1a04
call edi
jmp 0x4e1a0e
mov dword [esp + 8], 0x381
mov dword [esp + 4], str.src_win_tcp.c
mov dword [esp], 0x753478
call fcn.0053e6a0
mov ecx, dword [ebp + 0x2c]
test cl, 0x40
je 0x4e1c41
mov ecx, dword [ebp + 0x40]
jmp 0x4e1b6a
mov dword [esp + 8], 0x381
mov dword [esp + 4], str.src_win_tcp.c
mov dword [esp], 0x7534a8
call fcn.0053e6a0
jmp 0x4e1b72
mov eax, dword [ebp + 0x40]
jmp 0x4e1b54
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esp + 4], 0x75343d
mov dword [esp], eax
call fcn.004cc730
nop
mov edi, dword [ebp + 0x40]
jmp 0x4e1a74
mov ecx, dword [ebp + 0x40]
jmp 0x4e1ae1