Function at 0x18000c1f4
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, 0x248
mov rbp, qword [rcx]
xor r15d, r15d
mov r13, rbp
mov qword [rsp + 0x48], rbp
mov r14d, r15d
mov rdi, r15
cmp rdx, r15
je 0x18000c22e
mov esi, dword [rdx]
jmp 0x18000c23a
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [rax + 1]
mov rbx, qword [0x180039dd0]
lea rcx, [0x18003d3fa]
mov dword [rsp + 0x2a8], esi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov r12d, 0x57
cmp eax, esi
ja 0x18000c293
lea rax, [rsp + 0x2a8]
lea r8, [0x18003d3fa]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov edx, esi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.18000cac0
mov esi, dword [rsp + 0x2a8]
jmp 0x18000c296
mov eax, r12d
mov rbx, qword [rsp + 0x38]
cmp eax, r15d
jne 0x18000c2a9
mov rbp, rbx
mov r14d, 1
mov r8d, dword [0x180038640]
lea rdx, [0x180031774]
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rcx, [0x18003d3ff]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, esi
ja 0x18000c30e
lea rax, [rsp + 0x2a8]
lea r9, [rsp + 0x70]
lea r8, [0x18003d3ff]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov edx, esi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.18000cac0
mov esi, dword [rsp + 0x2a8]
mov rbx, qword [rsp + 0x38]
jmp 0x18000c311
mov eax, r12d
cmp eax, r15d
jne 0x18000c336
cmp rbp, r13
je 0x18000c32d
mov rcx, qword [0x180039b48]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbp, rbx
mov r14d, 1
mov r15, qword [0x18003a068]
lea rcx, [0x18003d407]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, esi
ja 0x18000c388
lea rax, [rsp + 0x2a8]
lea r8, [0x18003d407]
mov r9, r15
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov edx, esi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.18000cac0
mov esi, dword [rsp + 0x2a8]
mov rbx, qword [rsp + 0x38]
mov r12d, eax
xor eax, eax
cmp r12d, eax
jne 0x18000c3af
cmp rbp, r13
je 0x18000c3a6
mov rcx, qword [0x180039b48]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbp, rbx
mov r14d, 1
lea r9, [rsp + 0x2a0]
lea r8, [0x18003d411]
mov edx, esi
mov rcx, rbp
call fcn.180019b4c
xor ebx, ebx
mov r12, rax
cmp rax, rbx
je 0x18000c523
mov r13d, dword [rsp + 0x2a0]
mov rcx, qword [0x180039b48]
xor edx, edx
mov r8, r13
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
cmp rax, rbx
je 0x18000c6a5
lea eax, [r13 - 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 + 0x44]
lea rdx, [rsp + 0x50]
xor r9d, r9d
mov rcx, rdi
mov byte [rbx + rdi], al
call fcn.180004c74
mov r15d, dword [rsp + 0x44]
mov rcx, qword [0x180039b48]
xor ebx, ebx
cmp eax, ebx
cmovne r15d, ebx
xor edx, edx
mov eax, r15d
mov dword [rsp + 0x44], r15d
sub eax, r13d
add eax, esi
mov r8d, eax
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x38], rax
cmp rax, rbx
je 0x18000c4e0
mov ebx, r12d
mov rdx, rbp
mov rcx, rax
sub ebx, ebp
mov r8d, ebx
call sub.ntdll.dll_memcpy
mov r14, qword [rsp + 0x38]
xor eax, eax
cmp r15d, eax
je 0x18000c497
mov rdx, qword [rsp + 0x50]
mov ecx, ebx
mov r8d, r15d
add rcx, r14
call sub.ntdll.dll_memcpy
mov eax, ebx
sub esi, ebx
mov ecx, r15d
add rcx, rax
sub esi, r13d
lea rdx, [r12 + r13]
mov r8d, esi
add rcx, r14
call sub.ntdll.dll_memcpy
cmp rbp, qword [rsp + 0x48]
je 0x18000c4cc
mov rcx, qword [0x180039b48]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [rsp + 0x30]
xor ebx, ebx
mov rbp, r14
mov dword [rsp + 0x2a8], esi
lea r14d, [rbx + 1]
cmp r15d, ebx
je 0x18000c4f9
mov r8, qword [rsp + 0x50]
mov rcx, qword [0x180039b48]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r9, [rsp + 0x2a0]
lea r8, [0x18003d411]
mov edx, esi
mov rcx, rbp
call fcn.180019b4c
mov r12, rax
cmp rax, rbx
jne 0x18000c3d6
jmp 0x18000c6a5
mov r13d, dword [rsp + 0x290]
jmp 0x18000c6a5
mov r12d, dword [rsp + 0x2a0]
cmp rdi, rbx
je 0x18000c55c
cmp r13d, r12d
jae 0x18000c557
mov rcx, qword [0x180039b48]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, rbx
cmp rdi, rbx
jne 0x18000c57d
mov rcx, qword [0x180039b48]
mov r8, r12
xor edx, edx
mov r13d, r12d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
cmp rax, rbx
je 0x18000c7ee
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 0x18000c67a
lea rcx, [rax + 1]
lea r8, [rsp + 0x48]
xor edx, edx
mov byte [rax], bl
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
cmp eax, ebx
je 0x18000c67a
mov r14d, dword [rsp + 0x48]
cmp dword [0x18003a0bc], ebx
je 0x18000c67a
lea rdx, [0x18003e164]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
cmp eax, ebx
je 0x18000c67a
lea rcx, [0x18003a090]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lock add dword [0x18003a0b8], 1
lea rcx, [0x18003a090]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [0x18003a080]
lea r12, [0x18003a080]
jmp 0x18000c63c
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 0x18000c643
cmp rbx, r12
jne 0x18000c625
jmp 0x18000c661
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov r11, r14
imul r11, r11, 0x2710
add r11, qword [rsp + 0x58]
mov qword [rsi + 0x10], r11
lock add dword [0x18003a0b8], 0xffffffff
mov esi, dword [rsp + 0x2a8]
mov r12d, dword [rsp + 0x2a0]
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 r14d, 1
mov dword [rsp + 0x2a8], esi
lea r9, [rsp + 0x2a0]
lea r8, [0x18003d419]
mov edx, esi
mov rcx, rbp
call fcn.180019b4c
mov r15, rax
cmp rax, rbx
jne 0x18000c530
jmp 0x18000c7ee
mov r12d, dword [rsp + 0x2a0]
cmp rdi, rbx
je 0x18000c6fb
cmp r13d, r12d
jae 0x18000c6f6
mov rcx, qword [0x180039b48]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, rbx
cmp rdi, rbx
jne 0x18000c71c
mov rcx, qword [0x180039b48]
mov r8, r12
xor edx, edx
mov r13d, r12d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
cmp rax, rbx
je 0x18000c8ea
lea eax, [r12 - 8]
lea rdx, [r15 + 7]
mov rcx, rdi
mov r8d, eax
mov ebx, eax
call sub.ntdll.dll_memcpy
xor r14d, r14d
mov rcx, rdi
lea edx, [r14 + 0x2c]
mov byte [rbx + rdi], r14b
call qword [sym.imp.SHLWAPI.dll_StrChrA]
mov rbx, rax
cmp rax, r14
je 0x18000c7ca
lea rdx, [0x180031758]
mov rcx, rdi
mov byte [rax], r14b
call qword [sym.imp.SHLWAPI.dll_StrTrimA]
lea rdx, [0x180031758]
lea rcx, [rbx + 1]
call qword [sym.imp.SHLWAPI.dll_StrTrimA]
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
cmp eax, r14d
je 0x18000c7ca
movzx eax, word [rsp + 0x40]
lea r8, [rsp + 0x40]
lea rcx, [rbx + 1]
xor edx, edx
mov word [rsp + 0x32], ax
call qword [sym.imp.SHLWAPI.dll_StrToIntExA]
xor ebx, ebx
cmp eax, ebx
je 0x18000c7cc
movzx eax, word [rsp + 0x40]
lea r8d, [r14 + 4]
lea rdx, [rsp + 0x30]
xor r9d, r9d
mov ecx, 0x125
mov word [rsp + 0x30], ax
call fcn.18000fc1c
jmp 0x18000c7cc
xor ebx, ebx
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 r14d, 1
lea r9, [rsp + 0x2a0]
lea r8, [0x18003d424]
mov edx, esi
mov rcx, rbp
call fcn.180019b4c
mov r15, rax
cmp rax, rbx
jne 0x18000c6cf
jmp 0x18000c8ea
mov r12d, dword [rsp + 0x2a0]
cmp rdi, rbx
je 0x18000c844
cmp r13d, r12d
jae 0x18000c83f
mov rcx, qword [0x180039b48]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, rbx
cmp rdi, rbx
jne 0x18000c865
mov rcx, qword [0x180039b48]
mov r8, r12
xor edx, edx
mov r13d, r12d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
cmp rax, rbx
je 0x18000c9ba
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 + 0xa0]
mov ecx, 0x201
mov byte [rbx + rdi], al
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor ebx, ebx
cmp eax, ebx
jne 0x18000c8ac
lea r8d, [rbx + 1]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.180018ca4
jmp 0x18000c8ae
mov eax, ebx
cmp eax, ebx
je 0x18000c8c8
xor r9d, r9d
lea rdx, [rsp + 0x60]
mov ecx, 0x127
lea r8d, [r9 + 0x10]
call fcn.18000fc1c
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 r14d, 1
lea r9, [rsp + 0x2a0]
lea r8, [0x18003d42e]
mov edx, esi
mov rcx, rbp
call fcn.180019b4c
mov r15, rax
cmp rax, rbx
jne 0x18000c818
jmp 0x18000c9ba
mov r12d, dword [rsp + 0x2a0]
cmp rdi, rbx
je 0x18000c940
cmp r13d, r12d
jae 0x18000c93b
mov rcx, qword [0x180039b48]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, rbx
cmp rdi, rbx
jne 0x18000c961
mov rcx, qword [0x180039b48]
mov r8, r12
xor edx, edx
mov r13d, r12d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
cmp rax, rbx
je 0x18000c9f6
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 0x18000c998
lea r8d, [r12 - 5]
xor r9d, r9d
mov rdx, rdi
mov ecx, 0x126
call fcn.18000fc1c
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 r14d, 1
lea r9, [rsp + 0x2a0]
lea r8, [0x18003d438]
mov edx, esi
mov rcx, rbp
call fcn.180019b4c
mov r15, rax
cmp rax, rbx
jne 0x18000c914
cmp rdi, rbx
je 0x18000c9f6
mov rcx, qword [0x180039b48]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp r14d, ebx
je 0x18000ca15
mov rax, qword [rsp + 0x290]
mov qword [rax], rbp
mov rax, qword [rsp + 0x298]
cmp rax, rbx
je 0x18000ca15
mov dword [rax], esi
mov eax, r14d
add rsp, 0x248
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret