Function at 0x180029010
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]
mov rax, rdx
xor edx, edx
mov r15, rbp
mov qword [rsp + 0x48], rbp
mov r14d, edx
mov rdi, rdx
cmp rax, rdx
je 0x18002904c
mov esi, dword [rax]
jmp 0x180029058
mov rcx, rbp
call qword [sym.imp.kERNEL32.dll_lstrlenA]
lea esi, [rax + 1]
mov rax, qword [0x180035c60]
mov r13, qword [0x180035f18]
lea rcx, [0x180000000]
lea rbx, [rax + rcx + 0x39359]
mov dword [rsp + 0x2a8], esi
mov rcx, rbx
call qword [sym.imp.kERNEL32.dll_lstrlenA]
mov r12d, 0x57
cmp eax, esi
ja 0x1800290bf
lea rax, [rsp + 0x2a8]
mov r9, r13
mov r8, rbx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov edx, esi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.180025984
mov esi, dword [rsp + 0x2a8]
jmp 0x1800290c2
mov eax, r12d
mov rbx, qword [rsp + 0x38]
test eax, eax
jne 0x1800290d2
mov rbp, rbx
lea r14d, [rax + 1]
mov r8d, dword [0x180034128]
lea rdx, [0x18002e754]
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_wsprintfA]
mov rax, qword [0x180035c60]
lea rcx, [0x180000000]
lea r13, [rax + rcx + 0x3935e]
mov rcx, r13
call qword [sym.imp.kERNEL32.dll_lstrlenA]
cmp eax, esi
ja 0x180029145
lea rax, [rsp + 0x2a8]
lea r9, [rsp + 0x70]
mov r8, r13
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov edx, esi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.180025984
mov esi, dword [rsp + 0x2a8]
mov rbx, qword [rsp + 0x38]
jmp 0x180029148
mov eax, r12d
test eax, eax
jne 0x18002916c
cmp rbp, r15
je 0x180029163
mov rcx, qword [0x180035a68]
mov r8, rbp
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov rbp, rbx
mov r14d, 1
mov rax, qword [0x180035c60]
mov r15, qword [0x180035fe8]
lea rcx, [0x180000000]
lea r13, [rax + rcx + 0x39366]
mov rcx, r13
call qword [sym.imp.kERNEL32.dll_lstrlenA]
cmp eax, esi
ja 0x1800291cc
lea rax, [rsp + 0x2a8]
mov r9, r15
mov r8, r13
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov edx, esi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.180025984
mov esi, dword [rsp + 0x2a8]
mov rbx, qword [rsp + 0x38]
mov r12d, eax
xor r15d, r15d
cmp r12d, r15d
jne 0x1800291f6
cmp rbp, qword [rsp + 0x48]
je 0x1800291ed
mov rcx, qword [0x180035a68]
mov r8, rbp
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov rbp, rbx
mov r14d, 1
mov rbx, qword [0x180035c60]
lea rax, [0x180000000]
lea r9, [rsp + 0x2a0]
lea r8, [rbx + rax + 0x39370]
mov edx, esi
mov rcx, rbp
call fcn.18002c18c
mov r13, rax
cmp rax, r15
je 0x180029389
mov r12d, dword [rsp + 0x2a0]
mov rcx, qword [0x180035a68]
xor edx, edx
mov r8, r12
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rdi, rax
cmp rax, r15
je 0x18002951b
lea eax, [r12 - 6]
lea rdx, [r13 + 5]
mov rcx, rdi
mov r8d, eax
mov ebx, eax
call sub.ntdll.dll_memcpy
lea r8, [rsp + 0x44]
lea rdx, [rsp + 0x50]
xor r9d, r9d
mov rcx, rdi
mov byte [rbx + rdi], r15b
call fcn.18002bf00
mov r15d, dword [rsp + 0x44]
mov rcx, qword [0x180035a68]
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]
mov qword [rsp + 0x38], rax
cmp rax, rbx
je 0x180029334
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 0x1800292ea
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 0x180029320
mov rcx, qword [0x180035a68]
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 0x18002934d
mov r8, qword [rsp + 0x50]
mov rcx, qword [0x180035a68]
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov rbx, qword [0x180035c60]
lea rax, [0x180000000]
lea r9, [rsp + 0x2a0]
lea r8, [rbx + rax + 0x39370]
mov edx, esi
mov rcx, rbp
call fcn.18002c18c
xor r15d, r15d
mov r13, rax
cmp rax, r15
jne 0x18002922a
jmp 0x180029522
mov r12d, dword [rsp + 0x290]
jmp 0x180029522
mov r13d, dword [rsp + 0x2a0]
xor ebx, ebx
cmp rdi, rbx
je 0x1800293c4
cmp r12d, r13d
jae 0x1800293bf
mov rcx, qword [0x180035a68]
mov r8, rdi
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov rdi, rbx
cmp rdi, rbx
jne 0x1800293e5
mov rcx, qword [0x180035a68]
mov r8, r13
xor edx, edx
mov r12d, r13d
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rdi, rax
cmp rax, rbx
je 0x180029692
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 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 0x1800294f0
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 0x1800294f0
mov r14d, dword [rsp + 0x48]
cmp dword [0x18003603c], ebx
je 0x1800294f0
mov rax, qword [0x180035c60]
lea rcx, [0x180000000]
lea rdx, [rax + rcx + 0x3a2ff]
mov rcx, rdi
call qword [sym.imp.kERNEL32.dll_lstrcmpiA]
cmp eax, ebx
je 0x1800294f0
lea rcx, [0x180036010]
call qword [sym.imp.kERNEL32.dll_EnterCriticalSection]
lock add dword [0x180036038], 1
lea rcx, [0x180036010]
call qword [sym.imp.kERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [0x180036000]
lea r13, [0x180036000]
jmp 0x1800294b4
mov rsi, rbx
mov rbx, qword [rbx]
mov rdx, rdi
lea rcx, [rsi + 0x2c]
call qword [sym.imp.kERNEL32.dll_lstrcmpiA]
xor ecx, ecx
cmp eax, ecx
je 0x1800294bb
cmp rbx, r13
jne 0x18002949b
jmp 0x1800294d9
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 [0x180036038], 0xffffffff
mov esi, dword [rsp + 0x2a8]
mov r13d, dword [rsp + 0x2a0]
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
mov rbx, qword [0x180035c60]
lea rax, [0x180000000]
lea r9, [rsp + 0x2a0]
mov edx, esi
lea r8, [rbx + rax + 0x39378]
mov rcx, rbp
call fcn.18002c18c
mov r15, rax
xor eax, eax
cmp r15, rax
jne 0x180029396
jmp 0x180029699
mov r13d, dword [rsp + 0x2a0]
xor ebx, ebx
cmp rdi, rbx
je 0x180029584
cmp r12d, r13d
jae 0x18002957f
mov rcx, qword [0x180035a68]
mov r8, rdi
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov rdi, rbx
cmp rdi, rbx
jne 0x1800295a5
mov rcx, qword [0x180035a68]
mov r8, r13
xor edx, edx
mov r12d, r13d
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rdi, rax
cmp rax, rbx
je 0x18002979e
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 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 0x180029670
mov byte [rax], r14b
mov rax, qword [0x180035c60]
lea rcx, [0x180000000]
lea rdx, [rax + rcx + 0x3ab7c]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrTrimA]
mov rax, qword [0x180035c60]
lea rcx, [0x180000000]
lea rdx, [rax + rcx + 0x3ab7c]
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 0x180029670
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]
cmp eax, r14d
je 0x180029670
movzx eax, word [rsp + 0x40]
lea r8d, [r14 + 4]
lea rdx, [rsp + 0x30]
lea ecx, [r14 + 0x34]
xor r9d, r9d
mov word [rsp + 0x30], ax
call fcn.18000bc1c
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
mov rbx, qword [0x180035c60]
lea rax, [0x180000000]
lea r9, [rsp + 0x2a0]
mov edx, esi
lea r8, [rbx + rax + 0x39383]
mov rcx, rbp
call fcn.18002c18c
mov r15, rax
xor eax, eax
cmp r15, rax
jne 0x180029556
jmp 0x1800297a5
mov r13d, dword [rsp + 0x2a0]
xor ebx, ebx
cmp rdi, rbx
je 0x1800296fb
cmp r12d, r13d
jae 0x1800296f6
mov rcx, qword [0x180035a68]
mov r8, rdi
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov rdi, rbx
cmp rdi, rbx
jne 0x18002971c
mov rcx, qword [0x180035a68]
mov r8, r13
xor edx, edx
mov r12d, r13d
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rdi, rax
cmp rax, rbx
je 0x180029876
lea eax, [r13 - 8]
lea rdx, [r15 + 7]
mov rcx, rdi
mov r8d, eax
mov ebx, eax
call sub.ntdll.dll_memcpy
lea rdx, [rsp + 0xa0]
xor r14d, r14d
mov ecx, 0x201
mov byte [rbx + rdi], r14b
call qword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, r14d
jne 0x18002975f
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.1800227b0
jmp 0x180029762
mov eax, r14d
cmp eax, r14d
je 0x18002977c
xor r9d, r9d
lea rdx, [rsp + 0x60]
lea r8d, [r9 + 0x10]
lea ecx, [r9 + 0x36]
call fcn.18000bc1c
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
mov rbx, qword [0x180035c60]
lea rax, [0x180000000]
lea r9, [rsp + 0x2a0]
mov edx, esi
lea r8, [rbx + rax + 0x3938d]
mov rcx, rbp
call fcn.18002c18c
mov r15, rax
xor eax, eax
cmp r15, rax
jne 0x1800296cd
jmp 0x18002987d
mov r13d, dword [rsp + 0x2a0]
xor ebx, ebx
cmp rdi, rbx
je 0x180029807
cmp r12d, r13d
jae 0x180029802
mov rcx, qword [0x180035a68]
mov r8, rdi
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov rdi, rbx
cmp rdi, rbx
jne 0x180029828
mov rcx, qword [0x180035a68]
mov r8, r13
xor edx, edx
mov r12d, r13d
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rdi, rax
cmp rax, rbx
je 0x1800298ae
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]
lea ecx, [rax + 0x3f]
xor r9d, r9d
mov rdx, rdi
mov byte [rbx + rdi], al
call fcn.18000bc1c
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
mov r14d, 1
mov rbx, qword [0x180035c60]
lea rax, [0x180000000]
lea r9, [rsp + 0x2a0]
mov edx, esi
lea r8, [rbx + rax + 0x39397]
mov rcx, rbp
call fcn.18002c18c
mov r15, rax
xor eax, eax
cmp r15, rax
jne 0x1800297d9
jmp 0x1800298b5
mov rbx, qword [0x180035c60]
lea rax, [0x180000000]
lea r9, [rsp + 0x2a0]
mov edx, esi
lea r8, [rbx + rax + 0x393a0]
mov rcx, rbp
call fcn.18002c18c
xor ebx, ebx
jmp 0x1800299a7
mov r13d, dword [rsp + 0x2a0]
cmp rdi, rbx
je 0x180029909
cmp r12d, r13d
jae 0x180029904
mov rcx, qword [0x180035a68]
mov r8, rdi
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov rdi, rbx
cmp rdi, rbx
jne 0x18002992a
mov rcx, qword [0x180035a68]
mov r8, r13
xor edx, edx
mov r12d, r13d
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rdi, rax
cmp rax, rbx
je 0x1800299ca
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 0x18002995d
lea r8d, [r13 - 5]
lea ecx, [rax + 0x35]
xor r9d, r9d
mov rdx, rdi
call fcn.18000bc1c
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]
mov rax, qword [0x180035c60]
lea rcx, [0x180000000]
sub esi, r13d
lea r8, [rax + rcx + 0x393a0]
lea r9, [rsp + 0x2a0]
mov rcx, rbp
mov edx, esi
mov r14d, 1
call fcn.18002c18c
mov r15, rax
cmp rax, rbx
jne 0x1800298dd
cmp rdi, rbx
je 0x1800299ca
mov rcx, qword [0x180035a68]
mov r8, rdi
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
cmp r14d, ebx
je 0x1800299e9
mov rax, qword [rsp + 0x290]
mov qword [rax], rbp
mov rax, qword [rsp + 0x298]
cmp rax, rbx
je 0x1800299e9
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