Function at 0x140089870
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
lea rbp, [rsp - 0x320]
sub rsp, 0x420
mov rax, qword [0x140278eb8]
xor rax, rsp
mov qword [rbp + 0x300], rax
xor esi, esi
mov r13, rdx
mov rdi, rcx
lea rdx, [rbp + 0x100]
mov ebx, esi
mov ecx, 0x202
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], 0x2e
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14008992b
call sub.libcef.dll_cef_get_min_log_level
test eax, eax
jg 0x140089923
xor r9d, r9d
lea rdx, str.C:uworkspace03_25_1cefwinauto_srcquery_handler_win.cc
mov r8d, 0x2ba
lea rcx, [rbp - 0x20]
call fcn.1400c6a90
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rbx + 8]
mov edi, eax
lea rdx, str.Couldnt_initialize_socket_library.Error_Code:
call fcn.1400025c0
mov rcx, rax
mov edx, edi
call fcn.140050d10
mov rcx, rax
lea rdx, [0x14020ab18]
call fcn.1400025c0
mov ebx, 1
test bl, 1
jmp 0x140089a7c
mov rdx, qword [rdi + 8]
xorps xmm0, xmm0
mov qword [rsp + 0x60], rsi
xorps xmm1, xmm1
mov dword [rsp + 0x68], 1
mov dword [rsp + 0x6c], 6
movdqu xmmword [rsp + 0x70], xmm0
movdqu xmmword [rbp - 0x80], xmm1
test rdx, rdx
je 0x1400899a2
mov r8, qword [rdx + 8]
test r8, r8
je 0x1400899a2
mov rdx, qword [rdx]
lea rcx, [rbp + 0xe0]
movdqa xmm0, xmmword [0x14020c430]
movdqu xmmword [rbp + 0xf0], xmm0
mov word [rbp + 0xe0], si
call fcn.1400258a0
cmp qword [rbp + 0xf8], 8
lea rcx, [rbp + 0xe0]
cmovae rcx, qword [rbp + 0xe0]
jmp 0x1400899c0
movdqa xmm0, xmmword [0x14020c430]
lea rcx, [rbp + 0xe0]
movdqu xmmword [rbp + 0xf0], xmm0
mov word [rbp + 0xe0], si
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x60]
lea rdx, [0x14020ba9c]
call qword [sym.imp.WS2_32.dll_GetAddrInfoW]
mov rdx, qword [rbp + 0xf8]
mov edi, eax
cmp rdx, 8
jb 0x140089a1f
mov rcx, qword [rbp + 0xe0]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140089a1a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140089d8d
call fcn.1401574cc
test edi, edi
je 0x140089a8e
call qword [sym.imp.WS2_32.dll_WSACleanup]
call sub.libcef.dll_cef_get_min_log_level
test eax, eax
jg 0x140089a79
xor r9d, r9d
lea rdx, str.C:uworkspace03_25_1cefwinauto_srcquery_handler_win.cc
mov r8d, 0x2c6
lea rcx, [rbp - 0x20]
call fcn.1400c6a90
lea rdx, str.Host_resoultion_failed_with
lea rcx, [rax + 8]
call fcn.1400025c0
mov rcx, rax
mov edx, edi
call fcn.140050d10
mov rcx, rax
lea rdx, [0x14020ab18]
call fcn.1400025c0
mov ebx, 2
test bl, 2
je 0x140089a87
lea rcx, [rbp - 0x20]
call fcn.1400c6df0
xor al, al
jmp 0x140089d6a
mov rdi, qword [rsp + 0x38]
mov qword [rsp + 0x460], r12
mov qword [rsp + 0x418], r14
mov qword [rsp + 0x410], r15
test rdi, rdi
je 0x140089d3f
mov edx, dword [rdi + 0x10]
lea rax, [rsp + 0x30]
mov rcx, qword [rdi + 0x20]
lea r9, [rbp + 0x2a0]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSAAddressToStringW]
test eax, eax
je 0x140089c41
call sub.libcef.dll_cef_get_min_log_level
test eax, eax
jg 0x140089c1e
xor r9d, r9d
lea rdx, str.C:uworkspace03_25_1cefwinauto_srcquery_handler_win.cc
mov r8d, 0x2d0
lea rcx, [rbp - 0x20]
or ebx, 4
call fcn.1400c6a90
lea rdx, str.WSAAddressToString_failed_with
lea rcx, [rax + 8]
call fcn.1400025c0
mov rdx, rax
lea rcx, [rsp + 0x50]
mov r14, rax
mov r15d, esi
call fcn.140006e10
cmp byte [rsp + 0x58], 0
je 0x140089bd7
mov rcx, qword [r14]
movsxd rdx, dword [rcx + 4]
mov rcx, qword [rdx + r14 + 0x40]
mov rsi, qword [rcx + 8]
mov rcx, rsi
mov qword [rbp - 0x68], rsi
mov rdx, qword [rsi]
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rbp - 0x70]
call fcn.140004bf0
mov r12, rax
test rsi, rsi
je 0x140089b7e
mov rdx, qword [rsi]
mov rcx, rsi
call qword [rdx + 0x10]
test rax, rax
je 0x140089b7e
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
mov rax, qword [r14]
lea r8, [rbp - 0x60]
mov r10, qword [r12]
lea rdx, [rbp - 0x50]
mov byte [rsp + 0x40], 0
mov rcx, r12
movsxd r9, dword [rax + 4]
add r9, r14
mov rax, qword [r9 + 0x48]
mov qword [rsp + 0x48], rax
mov rax, qword [sym.imp.WS2_32.dll_WSAGetLastError]
movaps xmm0, xmmword [rsp + 0x40]
mov qword [rsp + 0x28], rax
movzx eax, byte [r9 + 0x58]
mov byte [rsp + 0x20], al
movdqa xmmword [rbp - 0x60], xmm0
call qword [r10 + SafeArrayPutElement]
cmp byte [rbp - 0x50], 0
mov eax, 4
cmovne r15d, eax
xor esi, esi
mov rax, qword [r14]
movsxd rdx, dword [rax + 4]
add rdx, r14
mov eax, dword [rdx + 0x10]
or eax, r15d
mov ecx, eax
or ecx, 4
cmp qword [rdx + 0x48], 0
cmovne ecx, eax
mov eax, dword [rdx + 0x14]
and ecx, 0x17
mov dword [rdx + 0x10], ecx
and eax, ecx
jne 0x140089d93
lea rcx, [rsp + 0x50]
call fcn.1400086e0
lea rdx, [0x14020ab18]
mov rcx, r14
call fcn.1400025c0
test bl, 4
je 0x140089c2f
and ebx, 0xfffffffb
lea rcx, [rbp - 0x20]
call fcn.1400c6df0
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x140089ab4
jmp 0x140089d3f
mov qword [rbp + 0xf0], rsi
lea rax, [rbp + 0x2a0]
mov qword [rbp + 0xf8], 7
mov r8, 0xffffffffffffffff
mov word [rbp + 0xe0], si
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140089c70
lea rdx, [rbp + 0x2a0]
lea rcx, [rbp + 0xe0]
call fcn.1400258a0
mov rdx, qword [rbp + 0xf0]
mov r8, qword [r13 + 8]
test rdx, rdx
jne 0x140089cad
test r8, r8
je 0x140089cfd
mov rcx, r8
call sub.libcef.dll_cef_string_utf16_clear
jmp 0x140089cfd
test r8, r8
jne 0x140089cdb
lea ecx, [r8 + 0x18]
call fcn.140157490
mov qword [r13 + 8], rax
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rax], xmm0
mov qword [rax + 0x10], rcx
mov r8, qword [r13 + 8]
mov rdx, qword [rbp + 0xf0]
mov byte [r13 + 0x10], 1
cmp qword [rbp + 0xf8], 8
lea rcx, [rbp + 0xe0]
mov r9d, 1
cmovae rcx, qword [rbp + 0xe0]
call sub.libcef.dll_cef_string_utf16_set
mov rdx, qword [rbp + 0xf8]
cmp rdx, 8
jb 0x140089d3f
mov rcx, qword [rbp + 0xe0]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140089d3a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140089d87
call fcn.1401574cc
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_FreeAddrInfoW]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov r14, qword [rsp + 0x418]
mov al, 1
mov r12, qword [rsp + 0x460]
mov r15, qword [rsp + 0x410]
mov rcx, qword [rbp + 0x300]
xor rcx, rsp
call fcn.140157570
add rsp, 0x420
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14019598c
int3
call fcn.14019598c
int3
test al, 4
je 0x140089da0
lea rbx, str.ios_base::badbit_set
jmp 0x140089db4
test al, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rbp + 0xe0]
call fcn.140015b80
mov r8, rax
lea rcx, [rbp - 0x40]
mov rdx, rbx
call fcn.140006cc0
mov rcx, rax
call fcn.140012fe0
int3