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

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [esp + 0x20]
push 0
push 0x1007f4e0
push 0x1007f50c
mov ebx, ecx
push 0
push edi
mov dword [esp + 0x2c], ebx
call sub.MSVCR80.dll___RTDynamicCast
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x10012204
mov eax, dword [esp + 0x24]
push eax
push edi
mov ecx, ebx
call dword [sym.imp.K8Common.dll_protected_virtual:_void___thiscall_GameMgr::GMIocpServer::OnSendComplete_class_GameMgr::GMClientContext___unsigned_long_int_]
pop edi
pop esi
pop ebx
add esp, 0x10
ret 8
mov edx, dword [esi + 0x101c]
cmp edx, dword [esi + 0x1020]
lea ecx, [edi + 0x1c]
mov dword [esp + 0x10], ecx
mov ebx, 0x1000
push ebp
lea ecx, [esi + 0x1234]
mov dword [esp + 0x18], ebx
setae byte [esp + 0x24]
call dword [sym.imp.K8Common.dll_public:_unsigned_int___thiscall_GameMgr::GMBuffer_unsigned_char_::GetDataLength_void_const]
cmp dword [esi + 0x1230], eax
mov ebp, dword [esp + 0x28]
setae byte [esp + 0x13]
cmp byte [esp + 0x24], 0
jne 0x100122ac
mov ecx, dword [esi + 0x1020]
mov edx, dword [esi + 0x101c]
mov eax, ecx
sub eax, edx
cmp eax, ebp
jbe 0x10012347
add edx, ebp
sub eax, ebp
xor ebp, ebp
test eax, eax
mov dword [esi + 0x101c], edx
mov dword [esp + 0x28], eax
jbe 0x100122ac
cmp eax, ebx
lea eax, [esp + 0x18]
ja 0x10012280
lea eax, [esp + 0x28]
mov eax, dword [eax]
push eax
mov dword [esp + 0x2c], eax
mov eax, edx
mov edx, dword [esp + 0x18]
lea ecx, [eax + esi + 0x1020]
push ecx
push edx
call sub.MSVCR80.dll_memcpy
mov eax, dword [esp + 0x34]
sub ebx, eax
add esp, 0xc
add dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
cmp byte [esp + 0x13], 0
jne 0x1001231e
mov eax, dword [esi + 0x1230]
lea ecx, [esi + 0x1234]
mov dword [esp + 0x28], eax
call dword [sym.imp.K8Common.dll_public:_unsigned_int___thiscall_GameMgr::GMBuffer_unsigned_char_::GetDataLength_void_const]
mov ecx, dword [esp + 0x28]
sub eax, ecx
cmp eax, ebp
jbe 0x10012359
sub eax, ebp
add ecx, ebp
test eax, eax
mov dword [esi + 0x1230], ecx
mov dword [esp + 0x28], eax
jbe 0x1001231e
test ebx, ebx
jbe 0x1001231e
cmp ebx, eax
lea eax, [esp + 0x18]
jb 0x100122f9
lea eax, [esp + 0x28]
mov ebp, dword [eax]
push ebp
lea ecx, [esi + 0x1234]
call dword [sym.imp.K8Common.dll_public:_unsigned_char____thiscall_GameMgr::GMBuffer_unsigned_char_::data_void_]
add eax, dword [esi + 0x1230]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
sub ebx, ebp
cmp byte [esp + 0x24], 0
pop ebp
je 0x10012372
cmp byte [esp + 0xf], 0
je 0x10012372
mov ecx, esi
call fcn.10011720
mov ecx, dword [esp + 0x18]
push edi
call fcn.10011940
pop edi
pop esi
pop ebx
add esp, 0x10
ret 8
mov dword [esi + 0x101c], ecx
sub ebp, eax
mov byte [esp + 0x24], 1
jmp 0x100122ac
lea ecx, [esi + 0x1234]
call dword [sym.imp.K8Common.dll_public:_unsigned_int___thiscall_GameMgr::GMBuffer_unsigned_char_::GetDataLength_void_const]
mov dword [esi + 0x1230], eax
mov byte [esp + 0x13], 1
jmp 0x1001231e
mov edx, dword [edi + 4]
mov ecx, dword [edi + 8]
xor esi, esi
push esi
push edx
push esi
lea edx, [esp + 0x30]
push edx
mov eax, 0x1000
sub eax, ebx
mov dword [ecx], eax
push 1
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0x14]
push ecx
push eax
mov dword [edi + 0x10], esi
mov dword [esp + 0x40], esi
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x100123bf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x100123bf
mov ecx, dword [esp + 0x18]
push edi
call dword [sym.imp.K8Common.dll_protected:_void___thiscall_GameMgr::GMIocpServer::RemoveFromClientListAndFreeMemory_class_GameMgr::GMClientContext__]
pop edi
pop esi
pop ebx
add esp, 0x10
ret 8