Function at 0x18000c088
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
cmp rdx, r15
mov r13, rbp
mov qword [rsp + 0x48], rbp
mov r14d, r15d
mov rdi, r15
je 0x18000c0c2
mov esi, dword [rdx]
jmp 0x18000c0ce
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [rax + 1]
mov rbx, qword [0x180036af0]
lea rcx, [0x18003944a]
mov dword [rsp + 0x2a8], esi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov r12d, 0x57
cmp eax, esi
ja 0x18000c127
lea rax, [rsp + 0x2a8]
lea r8, [0x18003944a]
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.18000c954
mov esi, dword [rsp + 0x2a8]
jmp 0x18000c12a
mov eax, r12d
cmp eax, r15d
mov rbx, qword [rsp + 0x38]
jne 0x18000c13d
mov rbp, rbx
mov r14d, 1
mov r8d, dword [0x180035610]
lea rdx, [0x18002e734]
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rcx, [0x18003944f]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, esi
ja 0x18000c1a2
lea rax, [rsp + 0x2a8]
lea r9, [rsp + 0x70]
lea r8, [0x18003944f]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov edx, esi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.18000c954
mov esi, dword [rsp + 0x2a8]
mov rbx, qword [rsp + 0x38]
jmp 0x18000c1a5
mov eax, r12d
cmp eax, r15d
jne 0x18000c1ca
cmp rbp, r13
je 0x18000c1c1
mov rcx, qword [0x180036838]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbp, rbx
mov r14d, 1
mov r15, qword [0x180036c08]
lea rcx, [0x180039457]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, esi
ja 0x18000c21c
lea rax, [rsp + 0x2a8]
lea r8, [0x180039457]
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.18000c954
mov esi, dword [rsp + 0x2a8]
mov rbx, qword [rsp + 0x38]
mov r12d, eax
xor eax, eax
cmp r12d, eax
jne 0x18000c243
cmp rbp, r13
je 0x18000c23a
mov rcx, qword [0x180036838]
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, [0x180039461]
mov edx, esi
mov rcx, rbp
call fcn.180019044
xor ebx, ebx
cmp rax, rbx
mov r12, rax
je 0x18000c3b7
mov r13d, dword [rsp + 0x2a0]
mov rcx, qword [0x180036838]
xor edx, edx
mov r8, r13
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, rbx
mov rdi, rax
je 0x18000c53a
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.180004bdc
mov r15d, dword [rsp + 0x44]
mov rcx, qword [0x180036838]
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]
cmp rax, rbx
mov qword [rsp + 0x38], rax
je 0x18000c374
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 0x18000c32b
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 0x18000c360
mov rcx, qword [0x180036838]
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 0x18000c38d
mov r8, qword [rsp + 0x50]
mov rcx, qword [0x180036838]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r9, [rsp + 0x2a0]
lea r8, [0x180039461]
mov edx, esi
mov rcx, rbp
call fcn.180019044
cmp rax, rbx
mov r12, rax
jne 0x18000c26a
jmp 0x18000c53a
mov r13d, dword [rsp + 0x290]
jmp 0x18000c53a
cmp rdi, rbx
mov r12d, dword [rsp + 0x2a0]
je 0x18000c3f0
cmp r13d, r12d
jae 0x18000c3eb
mov rcx, qword [0x180036838]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, rbx
cmp rdi, rbx
jne 0x18000c411
mov rcx, qword [0x180036838]
mov r8, r12
xor edx, edx
mov r13d, r12d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, rbx
mov rdi, rax
je 0x18000c683
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 dx, 0x3b
mov rcx, rdi
mov byte [rbx + rdi], al
call qword [sym.imp.SHLWAPI.dll_StrChrA]
xor ebx, ebx
cmp rax, rbx
je 0x18000c50f
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 0x18000c50f
cmp dword [0x180036c5c], ebx
mov r14d, dword [rsp + 0x48]
je 0x18000c50f
lea rdx, [0x18003a203]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
cmp eax, ebx
je 0x18000c50f
lea rcx, [0x180036c30]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lock add dword [0x180036c58], 1
lea rcx, [0x180036c30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [0x180036c20]
lea r12, [0x180036c20]
jmp 0x18000c4d1
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 0x18000c4d8
cmp rbx, r12
jne 0x18000c4ba
jmp 0x18000c4f6
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 [0x180036c58], 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, [0x180039469]
mov edx, esi
mov rcx, rbp
call fcn.180019044
cmp rax, rbx
mov r15, rax
jne 0x18000c3c4
jmp 0x18000c683
cmp rdi, rbx
mov r12d, dword [rsp + 0x2a0]
je 0x18000c590
cmp r13d, r12d
jae 0x18000c58b
mov rcx, qword [0x180036838]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, rbx
cmp rdi, rbx
jne 0x18000c5b1
mov rcx, qword [0x180036838]
mov r8, r12
xor edx, edx
mov r13d, r12d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, rbx
mov rdi, rax
je 0x18000c77e
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 dx, 0x2c
mov rcx, rdi
mov byte [rbx + rdi], r14b
call qword [sym.imp.SHLWAPI.dll_StrChrA]
cmp rax, r14
mov rbx, rax
je 0x18000c65f
lea rdx, [0x18002e718]
mov rcx, rdi
mov byte [rax], r14b
call qword [sym.imp.SHLWAPI.dll_StrTrimA]
lea rdx, [0x18002e718]
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 0x18000c65f
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 0x18000c661
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.18000fa58
jmp 0x18000c661
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, [0x180039474]
mov edx, esi
mov rcx, rbp
call fcn.180019044
cmp rax, rbx
mov r15, rax
jne 0x18000c564
jmp 0x18000c77e
cmp rdi, rbx
mov r12d, dword [rsp + 0x2a0]
je 0x18000c6d9
cmp r13d, r12d
jae 0x18000c6d4
mov rcx, qword [0x180036838]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, rbx
cmp rdi, rbx
jne 0x18000c6fa
mov rcx, qword [0x180036838]
mov r8, r12
xor edx, edx
mov r13d, r12d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, rbx
mov rdi, rax
je 0x18000c84e
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 cx, 0x201
mov byte [rbx + rdi], al
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor ebx, ebx
cmp eax, ebx
jne 0x18000c740
lea r8d, [rbx + 1]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.180018350
jmp 0x18000c742
mov eax, ebx
cmp eax, ebx
je 0x18000c75c
xor r9d, r9d
lea rdx, [rsp + 0x60]
mov ecx, 0x127
lea r8d, [r9 + 0x10]
call fcn.18000fa58
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, [0x18003947e]
mov edx, esi
mov rcx, rbp
call fcn.180019044
cmp rax, rbx
mov r15, rax
jne 0x18000c6ad
jmp 0x18000c84e
cmp rdi, rbx
mov r12d, dword [rsp + 0x2a0]
je 0x18000c7d4
cmp r13d, r12d
jae 0x18000c7cf
mov rcx, qword [0x180036838]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, rbx
cmp rdi, rbx
jne 0x18000c7f5
mov rcx, qword [0x180036838]
mov r8, r12
xor edx, edx
mov r13d, r12d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, rbx
mov rdi, rax
je 0x18000c88a
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 0x18000c82c
lea r8d, [r12 - 5]
xor r9d, r9d
mov rdx, rdi
mov ecx, 0x126
call fcn.18000fa58
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, [0x180039488]
mov edx, esi
mov rcx, rbp
call fcn.180019044
cmp rax, rbx
mov r15, rax
jne 0x18000c7a8
cmp rdi, rbx
je 0x18000c88a
mov rcx, qword [0x180036838]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp r14d, ebx
je 0x18000c8a9
mov rax, qword [rsp + 0x290]
mov qword [rax], rbp
mov rax, qword [rsp + 0x298]
cmp rax, rbx
je 0x18000c8a9
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