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

Disassembly:
sub esp, 0x90c
mov eax, dword [0x100b4208]
xor eax, esp
mov dword [esp + 0x908], eax
push ebx
push ebp
push esi
push edi
push 0x7f
lea eax, [esp + 0x9d]
mov ebx, ecx
push 0
push eax
mov dword [esp + 0x20], ebx
mov byte [esp + 0xa4], 0
call fcn.10075220
push 0x7f
lea ecx, [esp + 0x29]
push 0
push ecx
mov byte [esp + 0x30], 0
call fcn.10075220
mov ebp, dword [ebx]
mov edi, dword [ebp + 0x128]
mov edx, dword [edi + 0x1eb4]
sub edx, dword [edi + 0x1eb0]
lea eax, [edi + 0x1cb0]
add edx, 2
push edx
push eax
push 0x3c
mov esi, ebp
mov dword [esp + 0x34], ebp
call fcn.1004a9a0
mov eax, dword [edi + 0x1eb0]
movzx ecx, byte [eax]
inc eax
add esp, 0x24
mov dword [edi + 0x1eb0], eax
cmp ecx, 0x18
je 0x1004b1c6
cmp ecx, 0x23
je 0x1004b13a
cmp ecx, 0x27
jne 0x1004b259
push 0
push ecx
push 0xfa
push 0xff
push 0x1009f308
lea ecx, [esp + 0x12c]
push 0x800
push ecx
call fcn.100368d0
mov esi, dword [edi + 0x1cac]
add esp, 0x1c
mov ebp, 4
test esi, esi
je 0x1004b0c6
lea ebx, [ebx]
mov ebx, dword [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1004b057
sub eax, edx
lea edi, [eax + ebp + 1]
cmp edi, 0x7fa
jae 0x1004b0bb
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x9c]
push eax
push str._127_____127s
push ebx
call fcn.1007588c
add esp, 0x10
test eax, eax
je 0x1004b0bb
lea ecx, [esp + 0x18]
push ecx
push 1
lea edx, [esp + 0xa0]
push edx
push 0
mov eax, 0x800
push str._c_s_c_s
sub eax, ebp
push eax
lea ecx, [esp + ebp + 0x130]
push ecx
call fcn.100368d0
add esp, 0x1c
mov ebp, edi
mov esi, dword [esi + 4]
test esi, esi
jne 0x1004b050
mov ebx, dword [esp + 0x14]
push pe_nt_image_headers32
push 0xff
mov edx, 0x800
push 0x1009f2e4
sub edx, ebp
push edx
lea eax, [esp + ebp + 0x128]
push eax
call fcn.100368d0
mov edx, dword [ebx + 0x154]
add esp, 0x14
push 0
add ebp, 2
push ebp
lea ecx, [esp + 0x120]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x1004b125
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.10032f90
add esp, 0xc
mov esi, dword [esp + 0x10]
add ebp, 0xfffffffe
push ebp
lea ecx, [esp + 0x11e]
push ecx
jmp 0x1004b24f
lea ecx, [edi + 0x1c28]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1004b145
push pe_nt_image_headers32
push 0xff
push ecx
push 0
push 0x23
push 0xfa
push 0xff
push str._c_c_c_c_s_c_c
lea edx, [esp + 0x138]
sub eax, esi
push 0x800
push edx
lea edi, [eax + 6]
call fcn.100368d0
mov ecx, dword [ebx + 0x154]
add esp, 0x28
push 0
push edi
lea eax, [esp + 0x120]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x1004b1b5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebp
call fcn.10032f90
add esp, 0xc
add edi, 0xfffffffe
push edi
lea edx, [esp + 0x11e]
push edx
jmp 0x1004b24d
lea ecx, [edi + 0x1c08]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1004b1d1
push pe_nt_image_headers32
push 0xff
push ecx
push 0
push 0x18
push 0xfa
push 0xff
sub eax, esi
push str._c_c_c_c_s_c_c
lea edi, [eax + 6]
lea eax, [esp + 0x138]
push 0x800
push eax
call fcn.100368d0
mov edx, dword [ebx + 0x154]
add esp, 0x28
push 0
push edi
lea ecx, [esp + 0x120]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x1004b241
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebp
call fcn.10032f90
add esp, 0xc
add edi, 0xfffffffe
push edi
lea eax, [esp + 0x11e]
push eax
mov esi, ebp
push 0x3e
call fcn.1004a9a0
add esp, 0xc
mov ecx, dword [esp + 0x918]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10073b34
add esp, 0x90c
ret