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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x934
mov eax, dword [0x6b8dd8]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [0x62cc00]
mov byte [ebp - 0x104], al
push 0x7f
push 0
lea ecx, [ebp - 0x103]
push ecx
call fcn.005f3cf0
add esp, 0xc
mov dl, byte [0x62cc00]
mov byte [ebp - 0x84], dl
push 0x7f
push 0
lea eax, [ebp - 0x83]
push eax
call fcn.005f3cf0
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x134]
mov dword [ebp - 0x90c], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x920], ecx
mov edx, dword [ebp - 0x90c]
mov eax, dword [ebp - 0x90c]
mov ecx, dword [edx + 0x1eb8]
sub ecx, dword [eax + 0x1eb4]
add ecx, 2
push ecx
mov edx, dword [ebp - 0x90c]
add edx, 0x1cb4
push edx
push 0x3c
mov eax, dword [ebp + 8]
push eax
call fcn.004ae630
add esp, 0x10
mov ecx, dword [ebp - 0x90c]
mov edx, dword [ecx + 0x1eb4]
movzx eax, byte [edx]
and eax, 0xff
mov dword [ebp - 0x930], eax
mov ecx, dword [ebp - 0x90c]
mov edx, dword [ecx + 0x1eb4]
add edx, 1
mov eax, dword [ebp - 0x90c]
mov dword [eax + 0x1eb4], edx
mov ecx, dword [ebp - 0x930]
mov dword [ebp - 0x924], ecx
cmp dword [ebp - 0x924], 0x18
je 0x4afa9b
cmp dword [ebp - 0x924], 0x23
je 0x4afb81
cmp dword [ebp - 0x924], 0x27
je 0x4afc67
jmp 0x4afecd
mov edx, dword [ebp - 0x90c]
add edx, 0x1c08
push edx
call fcn.00606e50
add esp, 4
add eax, 6
mov dword [ebp - 0x908], eax
push 0xf0
push 0xff
mov eax, dword [ebp - 0x90c]
add eax, 0x1c08
push eax
push 0
push 0x18
push 0xfa
push 0xff
push str._c_c_c_c_s_c_c
push 0x800
lea ecx, [ebp - 0x904]
push ecx
call fcn.0048e060
add esp, 0x28
push 0
mov edx, dword [ebp - 0x908]
push edx
lea eax, [ebp - 0x904]
push eax
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp - 0x920]
mov ecx, dword [eax + edx + 0x148]
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x910], eax
cmp dword [ebp - 0x910], 0
jge 0x4afb55
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x91c], eax
mov edx, dword [ebp - 0x91c]
push edx
push str.Sending_data_failed___d_
mov eax, dword [ebp + 8]
push eax
call fcn.00487870
add esp, 0xc
mov ecx, dword [ebp - 0x908]
sub ecx, 2
push ecx
mov edx, 1
shl edx, 1
lea eax, [ebp + edx - 0x904]
push eax
push 0x3e
mov ecx, dword [ebp + 8]
push ecx
call fcn.004ae630
add esp, 0x10
jmp 0x4afecd
mov edx, dword [ebp - 0x90c]
add edx, 0x1c28
push edx
call fcn.00606e50
add esp, 4
add eax, 6
mov dword [ebp - 0x908], eax
push 0xf0
push 0xff
mov eax, dword [ebp - 0x90c]
add eax, 0x1c28
push eax
push 0
push 0x23
push 0xfa
push 0xff
push str._c_c_c_c_s_c_c
push 0x800
lea ecx, [ebp - 0x904]
push ecx
call fcn.0048e060
add esp, 0x28
push 0
mov edx, dword [ebp - 0x908]
push edx
lea eax, [ebp - 0x904]
push eax
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp - 0x920]
mov ecx, dword [eax + edx + 0x148]
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x910], eax
cmp dword [ebp - 0x910], 0
jge 0x4afc3b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x91c], eax
mov edx, dword [ebp - 0x91c]
push edx
push str.Sending_data_failed___d_
mov eax, dword [ebp + 8]
push eax
call fcn.00487870
add esp, 0xc
mov ecx, dword [ebp - 0x908]
sub ecx, 2
push ecx
mov edx, 1
shl edx, 1
lea eax, [ebp + edx - 0x904]
push eax
push 0x3e
mov ecx, dword [ebp + 8]
push ecx
call fcn.004ae630
add esp, 0x10
jmp 0x4afecd
push 0
push 0x27
push 0xfa
push 0xff
push str._c_c_c_c
push 0x800
lea edx, [ebp - 0x904]
push edx
call fcn.0048e060
add esp, 0x1c
mov dword [ebp - 0x908], 4
mov eax, dword [ebp - 0x90c]
mov ecx, dword [eax + 0x1cb0]
mov dword [ebp - 0x914], ecx
jmp 0x4afcbb
mov edx, dword [ebp - 0x914]
mov eax, dword [edx + 4]
mov dword [ebp - 0x914], eax
cmp dword [ebp - 0x914], 0
je 0x4afe07
mov ecx, dword [ebp - 0x914]
mov edx, dword [ecx]
push edx
call fcn.00606e50
add esp, 4
add eax, 1
mov dword [ebp - 0x934], eax
mov eax, dword [ebp - 0x908]
add eax, dword [ebp - 0x934]
cmp eax, 0x7fa
jae 0x4afe02
mov cl, byte [0x62cc00]
mov byte [ebp - 0x918], cl
xor edx, edx
mov byte [ebp - 0x917], dl
mov eax, 1
imul ecx, eax, 0
mov dword [ebp - 0x92c], ecx
cmp dword [ebp - 0x92c], 0x80
jae 0x4afd29
jmp 0x4afd2e
call fcn.005db82b
mov edx, dword [ebp - 0x92c]
mov byte [ebp + edx - 0x84], 0
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x918]
push ecx
lea edx, [ebp - 0x104]
push edx
push str._127____1____127s
mov eax, dword [ebp - 0x914]
mov ecx, dword [eax]
push ecx
call fcn.004019d0
add esp, 0x14
mov dword [ebp - 0x928], eax
cmp dword [ebp - 0x928], 1
jne 0x4afdb4
lea edx, [ebp - 0x104]
push edx
push 0
push str._c_s
mov eax, 0x800
sub eax, dword [ebp - 0x908]
push eax
mov ecx, dword [ebp - 0x908]
lea edx, [ebp + ecx - 0x904]
push edx
call fcn.0048e060
add esp, 0x14
add eax, dword [ebp - 0x908]
mov dword [ebp - 0x908], eax
jmp 0x4afe02
cmp dword [ebp - 0x928], 2
jl 0x4afe02
lea eax, [ebp - 0x84]
push eax
push 1
lea ecx, [ebp - 0x104]
push ecx
push 0
push str._c_s_c_s
mov edx, 0x800
sub edx, dword [ebp - 0x908]
push edx
mov eax, dword [ebp - 0x908]
lea ecx, [ebp + eax - 0x904]
push ecx
call fcn.0048e060
add esp, 0x1c
add eax, dword [ebp - 0x908]
mov dword [ebp - 0x908], eax
jmp 0x4afcac
push 0xf0
push 0xff
push str._c_c
mov edx, 0x800
sub edx, dword [ebp - 0x908]
push edx
mov eax, dword [ebp - 0x908]
lea ecx, [ebp + eax - 0x904]
push ecx
call fcn.0048e060
add esp, 0x14
mov edx, dword [ebp - 0x908]
add edx, 2
mov dword [ebp - 0x908], edx
push 0
mov eax, dword [ebp - 0x908]
push eax
lea ecx, [ebp - 0x904]
push ecx
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp - 0x920]
mov edx, dword [ecx + eax + 0x148]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x910], eax
cmp dword [ebp - 0x910], 0
jge 0x4afea6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x91c], eax
mov eax, dword [ebp - 0x91c]
push eax
push str.Sending_data_failed___d_
mov ecx, dword [ebp + 8]
push ecx
call fcn.00487870
add esp, 0xc
mov edx, dword [ebp - 0x908]
sub edx, 2
push edx
mov eax, 1
shl eax, 1
lea ecx, [ebp + eax - 0x904]
push ecx
push 0x3e
mov edx, dword [ebp + 8]
push edx
call fcn.004ae630
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005db6f9
mov esp, ebp
pop ebp
ret