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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4078e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], edi
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0
call sub.MFC42.DLL_CString::CString_1
mov esi, dword [ebp + 8]
lea eax, [esp + 0x20]
push 3
push eax
mov ecx, esi
mov byte [esp + 0x40], 1
call fcn.00405280
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 2
call fcn.00406958
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 1
call fcn.0040694c
lea ecx, [esp + 0x20]
push 4
push ecx
mov ecx, esi
call fcn.00405280
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 3
call fcn.00406958
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 1
call fcn.0040694c
push 0
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::GetBuffer
mov ebx, dword [sym.imp.MSVCRT.dll_atoi]
push eax
call ebx
add esp, 4
mov esi, eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], esi
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call ebx
add esp, 4
mov ebx, eax
test esi, esi
jl 0x40611b
test ebx, ebx
jle 0x40611b
mov edx, dword [edi + 0x80]
mov eax, dword [edx]
cmp esi, eax
jg 0x40611b
lea ecx, [ebx + esi]
cmp ecx, eax
jle 0x405ead
sub eax, esi
lea edx, [esp + 0x10]
mov ebx, eax
push ebx
push 0x40a588
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 4
call sub.MFC42.DLL_CString::CString_1
push 0xcdb6
push 0xcdb5
lea eax, [esp + 0x14]
push str._d_r_n_d_r_n
push eax
mov byte [esp + 0x48], 5
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0xc]
push str.send_nw_data
call fcn.0040696a
push 0x40a584
lea ecx, [esp + 0x10]
call fcn.0040696a
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator
push 0x40a584
lea ecx, [esp + 0x10]
call fcn.0040696a
lea edx, [esp + 0x10]
lea ecx, [esp + 0xc]
push edx
call sub.MFC42.DLL_CString::operator
push 0x40a584
lea ecx, [esp + 0x10]
call fcn.0040696a
mov eax, dword [esp + 0xc]
mov eax, dword [eax - 8]
mov dword [esp + 0x14], eax
lea eax, [eax + ebx + 2]
push eax
mov dword [esp + 0x2c], eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov edi, eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], edi
push 0
call sub.MFC42.DLL_CString::GetBuffer
mov esi, eax
mov eax, dword [esp + 0x14]
mov ecx, eax
push 0
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
mov edx, dword [edx + 0x7c]
mov edi, dword [esp + 0x28]
add eax, ecx
mov esi, dword [edx]
mov ecx, ebx
mov edx, ecx
add esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
mov byte [eax + ebx], 0xd
mov byte [eax + ebx + 1], 0xa
mov eax, dword [esp + 0x24]
mov edx, dword [ecx + 0x88]
push esi
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
jne 0x4060d4
mov esi, dword [esp + 0x1c]
mov edi, dword [esi + 0x8c]
add edi, ebx
mov dword [esi + 0x8c], edi
mov eax, dword [0x40ab50]
inc eax
cmp eax, 1
mov dword [0x40ab50], eax
jle 0x4060f0
lea ecx, [esp + 0x14]
mov dword [0x40ab50], 0
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esi + 0x8c]
mov ecx, dword [esi + 0x80]
mov dword [esp + 0x28], eax
cmp eax, 0x400
fild dword [esp + 0x28]
mov byte [esp + 0x38], 6
fld st(0)
fmul qword [0x4083e8]
fidiv dword [ecx]
fstp dword [esp + 0x1c]
jge 0x406059
fstp st(0)
fld dword [esp + 0x1c]
sub esp, 8
lea edx, [esp + 0x1c]
fstp qword [esp]
push eax
push 0x40a9dc
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
jmp 0x4060aa
cmp eax, 0x100000
jge 0x406082
fmul qword [0x4083e0]
fld dword [esp + 0x1c]
sub esp, 8
lea eax, [esp + 0x1c]
fstp qword [esp]
sub esp, 8
fstp qword [esp]
push 0x40a9b0
push eax
jmp 0x4060a2
fmul qword [0x4083d8]
fld dword [esp + 0x1c]
sub esp, 8
lea ecx, [esp + 0x1c]
fstp qword [esp]
sub esp, 8
fstp qword [esp]
push 0x40a984
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x18
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call sub.MFC42.DLL_CString::CString
push 7
mov ecx, esi
call fcn.00406790
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 5
call fcn.0040694c
jmp 0x4060f0
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x40a904
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x20]
push 2
call fcn.00406710
mov eax, dword [esp + 0x20]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 4
call fcn.0040694c
lea ecx, [esp + 0x2c]
mov byte [esp + 0x38], 1
call fcn.0040694c
jmp 0x406135
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x40a95c
call sub.MFC42.DLL_CString::CString_2
push 4
mov ecx, edi
call fcn.00406710
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 0
call fcn.0040694c
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], 0xffffffff
call fcn.0040694c
mov ecx, dword [esp + 0x30]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4