Function at 0x401930
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40eab1
mov eax, dword fs:[0]
push eax
mov eax, 0x782c
call fcn.0040e8c0
mov eax, dword [0x419014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x7834], esi
mov dword [ebp - 0x7818], esi
mov dword [ebp - 0x7830], eax
push 0x4110dc
lea ecx, [ebp - 0x7814]
mov dword [ebp - 4], 0
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__9]
mov eax, dword [ebp - 0x7830]
mov byte [ebp - 4], 1
push dword [eax + 0x4b8]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
add esp, 4
mov dword [ebp - 0x7838], eax
cmp dword [0x419630], 0
jne 0x401aaf
call fcn.00401120
test eax, eax
jne 0x401a08
movzx eax, byte [edi + 0x84]
push str.Call_SocketFileService___SOCKET_INIT_ERROR___r_n
push eax
call fcn.00407340
add esp, 8
lea eax, [ebp - 0x7814]
mov ecx, esi
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__11]
lea ecx, [ebp - 0x7814]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp + 0x10]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, esi
jmp 0x401ccc
mov eax, dword [ebp - 0x7830]
mov edx, dword [ebp - 0x7838]
mov ecx, dword [eax + 0x4a0]
call fcn.004011b0
cmp eax, 1
je 0x401a5b
movzx eax, byte [edi + 0x84]
push str.Call_SocketFileService___SOCK_CONNECT_FAILED___r_n
push eax
call fcn.00407340
mov eax, dword [0x419630]
add esp, 8
test eax, eax
je 0x401a53
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [0x419630], 0
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x4019dd
mov eax, dword [ebp - 0x7830]
push dword [eax + 0x4bc]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
add esp, 4
mov dword [ebp - 0x7818], eax
lea eax, [ebp - 0x7818]
push 4
push eax
push 0x1006
push 0xffff
push dword [0x419630]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x401aaf
movzx eax, byte [edi + 0x84]
push str.Call_SocketFileService___WE_DID_NOT_SET_TIMEOUT._r_n
push eax
call fcn.00407340
add esp, 8
push 0x1000
call dword [sym.imp.mfc140u.dll_operator_1]
add esp, 4
mov dword [ebp - 0x781c], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x782c]
mov esi, eax
movups xmmword [ebp - 0x782c], xmm0
call dword [sym.imp.mfc140u.dll_CFile::CFile]
mov byte [ebp - 4], 2
movzx eax, byte [edi + 0x84]
push str.Call_SocketFileService___File_trans....start._r_n
push eax
call fcn.00407340
add esp, 8
lea ecx, [ebp - 0x782c]
push 0
push 0x8000
push dword [ebp + 0x10]
call dword [sym.imp.mfc140u.dll_CFile::Open]
nop
push 0x1000
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x782c]
push 0x1000
push esi
call dword [sym.imp.mfc140u.dll_CFile::Read]
push 0
cmp eax, 1
jb 0x401b5f
push eax
push esi
push dword [0x419630]
call dword [sym.imp.WS2_32.dll_send]
push eax
movzx eax, byte [edi + 0x84]
push str.Call_SocketFileService___nSended_count___d_r_n
push eax
call fcn.00407340
add esp, 0xc
jmp 0x401b10
push 3
push esi
push dword [0x419630]
mov word [esi], 0x4f45
mov byte [esi + 2], 0x46
call dword [sym.imp.WS2_32.dll_send]
push eax
movzx eax, byte [edi + 0x84]
push str.Call_SocketFileService___EOF_count___d_r_n
push eax
call fcn.00407340
movzx eax, byte [edi + 0x84]
push str.Call_SocketFileService___File_trans....end._r_n
push eax
call fcn.00407340
movzx eax, byte [edi + 0x84]
push str.Call_SocketFileService___receive_result.xml....start._r_n
push eax
call fcn.00407340
push 0x2800
lea eax, [ebp - 0x2810]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x28
lea eax, [ebp - 0x2810]
push 0
push 0x27ff
push eax
push dword [0x419630]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0x274c
jne 0x401c1c
push str.Call_SocketFileService___TIMEOUT___r_n
movzx eax, byte [edi + 0x84]
push eax
call fcn.00407340
mov eax, dword [0x419630]
add esp, 8
test eax, eax
je 0x401c14
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [0x419630], 0
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x401c92
cmp eax, 0xffffffff
jne 0x401c28
push str.Call_SocketFileService___SOCKET_ERROR___r_n
jmp 0x401bea
test eax, eax
je 0x401c7d
push 0x5000
lea eax, [ebp - 0x7810]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x7810]
push 0x2800
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x2810]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x7810]
push eax
lea eax, [ebp - 0x7814]
push 0x410e3c
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__7]
add esp, 0xc
movzx eax, byte [edi + 0x84]
push str.Call_SocketFileService___receive_result.xml....end._r_n
push eax
call fcn.00407340
add esp, 8
mov ecx, dword [ebp - 0x7834]
lea eax, [ebp - 0x7814]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__11]
lea ecx, [ebp - 0x782c]
call dword [0x4104bc]
lea ecx, [ebp - 0x7814]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp + 0x10]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, dword [ebp - 0x7834]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040d77e
mov esp, ebp
pop ebp
ret 0xc