Function at 0x180003088
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 0x1800030c2
mov esi, dword [rdx]
jmp 0x1800030ce
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [rax + 1]
mov rbx, qword [0x180033e38]
lea rcx, [0x180036476]
mov dword [rsp + 0x2a8], esi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov r12d, 0x57
cmp eax, esi
ja 0x180003127
lea rax, [rsp + 0x2a8]
lea r8, [0x180036476]
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.180023d08
mov esi, dword [rsp + 0x2a8]
jmp 0x18000312a
mov eax, r12d
cmp eax, r15d
mov rbx, qword [rsp + 0x38]
jne 0x18000313d
mov rbp, rbx
mov r14d, 1
mov r8d, dword [0x180032128]
lea rdx, [0x18002d784]
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rcx, [0x18003647b]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, esi
ja 0x1800031a2
lea rax, [rsp + 0x2a8]
lea r9, [rsp + 0x70]
lea r8, [0x18003647b]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov edx, esi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.180023d08
mov esi, dword [rsp + 0x2a8]
mov rbx, qword [rsp + 0x38]
jmp 0x1800031a5
mov eax, r12d
cmp eax, r15d
jne 0x1800031ca
cmp rbp, r13
je 0x1800031c1
mov rcx, qword [0x1800339a8]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbp, rbx
mov r14d, 1
mov r15, qword [0x180033f08]
lea rcx, [0x180036483]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, esi
ja 0x18000321c
lea rax, [rsp + 0x2a8]
lea r8, [0x180036483]
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.180023d08
mov esi, dword [rsp + 0x2a8]
mov rbx, qword [rsp + 0x38]
mov r12d, eax
xor eax, eax
cmp r12d, eax
jne 0x180003243
cmp rbp, r13
je 0x18000323a
mov rcx, qword [0x1800339a8]
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, [0x18003648d]
mov edx, esi
mov rcx, rbp
call fcn.18002a9a8
xor ebx, ebx
cmp rax, rbx
mov r13, rax
je 0x1800033b8
mov r12d, dword [rsp + 0x2a0]
mov rcx, qword [0x1800339a8]
xor edx, edx
mov r8, r12
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, rbx
mov rdi, rax
je 0x18000353a
lea eax, [r12 - 6]
lea rdx, [r13 + 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.180017260
mov r15d, dword [rsp + 0x44]
mov rcx, qword [0x1800339a8]
xor ebx, ebx
cmp eax, ebx
cmovne r15d, ebx
xor edx, edx
mov eax, r15d
mov dword [rsp + 0x44], r15d
sub eax, r12d
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 0x180003375
mov ebx, r13d
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 0x18000332b
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, r12d
lea rdx, [r13 + r12]
mov r8d, esi
add rcx, r14
call sub.ntdll.dll_memcpy
cmp rbp, qword [rsp + 0x48]
je 0x180003361
mov rcx, qword [0x1800339a8]
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 0x18000338e
mov r8, qword [rsp + 0x50]
mov rcx, qword [0x1800339a8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r9, [rsp + 0x2a0]
lea r8, [0x18003648d]
mov edx, esi
mov rcx, rbp
call fcn.18002a9a8
cmp rax, rbx
mov r13, rax
jne 0x18000326a
jmp 0x18000353a
mov r12d, dword [rsp + 0x290]
jmp 0x18000353a
cmp rdi, rbx
mov r13d, dword [rsp + 0x2a0]
je 0x1800033f1
cmp r12d, r13d
jae 0x1800033ec
mov rcx, qword [0x1800339a8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, rbx
cmp rdi, rbx
jne 0x180003412
mov rcx, qword [0x1800339a8]
mov r8, r13
xor edx, edx
mov r12d, r13d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, rbx
mov rdi, rax
je 0x18000369a
lea eax, [r13 - 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 0x18000350f
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 0x18000350f
cmp dword [0x180033f5c], ebx
mov r14d, dword [rsp + 0x48]
je 0x18000350f
lea rdx, [0x1800373f9]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
cmp eax, ebx
je 0x18000350f
lea rcx, [0x180033f30]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lock add dword [0x180033f58], 1
lea rcx, [0x180033f30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [0x180033f20]
lea r13, [0x180033f20]
jmp 0x1800034d1
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 0x1800034d8
cmp rbx, r13
jne 0x1800034ba
jmp 0x1800034f6
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 [0x180033f58], 0xffffffff
mov esi, dword [rsp + 0x2a8]
mov r13d, dword [rsp + 0x2a0]
xor ebx, ebx
mov r8d, ebp
mov edx, r13d
mov rcx, r15
sub r8d, r15d
add rdx, r15
sub r8d, r13d
add r8d, esi
call qword [sym.imp.ntdll.dll_memmove]
sub esi, r13d
mov r14d, 1
mov dword [rsp + 0x2a8], esi
lea r9, [rsp + 0x2a0]
lea r8, [0x180036495]
mov edx, esi
mov rcx, rbp
call fcn.18002a9a8
cmp rax, rbx
mov r15, rax
jne 0x1800033c5
jmp 0x18000369a
cmp rdi, rbx
mov r13d, dword [rsp + 0x2a0]
je 0x180003590
cmp r12d, r13d
jae 0x18000358b
mov rcx, qword [0x1800339a8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, rbx
cmp rdi, rbx
jne 0x1800035b1
mov rcx, qword [0x1800339a8]
mov r8, r13
xor edx, edx
mov r12d, r13d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, rbx
mov rdi, rax
je 0x180003794
lea eax, [r13 - 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 0x180003676
mov rdx, qword [0x180033bd0]
lea rcx, [0x180037bbc]
mov byte [rax], r14b
add rdx, rcx
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrTrimA]
mov rdx, qword [0x180033bd0]
lea rcx, [0x180037bbc]
add rdx, rcx
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 0x180003676
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 0x180003678
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.18000d3c8
jmp 0x180003678
xor ebx, ebx
mov r8d, ebp
lea rdx, [r15 + r13]
mov rcx, r15
sub r8d, r15d
sub r8d, r13d
add r8d, esi
call qword [sym.imp.ntdll.dll_memmove]
sub esi, r13d
mov r14d, 1
lea r9, [rsp + 0x2a0]
lea r8, [0x1800364a0]
mov edx, esi
mov rcx, rbp
call fcn.18002a9a8
cmp rax, rbx
mov r15, rax
jne 0x180003564
jmp 0x180003794
cmp rdi, rbx
mov r13d, dword [rsp + 0x2a0]
je 0x1800036f0
cmp r12d, r13d
jae 0x1800036eb
mov rcx, qword [0x1800339a8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, rbx
cmp rdi, rbx
jne 0x180003711
mov rcx, qword [0x1800339a8]
mov r8, r13
xor edx, edx
mov r12d, r13d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, rbx
mov rdi, rax
je 0x1800037b9
lea eax, [r13 - 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 0x180003756
lea r8d, [rbx + 1]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.1800196cc
jmp 0x180003758
mov eax, ebx
cmp eax, ebx
je 0x180003772
xor r9d, r9d
lea rdx, [rsp + 0x60]
mov ecx, 0x127
lea r8d, [r9 + 0x10]
call fcn.18000d3c8
mov r8d, ebp
lea rdx, [r15 + r13]
mov rcx, r15
sub r8d, r15d
sub r8d, r13d
add r8d, esi
call qword [sym.imp.ntdll.dll_memmove]
sub esi, r13d
mov r14d, 1
lea r9, [rsp + 0x2a0]
lea r8, [0x1800364aa]
mov edx, esi
mov rcx, rbp
call fcn.18002a9a8
cmp rax, rbx
mov r15, rax
jne 0x1800036c4
lea r9, [rsp + 0x2a0]
lea r8, [0x1800364b4]
mov edx, esi
mov rcx, rbp
call fcn.18002a9a8
jmp 0x18000388f
cmp rdi, rbx
mov r13d, dword [rsp + 0x2a0]
je 0x180003803
cmp r12d, r13d
jae 0x1800037fe
mov rcx, qword [0x1800339a8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, rbx
cmp rdi, rbx
jne 0x180003824
mov rcx, qword [0x1800339a8]
mov r8, r13
xor edx, edx
mov r12d, r13d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, rbx
mov rdi, rax
je 0x180003944
lea eax, [r13 - 7]
lea rdx, [r15 + 6]
mov rcx, rdi
mov r8d, eax
mov ebx, eax
call sub.ntdll.dll_memcpy
xor eax, eax
lea r8d, [r13 - 6]
xor r9d, r9d
mov rdx, rdi
mov ecx, 0x130
mov byte [rbx + rdi], al
call fcn.18000d3c8
mov r8d, ebp
sub r8d, r15d
lea rdx, [r15 + r13]
mov rcx, r15
sub r8d, r13d
add r8d, esi
call qword [sym.imp.ntdll.dll_memmove]
sub esi, r13d
lea r9, [rsp + 0x2a0]
lea r8, [0x1800364b4]
mov edx, esi
mov rcx, rbp
mov r14d, 1
call fcn.18002a9a8
xor ebx, ebx
cmp rax, rbx
mov r15, rax
jne 0x1800037d7
jmp 0x180003944
cmp rdi, rbx
mov r13d, dword [rsp + 0x2a0]
je 0x1800038cc
cmp r12d, r13d
jae 0x1800038c7
mov rcx, qword [0x1800339a8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, rbx
cmp rdi, rbx
jne 0x1800038ed
mov rcx, qword [0x1800339a8]
mov r8, r13
xor edx, edx
mov r12d, r13d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, rbx
mov rdi, rax
je 0x180003980
lea eax, [r13 - 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 0x180003922
lea r8d, [r13 - 5]
xor r9d, r9d
mov rdx, rdi
mov ecx, 0x126
call fcn.18000d3c8
mov r8d, ebp
lea rdx, [r15 + r13]
mov rcx, r15
sub r8d, r15d
sub r8d, r13d
add r8d, esi
call qword [sym.imp.ntdll.dll_memmove]
sub esi, r13d
mov r14d, 1
lea r9, [rsp + 0x2a0]
lea r8, [0x1800364bd]
mov edx, esi
mov rcx, rbp
call fcn.18002a9a8
cmp rax, rbx
mov r15, rax
jne 0x1800038a0
cmp rdi, rbx
je 0x180003980
mov rcx, qword [0x1800339a8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp r14d, ebx
je 0x18000399f
mov rax, qword [rsp + 0x290]
mov qword [rax], rbp
mov rax, qword [rsp + 0x298]
cmp rax, rbx
je 0x18000399f
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