Function at 0x18005d040
Capabilities:
Initialize winsock library

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x778]
sub rsp, 0x850
mov rax, qword [0x1800b7160]
xor rax, rsp
mov qword [rbp + 0x740], rax
mov r12d, dword [rcx + 8]
xor r14d, r14d
mov r13d, r14d
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r14
mov r15d, r14d
mov rdi, rcx
mov dword [rsp + 0x34], r12d
test byte [0x1800b78f1], 8
je 0x18005d0b2
lea ecx, [r14 + 0x1e]
mov r8, rdi
lea rdx, [0x1800a2fa8]
call fcn.1800879b4
mov rax, qword [section..data]
test dword [rax + 0x1c], 0x800
je 0x18005d0d1
mov rdx, rdi
lea rcx, str.Entering_Update_Private
call fcn.18007225c
mov ecx, 0x202
lea rdx, [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSAStartup]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x18005d333
lea r15d, [rax + 1]
mov rax, qword [rdi]
test rax, rax
jne 0x18005d105
lea ebx, [rax + 0x57]
jmp 0x18005d333
mov rsi, qword [rdi + 0x48]
mov rbx, qword [rax + 8]
mov r14, rsi
test rsi, rsi
jne 0x18005d137
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x18005d12e
call fcn.18002a6c8
mov r13, rax
mov qword [rsp + 0x48], rax
mov rsi, rax
test rsi, rsi
je 0x18005d1c7
mov edx, dword [rdi + 8]
lea rcx, [rsp + 0x50]
mov r9, rsi
mov r8, rbx
call fcn.180050848
mov ebx, eax
test eax, eax
jne 0x18005d330
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx + 0x10]
mov qword [rdi + 0x30], rcx
mov rcx, rdi
mov qword [rdi + 0x38], rax
bt r12d, 0xc
jb 0x18005d18e
call fcn.18005c8b4
mov ebx, eax
cmp eax, 0x5b4
je 0x18005d18b
bt r12d, 0xe
jb 0x18005d18b
cmp eax, 0x232a
jne 0x18005d199
mov rcx, rdi
mov qword [rdi + 0x48], rsi
call fcn.18005ca20
mov ebx, eax
mov rcx, qword [rsp + 0x50]
call sym.DNSAPI.dll_NetInfo_Free
and qword [rdi + 0x30], 0
lea rcx, [rdi + 0x58]
mov qword [rdi + 0x48], r14
xor edx, edx
xor r14d, r14d
mov qword [rdi + 0x38], r14
lea r8d, [r14 + 0x40]
call sub.api_ms_win_core_crt_l1_1_0.dll_memset
jmp 0x18005d333
mov r8d, dword [rdi + 8]
lea rcx, [rbp + 0x100]
xor r14d, r14d
lea edx, [r14 + 0x64]
call fcn.180050160
mov dword [rsp + 0x30], eax
cmp eax, 0x64
jbe 0x18005d20f
lea ebx, [r14 + 0x57]
test byte [0x1800b78f1], 4
je 0x18005d333
lea ecx, [rbx - 0x38]
mov r8d, eax
lea rdx, [0x1800a2fa8]
call fcn.1800876bc
jmp 0x18005d333
mov edx, dword [rdi + 8]
lea r9, [rsp + 0x30]
lea r8, [rbp + 0x420]
mov qword [rsp + 0x20], rbx
lea rcx, [rbp + 0x100]
call fcn.18004f9e8
mov esi, dword [rsp + 0x30]
mov ebx, eax
test esi, esi
jne 0x18005d24b
test eax, eax
jne 0x18005d333
mov ebx, 0x267c
jmp 0x18005d333
mov qword [rsp + 0x40], rsi
mov r12, r14
mov esi, dword [rsp + 0x34]
mov r13d, r14d
mov rdx, qword [rbp + r12 + 0x420]
mov r14, qword [rbp + r12 + 0x100]
mov qword [rsp + 0x50], rdx
test rdx, rdx
jne 0x18005d284
mov rcx, r14
call sym.DNSAPI.dll_DnsApiFree
xor r14d, r14d
jmp 0x18005d30a
mov rax, qword [rdx + 0x10]
mov rcx, rdi
mov qword [rdi + 0x38], rax
mov qword [rdi + 0x30], rdx
bt esi, 0xc
jb 0x18005d2b7
call fcn.18005c8b4
mov ebx, eax
cmp eax, 0x5b4
je 0x18005d2b4
bt esi, 0xe
jb 0x18005d2b4
cmp eax, 0x232a
jne 0x18005d2c2
mov rcx, rdi
mov qword [rdi + 0x48], r14
call fcn.18005ca20
mov ebx, eax
mov rcx, qword [rsp + 0x50]
call sym.DNSAPI.dll_NetInfo_Free
mov rcx, r14
call sym.DNSAPI.dll_DnsApiFree
xor r14d, r14d
lea rcx, [rdi + 0x58]
xor edx, edx
mov qword [rdi + 0x30], r14
mov qword [rdi + 0x48], r14
mov qword [rdi + 0x38], r14
lea r8d, [r14 + 0x40]
call sub.api_ms_win_core_crt_l1_1_0.dll_memset
test ebx, ebx
je 0x18005d307
cmp dword [rdi + 0xc], r14d
je 0x18005d30a
lea eax, [rbx - 0x232e]
cmp eax, 2
ja 0x18005d30a
mov r13d, r15d
add r12, 8
sub qword [rsp + 0x40], r15
jne 0x18005d25a
mov esi, dword [rsp + 0x30]
test r13d, r13d
mov r13, qword [rsp + 0x48]
je 0x18005d333
cmp esi, r15d
cmovne ebx, r14d
jmp 0x18005d333
xor r14d, r14d
cmp dword [rdi + 0x14], r14d
jne 0x18005d349
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
mov rcx, rdi
call fcn.18005d40c
test r13, r13
je 0x18005d356
mov rcx, r13
call sym.DNSAPI.dll_DnsApiFree
test r15d, r15d
je 0x18005d367
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop dword [rax + rax]
test byte [0x1800b78f1], 4
je 0x18005d384
mov ecx, 0x20
lea rdx, [0x1800a2fa8]
mov r8d, ebx
call fcn.1800876bc
mov rax, qword [section..data]
test dword [rax + 0x1c], 0x800
je 0x18005d3a3
mov rdx, rdi
lea rcx, str.Leaving_Update_Private
call fcn.18007225c
mov eax, ebx
mov rcx, qword [rbp + 0x740]
xor rcx, rsp
call fcn.18002d5c0
lea r11, [rsp + 0x850]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret