Function at 0x140243bf0
Capabilities:
Connect socket
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r15
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x14039e2e8]
xor rax, rsp
mov qword [rbp + reloc.mfc140u.dll_CDocTemplate::CDocTemplate], rax
mov rbx, rdx
mov rsi, rcx
mov ecx, SerializeElements<ATL::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t>
lea rdx, [rbp + 0x40]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140243c81
lea rax, [rsp + 0x28]
mov qword [rsp + 0x38], rax
lea rdx, str.C:UsersScottBrAppDataLocalTempDitto_BuildClient.cpp
lea rcx, [rsp + 0x28]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
mov rbx, rax
lea rdx, str.ERROR___WSAStartup_0x101_wsaData_
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
nop
mov r8d, 0x7d
mov rdx, rbx
mov rcx, rax
call fcn.14015b880
xor eax, eax
jmp 0x140243f82
mov edi, 1
lea r8d, [rdi + 5]
mov edx, edi
mov r15d, 2
mov ecx, r15d
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x140243cf7
lea rax, [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rdx, str.C:UsersScottBrAppDataLocalTempDitto_BuildClient.cpp
lea rcx, [rsp + 0x28]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
mov rbx, rax
lea rdx, str.ERROR___socket_AF_INET_SOCK_STREAM_IPPROTO_TCP_
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
nop
mov r8d, 0x85
mov rdx, rbx
mov rcx, rax
call fcn.14015b880
mov qword [rsi + 8], 0
xor eax, eax
jmp 0x140243f82
mov rdx, rbx
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__15]
nop
mov eax, dword [0x1403c5384]
mov dword [rsi + 0x10], eax
lea rdx, [0x1402b5958]
lea rcx, [rsp + 0x28]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
nop
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__15]
nop
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.1401404c0
nop
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rsp + 0x28]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
xor ebx, ebx
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.140140590
test al, al
je 0x140243dc7
nop
test ebx, ebx
jne 0x140243d96
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc140u.dll_Ordinal_1501]
jmp 0x140243db2
cmp ebx, 1
jne 0x140243db2
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov dword [rsi + 0x10], eax
inc ebx
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.140140590
test al, al
jne 0x140243d80
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__8]
mov rbx, rax
mov qword [rsp + 0x40], rax
mov rcx, rax
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
lea rcx, [rbp - 0x48]
mov qword [rbp - 0x50], rcx
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.1400f8f90
nop
mov rdx, qword [rbp - 0x50]
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_char_StrTraitMFC_DLL_char_ATL::ChTraitsCRT_char__1]
nop
lea rax, [rbp - 0x48]
mov rcx, qword [rbp - 0x50]
cmp rcx, rax
je 0x140243e24
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, rbx
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___2]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, eax
cmp eax, 0xffffffff
jne 0x140243e6f
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___2]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x140243ef0
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov ecx, dword [rcx]
lea eax, [rcx - 1]
cmp eax, 0xfffffffd
ja 0x140243ef0
mov dword [rbp - 0x64], ecx
mov word [rbp - 0x68], r15w
movzx ecx, word [rsi + 0x10]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x66], ax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp - 0x68]
mov rcx, qword [rsi + 8]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x140243f47
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x40], rax
lea rdx, str.C:UsersScottBrAppDataLocalTempDitto_BuildClient.cpp
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
mov rdi, rax
mov r8d, ebx
lea rdx, str.ERROR_if_connect_m_Connection__struct_sockaddr_server_sizeof_server____why___d
lea rcx, [rsp + 0x38]
call fcn.14015b330
nop
mov r8d, 0xbd
mov rdx, rdi
jmp 0x140243f2b
lea rax, [rsp + 0x38]
mov qword [rsp + 0x58], rax
lea rdx, str.C:UsersScottBrAppDataLocalTempDitto_BuildClient.cpp
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
mov rbx, rax
lea rdx, str.addr__NULL__addr__INADDR_NONE
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
nop
mov r8d, 0xb0
mov rdx, rbx
mov rcx, rax
call fcn.14015b880
mov rcx, qword [rsi + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rsi + 8], 0
xor edi, edi
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XImage::XImage]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rsp + 0x68]
call fcn.140103310
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov eax, edi
mov rcx, qword [rbp + reloc.mfc140u.dll_CDocTemplate::CDocTemplate]
xor rcx, rsp
call fcn.1402654f0
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret