Function at 0x180006518
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
mov r8d, dword [0x18005944c]
mov rbx, rcx
mov rdx, rcx
mov ecx, 0x52b3f2a3
call fcn.180019c58
test rax, rax
je 0x18000656a
lea r8, [rsp + 0x1d8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x180058798]
test eax, eax
cmovne ecx, dword [rsp + 0x1d8]
mov dword [0x180058798], ecx
mov r8d, dword [0x18005944c]
mov rdx, rbx
mov ecx, 0x9434ed15
call fcn.180019c58
test rax, rax
je 0x1800065ac
lea r8, [rsp + 0x1d8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x1800573dc]
test eax, eax
cmovne ecx, dword [rsp + 0x1d8]
mov dword [0x1800573dc], ecx
mov r8d, dword [0x18005944c]
mov rdx, rbx
mov ecx, 0x5b32dc67
call fcn.180019c58
test rax, rax
je 0x1800065ee
lea r8, [rsp + 0x1d8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x1800573fc]
test eax, eax
cmovne ecx, dword [rsp + 0x1d8]
mov dword [0x1800573fc], ecx
mov r8d, dword [0x18005944c]
mov rdx, rbx
mov ecx, 0x72b39509
call fcn.180019c58
test rax, rax
je 0x180006630
lea r8, [rsp + 0x1d8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x1800576ec]
test eax, eax
cmovne ecx, dword [rsp + 0x1d8]
mov dword [0x1800576ec], ecx
mov r8d, dword [0x18005944c]
mov rdx, rbx
mov ecx, 0xd6cc977a
call fcn.180019c58
test rax, rax
je 0x180006672
lea r8, [rsp + 0x1d8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x180058788]
test eax, eax
cmovne ecx, dword [rsp + 0x1d8]
mov dword [0x180058788], ecx
mov r8d, dword [0x18005944c]
mov rdx, rbx
mov ecx, 0x2e7cbff4
call fcn.180019c58
test rax, rax
je 0x1800066b4
lea r8, [rsp + 0x1d8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x180058790]
test eax, eax
cmovne ecx, dword [rsp + 0x1d8]
mov dword [0x180058790], ecx
mov r8d, dword [0x18005944c]
mov rdx, rbx
mov ecx, 0x26ff9756
call fcn.180019c58
test rax, rax
je 0x1800066f6
lea r8, [rsp + 0x1d8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x180058760]
test eax, eax
cmovne ecx, dword [rsp + 0x1d8]
mov dword [0x180058760], ecx
mov r8d, dword [0x18005944c]
mov rdx, rbx
mov ecx, 0x16fe0353
call fcn.180019c58
test rax, rax
je 0x180006738
lea r8, [rsp + 0x1d8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x1800573bc]
test eax, eax
cmovne ecx, dword [rsp + 0x1d8]
mov dword [0x1800573bc], ecx
mov r8d, dword [0x18005944c]
mov rdx, rbx
mov ecx, 0x1bdab7f9
call fcn.180019c58
test rax, rax
je 0x18000677a
lea r8, [rsp + 0x1d8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x180058794]
test eax, eax
cmovne ecx, dword [rsp + 0x1d8]
mov dword [0x180058794], ecx
cmp dword [0x1800593a4], 0x37688758
jne 0x18000692f
mov r8d, dword [0x18005944c]
mov rdx, rbx
mov ecx, 0xef6d125d
call fcn.180019c58
mov rdi, rax
mov qword [rsp + 0x1e0], rax
test rax, rax
je 0x1800067ef
lea r8, [rsp + 0x1d8]
lea rdx, [rsp + 0x1e8]
lea rcx, [0x18005d1bc]
call fcn.180004ea4
test eax, eax
je 0x1800067d8
mov rcx, rdi
call fcn.180003118
jmp 0x1800067ef
mov r8, qword [rsp + 0x1e8]
mov rcx, qword [0x180059270]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r8, [rsp + 0x1d8]
lea rdx, [rsp + 0x1e0]
lea rcx, [0x18005d1b7]
call fcn.180004ea4
test eax, eax
jne 0x180006851
mov edx, dword [rsp + 0x1d8]
mov rdi, qword [rsp + 0x1e0]
cmp edx, 1
jbe 0x18000683d
mov r8d, dword [0x1800593d0]
xor r9d, r9d
mov rcx, rdi
call fcn.180044b7c
mov rcx, rdi
call fcn.18001d038
mov rcx, qword [0x180059270]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180006872
mov r8d, dword [0x18005944c]
mov rdx, rbx
mov ecx, 0x23b8c2fa
call fcn.180019c58
test rax, rax
je 0x180006872
mov rcx, rax
call fcn.18001d038
mov r8d, dword [0x18005944c]
mov rdx, rbx
mov ecx, 0xef5374de
call fcn.180019c58
test rax, rax
je 0x1800068b4
lea r8, [rsp + 0x1d8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
mov ecx, dword [0x18005878c]
test eax, eax
cmovne ecx, dword [rsp + 0x1d8]
mov dword [0x18005878c], ecx
mov r8d, dword [0x18005944c]
mov rdx, rbx
mov ecx, 0xdc45d7ed
call fcn.180019c58
mov rdi, rax
test rax, rax
je 0x1800068f7
lea rdx, [rsp + 0x20]
mov ecx, 0x201
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1800068f7
lea r8d, [rax + 1]
lea rdx, [0x1800592a8]
mov rcx, rdi
call fcn.180019ca8
mov r8d, dword [0x18005944c]
mov rdx, rbx
mov ecx, 0xa90a49bc
call fcn.180019c58
test rax, rax
je 0x18000692f
xor edx, edx
mov rcx, rax
call fcn.18001a018
mov rcx, qword [0x180059330]
test rax, rax
cmovne rcx, rax
mov qword [0x180059330], rcx
mov r8d, dword [0x18005944c]
mov rdx, rbx
mov ecx, 0xc3c87e2
call fcn.180019c58
test rax, rax
je 0x1800069d9
mov edx, 0x10
mov rcx, rax
call fcn.18001a018
mov qword [rsp + 0x1e0], rax
test rax, rax
je 0x1800069d9
mov rcx, qword [0x180059bf0]
add rcx, 0x30
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x180006984
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r11, qword [0x180059bf0]
mov eax, dword [r11 + 0x58]
test eax, eax
jne 0x180006979
mov rcx, qword [0x180059bf0]
mov r8, qword [rcx]
test r8, r8
je 0x1800069c4
lea rax, [0x18005e15c]
cmp r8, rax
je 0x1800069c4
mov rcx, qword [0x180059270]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180059bf0]
mov rax, qword [rsp + 0x1e0]
mov qword [rcx], rax
add rcx, 0x30
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r8d, dword [0x18005944c]
mov rdx, rbx
mov ecx, 0x93f2b52a
call fcn.180019c58
test rax, rax
je 0x180006a14
xor edx, edx
mov rcx, rax
call fcn.18001a018
test rax, rax
je 0x180006a14
mov rcx, qword [0x180059bf0]
mov rdx, rax
add rcx, 8
call fcn.180005138
mov r8d, dword [0x18005944c]
mov rdx, rbx
mov ecx, 0xfb066a86
call fcn.180019c58
test rax, rax
je 0x180006a4f
xor edx, edx
mov rcx, rax
call fcn.18001a018
test rax, rax
je 0x180006a4f
mov rcx, qword [0x180059bf0]
mov rdx, rax
add rcx, 8
call fcn.180005138
mov r8d, dword [0x18005944c]
mov rdx, rbx
mov ecx, 0x3672fa80
call fcn.180019c58
test rax, rax
je 0x180006a8a
xor edx, edx
mov rcx, rax
call fcn.18001a018
test rax, rax
je 0x180006a8a
mov rcx, qword [0x180059bf0]
mov rdx, rax
add rcx, 0x12
call fcn.180005138
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret