Function at 0x18000bde0
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 0x18000be1a
mov esi, dword [rdx]
jmp 0x18000be26
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [rax + 1]
mov rbx, qword [0x180030a98]
lea rcx, [0x18003342b]
mov dword [rsp + 0x2a8], esi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov r12d, 0x57
cmp eax, esi
ja 0x18000be7f
lea rax, [rsp + 0x2a8]
lea r8, [0x18003342b]
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.18000c6ac
mov esi, dword [rsp + 0x2a8]
jmp 0x18000be82
mov eax, r12d
cmp eax, r15d
mov rbx, qword [rsp + 0x38]
jne 0x18000be95
mov rbp, rbx
mov r14d, 1
mov r8d, dword [0x18002f5b0]
lea rdx, [0x18002a734]
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rcx, [0x180033430]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, esi
ja 0x18000befa
lea rax, [rsp + 0x2a8]
lea r9, [rsp + 0x70]
lea r8, [0x180033430]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov edx, esi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.18000c6ac
mov esi, dword [rsp + 0x2a8]
mov rbx, qword [rsp + 0x38]
jmp 0x18000befd
mov eax, r12d
cmp eax, r15d
jne 0x18000bf22
cmp rbp, r13
je 0x18000bf19
mov rcx, qword [0x1800307d8]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbp, rbx
mov r14d, 1
mov r15, qword [0x180030bc8]
lea rcx, [0x180033438]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, esi
ja 0x18000bf74
lea rax, [rsp + 0x2a8]
lea r8, [0x180033438]
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.18000c6ac
mov esi, dword [rsp + 0x2a8]
mov rbx, qword [rsp + 0x38]
mov r12d, eax
xor eax, eax
cmp r12d, eax
jne 0x18000bf9b
cmp rbp, r13
je 0x18000bf92
mov rcx, qword [0x1800307d8]
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, [0x180033442]
mov edx, esi
mov rcx, rbp
call fcn.180018c5c
xor ebx, ebx
cmp rax, rbx
mov r12, rax
je 0x18000c10f
mov r13d, dword [rsp + 0x2a0]
mov rcx, qword [0x1800307d8]
xor edx, edx
mov r8, r13
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, rbx
mov rdi, rax
je 0x18000c292
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.1800049fc
mov r15d, dword [rsp + 0x44]
mov rcx, qword [0x1800307d8]
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 0x18000c0cc
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 0x18000c083
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 0x18000c0b8
mov rcx, qword [0x1800307d8]
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 0x18000c0e5
mov r8, qword [rsp + 0x50]
mov rcx, qword [0x1800307d8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r9, [rsp + 0x2a0]
lea r8, [0x180033442]
mov edx, esi
mov rcx, rbp
call fcn.180018c5c
cmp rax, rbx
mov r12, rax
jne 0x18000bfc2
jmp 0x18000c292
mov r13d, dword [rsp + 0x290]
jmp 0x18000c292
cmp rdi, rbx
mov r12d, dword [rsp + 0x2a0]
je 0x18000c148
cmp r13d, r12d
jae 0x18000c143
mov rcx, qword [0x1800307d8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, rbx
cmp rdi, rbx
jne 0x18000c169
mov rcx, qword [0x1800307d8]
mov r8, r12
xor edx, edx
mov r13d, r12d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, rbx
mov rdi, rax
je 0x18000c3db
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 0x18000c267
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 0x18000c267
cmp dword [0x180030c1c], ebx
mov r14d, dword [rsp + 0x48]
je 0x18000c267
lea rdx, [0x1800341e4]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
cmp eax, ebx
je 0x18000c267
lea rcx, [0x180030bf0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lock add dword [0x180030c18], 1
lea rcx, [0x180030bf0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [0x180030be0]
lea r12, [0x180030be0]
jmp 0x18000c229
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 0x18000c230
cmp rbx, r12
jne 0x18000c212
jmp 0x18000c24e
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 [0x180030c18], 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, [0x18003344a]
mov edx, esi
mov rcx, rbp
call fcn.180018c5c
cmp rax, rbx
mov r15, rax
jne 0x18000c11c
jmp 0x18000c3db
cmp rdi, rbx
mov r12d, dword [rsp + 0x2a0]
je 0x18000c2e8
cmp r13d, r12d
jae 0x18000c2e3
mov rcx, qword [0x1800307d8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, rbx
cmp rdi, rbx
jne 0x18000c309
mov rcx, qword [0x1800307d8]
mov r8, r12
xor edx, edx
mov r13d, r12d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, rbx
mov rdi, rax
je 0x18000c4d6
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 0x18000c3b7
lea rdx, [0x18002a718]
mov rcx, rdi
mov byte [rax], r14b
call qword [sym.imp.SHLWAPI.dll_StrTrimA]
lea rdx, [0x18002a718]
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 0x18000c3b7
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 0x18000c3b9
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.18000f594
jmp 0x18000c3b9
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, [0x180033455]
mov edx, esi
mov rcx, rbp
call fcn.180018c5c
cmp rax, rbx
mov r15, rax
jne 0x18000c2bc
jmp 0x18000c4d6
cmp rdi, rbx
mov r12d, dword [rsp + 0x2a0]
je 0x18000c431
cmp r13d, r12d
jae 0x18000c42c
mov rcx, qword [0x1800307d8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, rbx
cmp rdi, rbx
jne 0x18000c452
mov rcx, qword [0x1800307d8]
mov r8, r12
xor edx, edx
mov r13d, r12d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, rbx
mov rdi, rax
je 0x18000c5a6
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 0x18000c498
lea r8d, [rbx + 1]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.180017f68
jmp 0x18000c49a
mov eax, ebx
cmp eax, ebx
je 0x18000c4b4
xor r9d, r9d
lea rdx, [rsp + 0x60]
mov ecx, 0x127
lea r8d, [r9 + 0x10]
call fcn.18000f594
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, [0x18003345f]
mov edx, esi
mov rcx, rbp
call fcn.180018c5c
cmp rax, rbx
mov r15, rax
jne 0x18000c405
jmp 0x18000c5a6
cmp rdi, rbx
mov r12d, dword [rsp + 0x2a0]
je 0x18000c52c
cmp r13d, r12d
jae 0x18000c527
mov rcx, qword [0x1800307d8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, rbx
cmp rdi, rbx
jne 0x18000c54d
mov rcx, qword [0x1800307d8]
mov r8, r12
xor edx, edx
mov r13d, r12d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, rbx
mov rdi, rax
je 0x18000c5e2
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 0x18000c584
lea r8d, [r12 - 5]
xor r9d, r9d
mov rdx, rdi
mov ecx, 0x126
call fcn.18000f594
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, [0x180033469]
mov edx, esi
mov rcx, rbp
call fcn.180018c5c
cmp rax, rbx
mov r15, rax
jne 0x18000c500
cmp rdi, rbx
je 0x18000c5e2
mov rcx, qword [0x1800307d8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp r14d, ebx
je 0x18000c601
mov rax, qword [rsp + 0x290]
mov qword [rax], rbp
mov rax, qword [rsp + 0x298]
cmp rax, rbx
je 0x18000c601
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