Function at 0x18000b8d8
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x238
mov rbp, qword [rcx]
xor r15d, r15d
mov r14, rbp
mov qword [rsp + 0x40], rbp
mov r13d, r15d
mov rdi, r15
cmp rdx, r15
je 0x18000b912
mov esi, dword [rdx]
jmp 0x18000b91e
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [rax + 1]
mov rbx, qword [0x180037d58]
lea rcx, [0x18003b367]
mov dword [rsp + 0x298], esi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov r12d, 0x57
cmp eax, esi
ja 0x18000b977
lea rax, [rsp + 0x298]
lea r8, [0x18003b367]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov edx, esi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.18000c2f0
mov esi, dword [rsp + 0x298]
jmp 0x18000b97a
mov eax, r12d
mov rbx, qword [rsp + 0x30]
cmp eax, r15d
jne 0x18000b98d
mov rbp, rbx
mov r13d, 1
mov r8d, dword [0x180036630]
lea rdx, [0x18002f744]
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rcx, [0x18003b36c]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, esi
ja 0x18000b9f2
lea rax, [rsp + 0x298]
lea r9, [rsp + 0x60]
lea r8, [0x18003b36c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov edx, esi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.18000c2f0
mov esi, dword [rsp + 0x298]
mov rbx, qword [rsp + 0x30]
jmp 0x18000b9f5
mov eax, r12d
cmp eax, r15d
jne 0x18000ba1a
cmp rbp, r14
je 0x18000ba11
mov rcx, qword [0x180037ae8]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbp, rbx
mov r13d, 1
mov r15, qword [0x180037fe8]
lea rcx, [0x18003b374]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, esi
ja 0x18000ba6c
lea rax, [rsp + 0x298]
lea r8, [0x18003b374]
mov r9, r15
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov edx, esi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.18000c2f0
mov esi, dword [rsp + 0x298]
mov rbx, qword [rsp + 0x30]
mov r12d, eax
xor eax, eax
cmp r12d, eax
jne 0x18000ba93
cmp rbp, r14
je 0x18000ba8a
mov rcx, qword [0x180037ae8]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbp, rbx
mov r13d, 1
lea r9, [rsp + 0x290]
lea r8, [0x18003b37e]
mov edx, esi
mov rcx, rbp
call fcn.18001849c
xor ebx, ebx
mov r12, rax
cmp rax, rbx
je 0x18000bc07
mov r14d, dword [rsp + 0x290]
mov rcx, qword [0x180037ae8]
xor edx, edx
mov r8, r14
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
cmp rax, rbx
je 0x18000bd89
lea eax, [r14 - 6]
lea rdx, [r12 + 5]
mov rcx, rdi
mov r8d, eax
mov ebx, eax
call sub.ntdll.dll_memcpy
xor eax, eax
lea r8, [rsp + 0x3c]
lea rdx, [rsp + 0x48]
xor r9d, r9d
mov rcx, rdi
mov byte [rbx + rdi], al
call fcn.180004a80
mov r15d, dword [rsp + 0x3c]
mov rcx, qword [0x180037ae8]
xor ebx, ebx
cmp eax, ebx
cmovne r15d, ebx
xor edx, edx
mov eax, r15d
mov dword [rsp + 0x3c], r15d
sub eax, r14d
add eax, esi
mov r8d, eax
mov dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x30], rax
cmp rax, rbx
je 0x18000bbc4
mov ebx, r12d
mov rdx, rbp
mov rcx, rax
sub ebx, ebp
mov r8d, ebx
call sub.ntdll.dll_memcpy
mov r13, qword [rsp + 0x30]
xor eax, eax
cmp r15d, eax
je 0x18000bb7b
mov rdx, qword [rsp + 0x48]
mov ecx, ebx
mov r8d, r15d
add rcx, r13
call sub.ntdll.dll_memcpy
mov eax, ebx
sub esi, ebx
mov ecx, r15d
add rcx, rax
sub esi, r14d
lea rdx, [r12 + r14]
mov r8d, esi
add rcx, r13
call sub.ntdll.dll_memcpy
cmp rbp, qword [rsp + 0x40]
je 0x18000bbb0
mov rcx, qword [0x180037ae8]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [rsp + 0x38]
xor ebx, ebx
mov rbp, r13
mov dword [rsp + 0x298], esi
lea r13d, [rbx + 1]
cmp r15d, ebx
je 0x18000bbdd
mov r8, qword [rsp + 0x48]
mov rcx, qword [0x180037ae8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r9, [rsp + 0x290]
lea r8, [0x18003b37e]
mov edx, esi
mov rcx, rbp
call fcn.18001849c
mov r12, rax
cmp rax, rbx
jne 0x18000baba
jmp 0x18000bd89
mov r14d, dword [rsp + 0x280]
jmp 0x18000bd89
mov r12d, dword [rsp + 0x290]
cmp rdi, rbx
je 0x18000bc40
cmp r14d, r12d
jae 0x18000bc3b
mov rcx, qword [0x180037ae8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, rbx
cmp rdi, rbx
jne 0x18000bc61
mov rcx, qword [0x180037ae8]
mov r8, r12
xor edx, edx
mov r14d, r12d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
cmp rax, rbx
je 0x18000be81
lea eax, [r12 - 9]
lea rdx, [r15 + 8]
mov rcx, rdi
mov r8d, eax
mov ebx, eax
call sub.ntdll.dll_memcpy
xor eax, eax
mov rcx, rdi
lea edx, [rax + 0x3b]
mov byte [rbx + rdi], al
call qword [sym.imp.SHLWAPI.dll_StrChrA]
xor ebx, ebx
cmp rax, rbx
je 0x18000bd5e
lea rcx, [rax + 1]
lea r8, [rsp + 0x38]
xor edx, edx
mov byte [rax], bl
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
cmp eax, ebx
je 0x18000bd5e
mov r13d, dword [rsp + 0x38]
cmp dword [0x18003803c], ebx
je 0x18000bd5e
lea rdx, [0x18003c0d1]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
cmp eax, ebx
je 0x18000bd5e
lea rcx, [0x180038010]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lock add dword [0x180038038], 1
lea rcx, [0x180038010]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [0x180038000]
lea r12, [0x180038000]
jmp 0x18000bd20
mov rsi, rbx
mov rbx, qword [rbx]
mov rdx, rdi
lea rcx, [rsi + 0x2c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x18000bd27
cmp rbx, r12
jne 0x18000bd09
jmp 0x18000bd45
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov r11, r13
imul r11, r11, 0x2710
add r11, qword [rsp + 0x40]
mov qword [rsi + 0x10], r11
lock add dword [0x180038038], 0xffffffff
mov esi, dword [rsp + 0x298]
mov r12d, dword [rsp + 0x290]
xor ebx, ebx
mov r8d, ebp
mov edx, r12d
mov rcx, r15
sub r8d, r15d
add rdx, r15
sub r8d, r12d
add r8d, esi
call qword [sym.imp.ntdll.dll_memmove]
sub esi, r12d
mov r13d, 1
mov dword [rsp + 0x298], esi
lea r9, [rsp + 0x290]
lea r8, [0x18003b386]
mov edx, esi
mov rcx, rbp
call fcn.18001849c
mov r15, rax
cmp rax, rbx
jne 0x18000bc14
jmp 0x18000be81
mov r12d, dword [rsp + 0x290]
cmp rdi, rbx
je 0x18000bddf
cmp r14d, r12d
jae 0x18000bdda
mov rcx, qword [0x180037ae8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, rbx
cmp rdi, rbx
jne 0x18000be00
mov rcx, qword [0x180037ae8]
mov r8, r12
xor edx, edx
mov r14d, r12d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
cmp rax, rbx
je 0x18000bf51
lea eax, [r12 - 8]
lea rdx, [r15 + 7]
mov rcx, rdi
mov r8d, eax
mov ebx, eax
call sub.ntdll.dll_memcpy
xor eax, eax
lea rdx, [rsp + 0x90]
mov ecx, 0x201
mov byte [rbx + rdi], al
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor ebx, ebx
cmp eax, ebx
jne 0x18000be43
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.180017a84
jmp 0x18000be45
mov eax, ebx
cmp eax, ebx
je 0x18000be5f
xor r9d, r9d
lea rdx, [rsp + 0x50]
mov ecx, 0x127
lea r8d, [r9 + 0x10]
call fcn.18000f3c8
mov r8d, ebp
lea rdx, [r15 + r12]
mov rcx, r15
sub r8d, r15d
sub r8d, r12d
add r8d, esi
call qword [sym.imp.ntdll.dll_memmove]
sub esi, r12d
mov r13d, 1
lea r9, [rsp + 0x290]
lea r8, [0x18003b39b]
mov edx, esi
mov rcx, rbp
call fcn.18001849c
mov r15, rax
cmp rax, rbx
jne 0x18000bdb3
jmp 0x18000bf51
mov r12d, dword [rsp + 0x290]
cmp rdi, rbx
je 0x18000bed7
cmp r14d, r12d
jae 0x18000bed2
mov rcx, qword [0x180037ae8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, rbx
cmp rdi, rbx
jne 0x18000bef8
mov rcx, qword [0x180037ae8]
mov r8, r12
xor edx, edx
mov r14d, r12d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
cmp rax, rbx
je 0x18000bf8d
lea eax, [r12 - 6]
lea rdx, [r15 + 5]
mov rcx, rdi
mov r8d, eax
mov ebx, eax
call sub.ntdll.dll_memcpy
xor eax, eax
mov byte [rbx + rdi], al
xor ebx, ebx
cmp rdi, rbx
je 0x18000bf2f
lea r8d, [r12 - 5]
xor r9d, r9d
mov rdx, rdi
mov ecx, 0x126
call fcn.18000f3c8
mov r8d, ebp
lea rdx, [r15 + r12]
mov rcx, r15
sub r8d, r15d
sub r8d, r12d
add r8d, esi
call qword [sym.imp.ntdll.dll_memmove]
sub esi, r12d
mov r13d, 1
lea r9, [rsp + 0x290]
lea r8, [0x18003b3a5]
mov edx, esi
mov rcx, rbp
call fcn.18001849c
mov r15, rax
cmp rax, rbx
jne 0x18000beab
cmp rdi, rbx
je 0x18000bf8d
mov rcx, qword [0x180037ae8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp r13d, ebx
je 0x18000bfac
mov rax, qword [rsp + 0x280]
mov qword [rax], rbp
mov rax, qword [rsp + 0x288]
cmp rax, rbx
je 0x18000bfac
mov dword [rax], esi
mov eax, r13d
add rsp, 0x238
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret