Function at 0x44e8b0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bc17c
mov eax, dword fs:[0]
push eax
sub esp, 0x1f4
mov eax, dword [0x587614]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x1dc]
mov dword [ebp - 4], 0
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea eax, [ebp - 0x1d8]
mov byte [ebp - 4], 1
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x44e941
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [ebp - 0x1dc]
push str.WSAStartup_error._code___d
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
add esp, 0xc
push 0
push str.Error
push dword [ebp - 0x1dc]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x44ea42
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [0x58cfd8]
mov ebx, eax
add ecx, 0x160
push ecx
lea ecx, [ebp - 0x1e4]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__17]
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
push str.IP__d._d._d._d__d
push dword [ebp - 0x1e4]
call fcn.00408820
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push str._d._d._d._d
push eax
call fcn.00421150
mov esi, dword [sym.imp.WS2_32.dll_inet_addr]
add esp, 0x34
mov eax, 2
mov word [ebp - 0x48], ax
lea eax, [ebp - 0x24]
push eax
call esi
push dword [ebp - 0x28]
mov dword [ebp - 0x44], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x46], ax
lea eax, [ebp - 0x24]
push eax
call esi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x48]
push 0x10
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
jne 0x44ea5e
call esi
cmp eax, 0x2733
je 0x44ea5e
call esi
push eax
lea eax, [ebp - 0x1dc]
push str.connect_error._code___d
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
add esp, 0xc
push 0
push str.Error
push dword [ebp - 0x1dc]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea ecx, [ebp - 0x1e4]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x1dc]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
xor eax, eax
jmp 0x44ecb6
push 4
lea eax, [ebp - 0x1ec]
mov dword [ebp - 0x1ec], 0xea60
push eax
push 0x1005
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [ebp - 0x200]
call sub.mfc140u.dll_CFile::CFile
push 0
push 0x8000
push dword [ebp + 8]
lea ecx, [ebp - 0x200]
mov byte [ebp - 4], 3
call sub.mfc140u.dll_CFile::Open
test eax, eax
je 0x44ec7d
cmp dword [0x58a570], 0
je 0x44eaea
push ecx
mov ecx, esp
push str.Print_TCP_IP
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__19]
mov ecx, dword [0x58a570]
call fcn.00474c00
mov ecx, dword [0x58a570]
push 0
call fcn.00474ad0
mov ecx, dword [0x58a570]
push 1
call fcn.00474980
mov eax, dword [0x58a5a8]
imul eax, dword [0x58a5ac]
shl eax, 8
push eax
call sub.mfc140u.dll_operator_1
add esp, 4
lea ecx, [ebp - 0x200]
mov edi, eax
push dword [0x58a5a0]
push edi
call sub.mfc140u.dll_CFile::Read
push 0
push dword [0x58a5a0]
push edi
push ebx
call dword [sym.imp.WS2_32.dll_send]
mov esi, dword [0x58a5a4]
cmp esi, 0x100
ja 0x44eb5f
imul esi, dword [0x58a5a8]
lea ecx, [ebp - 0x200]
imul esi, dword [0x58a5ac]
push esi
push edi
call sub.mfc140u.dll_CFile::Read
push 0
push esi
push edi
push ebx
call dword [sym.imp.WS2_32.dll_send]
jmp 0x44ec5a
xor eax, eax
test esi, esi
je 0x44ec5a
mov dword [ebp - 0x1e0], 0x6400
nop dword [eax]
nop word [eax + eax]
lea ecx, [eax + 0x100]
mov dword [ebp - 0x1e8], ecx
cmp ecx, esi
lea ecx, [ebp - 0x200]
jbe 0x44eba8
sub esi, eax
imul esi, dword [0x58a5a8]
imul esi, dword [0x58a5ac]
jmp 0x44ebb8
mov esi, dword [0x58a5a8]
imul esi, dword [0x58a5ac]
shl esi, 8
push esi
push edi
call sub.mfc140u.dll_CFile::Read
push 0
push esi
push edi
push ebx
call dword [sym.imp.WS2_32.dll_send]
mov esi, dword [0x58a5a4]
mov ecx, eax
mov eax, dword [ebp - 0x1e0]
xor edx, edx
div esi
mov edx, 0x64
cmp eax, 0x64
cmovg eax, edx
test ecx, ecx
js 0x44ec28
mov ecx, dword [0x58a570]
test ecx, ecx
je 0x44ec0e
push eax
call fcn.00474ad0
mov ecx, dword [0x58a570]
push 1
call fcn.00474980
mov esi, dword [0x58a5a4]
mov eax, dword [ebp - 0x1e8]
add dword [ebp - 0x1e0], 0x6400
cmp eax, esi
jb 0x44eb80
jmp 0x44ec5a
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [ebp - 0x1dc]
push str.send_error._code___d__d
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
add esp, 0x10
push 0
push str.Error
push dword [ebp - 0x1dc]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
call sub.mfc140u.dll_operator
add esp, 4
lea ecx, [ebp - 0x200]
call sub.mfc140u.dll_CFile::Close
mov ecx, dword [0x58a570]
test ecx, ecx
je 0x44ec7d
call fcn.00474840
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea ecx, [ebp - 0x200]
call fcn.004b4f4e
lea ecx, [ebp - 0x1e4]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x1dc]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b61c2
mov esp, ebp
pop ebp
ret