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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x435ca2
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
push ebx
push esi
push edi
mov eax, dword [0x445018]
xor eax, esp
push eax
lea eax, [esp + 0xd8]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esi + 0x2c]
push eax
mov dword [esp + 0x24], eax
mov byte [esp + 0x28], 0
call edi
lea eax, [esi + 0xa8]
mov dword [esp + 0xe0], 1
push eax
mov dword [esp + 0x14], eax
mov byte [esp + 0x18], 0
call edi
mov ebx, dword [esi + 0xc0]
lea ecx, [esp + 0x10]
call fcn.004021e0
test ebx, ebx
je 0x42f3d7
mov edi, dword [ebx + 4]
sub edi, dword [ebx + 0xc]
mov byte [esp + 0x18], 1
test edi, edi
jle 0x42ede5
cmp edi, 0x2710
jl 0x42edea
mov edi, 0x2710
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [esp + 0x10], eax
lea eax, [esi + 0xc8]
push eax
mov dword [esp + 0x34], eax
mov byte [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0xe0]
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], eax
call fcn.004021e0
mov ecx, dword [ebx]
add ecx, dword [ebx + 0xc]
mov edx, dword [esp + 0x1c]
push 0
push edi
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
mov dword [esp + 0x30], edi
call dword [sym.imp.WINMM.dll_timeGetTime]
sub eax, dword [esp + 0x10]
test edi, edi
mov dword [esp + 0x1c], eax
jg 0x42f1de
call fcn.00402130
mov dword [esp + 0x10], eax
mov eax, dword [eax + 4]
push 0
add eax, 0x14
push eax
lea ecx, [esp + 0x30]
call fcn.004198b0
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
mov eax, dword [edx]
and eax, 0x1f
lea ecx, [esp + 0x28]
mov dword [esp + 0x10], eax
call fcn.004021e0
test byte [esp + 0x10], 1
je 0x42ef50
xor eax, eax
push 1
push 2
lea ecx, [esp + 0x5c]
mov dword [esp + 0x40], 1
mov dword [esp + 0x44], str..NetworkModelSocketEngine.cpp
mov dword [esp + 0x48], str.SocketParam::Write
mov dword [esp + 0x4c], 0x1b4
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int_]
mov byte [esp + 0xe0], 4
mov eax, dword [ebx + 4]
mov edx, dword [esi + 0x164]
push eax
push ecx
mov ecx, dword [ebx + 0xc]
push str._total:
add ecx, edi
push ecx
push str._sended:
push edi
push str._Write___::send
push edx
lea eax, [esp + 0x74]
push str.SEngine_:
push eax
call fcn.00401ae0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const__]
push eax
call fcn.00401ae0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push eax
call fcn.00401ae0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push eax
call fcn.00401ae0
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
lea ecx, [esp + 0x38]
mov byte [esp + 0xe0], 1
call fcn.00428850
call fcn.00402130
mov ecx, dword [eax + 4]
add ecx, 0x14
push 0
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x18], eax
call fcn.004198b0
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 4]
mov eax, dword [eax]
and eax, 0x1f
lea ecx, [esp + 0x28]
mov dword [esp + 0x10], eax
call fcn.004021e0
test byte [esp + 0x10], 1
je 0x42f040
xor eax, eax
push 1
push 2
lea ecx, [esp + 0x5c]
mov dword [esp + 0x40], 1
mov dword [esp + 0x44], str..NetworkModelSocketEngine.cpp
mov dword [esp + 0x48], str.SocketParam::Write
mov dword [esp + 0x4c], 0x1b5
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int_]
mov byte [esp + 0xe0], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
push str._GetLastError:
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esi + 0x164]
push eax
push str._::send_WSAGetLastError:
push ecx
lea edx, [esp + 0x6c]
push str.SEngine_:
push edx
call fcn.00401ae0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const__]
push eax
call fcn.00401ae0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push eax
call fcn.00401ae0
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
lea ecx, [esp + 0x38]
mov byte [esp + 0xe0], 1
call fcn.00428850
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x42f3d7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x42f06b
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42f3d7
push 2
add esi, 0x44
mov byte [esp + 0x1c], 0
call fcn.00430d60
test al, al
jne 0x42f109
call fcn.00402130
call fcn.00429250
test al, 1
je 0x42f0f5
push 0x1ca
mov edx, str.SocketParam::Write
mov ecx, str..NetworkModelSocketEngine.cpp
mov eax, 1
lea esi, [esp + 0x3c]
call fcn.004287e0
mov ecx, dword [ebp + 8]
mov byte [esp + 0xe0], 7
mov edx, dword [ecx + 0x164]
push str._Write___::send_failed
push edx
add eax, 0x1c
push str.SEngine_:
push eax
call fcn.00401ae0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const__]
push eax
call fcn.00401ae0
add esp, 8
mov ecx, esi
mov byte [esp + 0xe0], 1
call fcn.00428850
mov esi, dword [ebp + 8]
add esi, 0x64
mov edi, 2
call fcn.00430ce0
mov edi, dword [esp + 0x30]
mov esi, dword [ebp + 8]
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 0xc]
jg 0x42f36f
xor edi, edi
add esi, 0xa4
call fcn.00430ce0
mov esi, dword [ebp + 8]
add esi, 0x1ec
call fcn.00430ce0
call fcn.00402130
call fcn.00429250
test al, 1
je 0x42f2fb
xor eax, eax
push 1
push 2
lea ecx, [esp + 0x5c]
mov dword [esp + 0x40], 1
mov dword [esp + 0x44], str..NetworkModelSocketEngine.cpp
mov dword [esp + 0x48], str.SocketParam::Write
mov dword [esp + 0x4c], 0x1d2
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int_]
mov edi, dword [ebp + 8]
mov byte [esp + 0xe0], 8
mov ecx, dword [ebx + 8]
mov edx, dword [edi + 0x164]
push ecx
push ecx
push str._Write___dataWapper_set_NULL__OnSend_seq:
push edx
lea eax, [esp + 0x64]
push str.SEngine_:
push eax
call fcn.00401ae0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const__]
push eax
call fcn.00401ae0
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
lea ecx, [esp + 0x38]
mov byte [esp + 0xe0], 1
call fcn.00428850
jmp 0x42f2fe
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x42f1f0
add eax, edi
cmp eax, dword [ebx + 4]
jl 0x42f2f3
call fcn.00402130
mov dword [esp + 0x10], eax
mov eax, dword [eax + 4]
push 0
add eax, 0x14
push eax
lea ecx, [esp + 0x30]
call fcn.004198b0
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
mov eax, dword [edx]
and eax, 0x1f
lea ecx, [esp + 0x28]
mov dword [esp + 0x10], eax
call fcn.004021e0
test byte [esp + 0x10], 1
je 0x42f2f3
xor eax, eax
push 1
push 2
lea ecx, [esp + 0x5c]
mov dword [esp + 0x40], 1
mov dword [esp + 0x44], str..NetworkModelSocketEngine.cpp
mov dword [esp + 0x48], str.SocketParam::Write
mov dword [esp + 0x4c], 0x1c1
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int_]
mov byte [esp + 0xe0], 6
mov eax, dword [ebx + 4]
mov edx, dword [esi + 0x164]
push eax
push ecx
mov ecx, dword [ebx + 0xc]
push str._total:
add ecx, edi
push ecx
push str._sended:
push edi
push str._Write___::send
push edx
lea eax, [esp + 0x74]
push str.SEngine_:
push eax
call fcn.00401ae0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const__]
push eax
call fcn.00401ae0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push eax
call fcn.00401ae0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push eax
call fcn.00401ae0
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
lea ecx, [esp + 0x38]
mov byte [esp + 0xe0], 1
call fcn.00428850
add dword [ebx + 0xc], edi
jmp 0x42f10c
mov edi, dword [ebp + 8]
push 2
lea esi, [edi + 0x44]
call fcn.00430d60
test al, al
jne 0x42f34f
lea eax, [edi + 0x84]
call fcn.00430e60
mov edi, eax
test edi, edi
je 0x42f34f
mov esi, dword [ebp + 8]
add esi, 0x124
call fcn.0041e9d0
test al, al
jne 0x42f34f
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebx + 4]
mov edx, dword [edi]
mov edx, dword [edx + 4]
push ecx
mov ecx, dword [esp + 0x1c]
push eax
sub eax, dword [ebx + 0xc]
push eax
mov eax, dword [esp + 0x3c]
push eax
push ecx
mov ecx, edi
call edx
mov eax, dword [ebx]
test eax, eax
mov esi, dword [sym.imp.MSVCR80.dll_free]
je 0x42f367
push eax
call esi
add esp, 4
mov dword [ebx], 0
push ebx
call esi
add esp, 4
jmp 0x42f3c0
push 2
add esi, 0x44
call fcn.00430d60
test al, al
jne 0x42f3c0
mov esi, dword [ebp + 8]
lea eax, [esi + 0x84]
call fcn.00430e60
test eax, eax
mov dword [esp + 0x10], eax
je 0x42f3c0
add esi, 0x124
call fcn.0041e9d0
test al, al
jne 0x42f3c0
mov eax, dword [ebx + 4]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push esi
push eax
sub eax, dword [ebx + 0xc]
push eax
mov eax, dword [esp + 0x24]
push edi
push eax
call edx
cmp byte [esp + 0x18], 0
jne 0x42f3d7
mov esi, dword [ebp + 8]
add esi, 0x104
mov bl, 1
call fcn.0041ea00
lea ecx, [esp + 0x20]
mov dword [esp + 0xe0], 0xffffffff
call fcn.004021e0
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4