Function at 0x1001323c0
Capabilities:
Check os version
Get thread local storage value
Link many functions at runtime

Disassembly:
mov rax, rsp
push r14
sub rsp, 0x220
mov qword [rax - 0x158], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x10022f440]
xor rax, rsp
mov qword [rsp + 0x218], rax
mov rbx, rcx
mov qword [rsp + 0x58], rcx
xor esi, esi
mov dword [rsp + 0x30], esi
xor edx, edx
lea rax, [0x100062180]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rcx, [rsp + 0x38]
call fcn.10005b410
nop
mov r14d, 1
mov edx, r14d
lea rcx, [rsp + 0x60]
call fcn.100057f20
nop
mov r8d, r14d
mov edx, 0x20000176
lea rcx, [rsp + 0x70]
call fcn.1000580b0
nop
lea rcx, [0x1002402a0]
call fcn.1001214e0
mov qword [rbx], rax
mov dword [rsp + 0xf0], 0x11c
lea rcx, [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1001324a2
mov eax, dword [rsp + 0xf4]
cmp eax, 5
ja 0x100132498
jne 0x1001324a2
cmp dword [rsp + 0xf8], 2
jb 0x1001324a2
cmp r14w, word [rsp + 0x204]
ja 0x1001324a2
mov dword [0x10029aaf0], 4
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1001324e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rsp + 0x30], eax
call fcn.100133610
test eax, eax
je 0x1001324cc
mov edx, edi
mov ecx, 0x4311
call fcn.100122690
nop
lea rcx, [rsp + 0x60]
call fcn.100058710
nop
lea rcx, [rsp + 0x38]
call fcn.10005b4f0
nop
jmp 0x100132a1e
mov rdx, qword [0x1002402b0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 8], rax
test rax, rax
jne 0x100132540
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rsp + 0x30], eax
mov r9d, eax
lea r8, [0x1002402a0]
mov rdx, qword [0x1002402b0]
mov ecx, 0x4312
call fcn.100122690
nop
lea rcx, [rsp + 0x60]
call fcn.100058710
nop
lea rcx, [rsp + 0x38]
call fcn.10005b4f0
nop
jmp 0x100132a1e
mov rdx, qword [0x1002402b8]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x10013259c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rsp + 0x30], eax
mov r9d, eax
lea r8, [0x1002402a0]
mov rdx, qword [0x1002402b8]
mov ecx, 0x4312
call fcn.100122690
nop
lea rcx, [rsp + 0x60]
call fcn.100058710
nop
lea rcx, [rsp + 0x38]
call fcn.10005b4f0
nop
jmp 0x100132a1e
mov rdx, qword [0x1002402d0]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x18], rax
test rax, rax
jne 0x1001325f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rsp + 0x30], eax
mov r9d, eax
lea r8, [0x1002402a0]
mov rdx, qword [0x1002402d0]
mov ecx, 0x4312
call fcn.100122690
nop
lea rcx, [rsp + 0x60]
call fcn.100058710
nop
lea rcx, [rsp + 0x38]
call fcn.10005b4f0
nop
jmp 0x100132a1e
mov rdx, qword [0x1002402c0]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x20], rax
test rax, rax
jne 0x100132654
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rsp + 0x30], eax
mov r9d, eax
lea r8, [0x1002402a0]
mov rdx, qword [0x1002402c0]
mov ecx, 0x4312
call fcn.100122690
nop
lea rcx, [rsp + 0x60]
call fcn.100058710
nop
lea rcx, [rsp + 0x38]
call fcn.10005b4f0
nop
jmp 0x100132a1e
mov rdx, qword [0x1002402c8]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x28], rax
test rax, rax
jne 0x1001326b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rsp + 0x30], eax
mov r9d, eax
lea r8, [0x1002402a0]
mov rdx, qword [0x1002402c8]
mov ecx, 0x4312
call fcn.100122690
nop
lea rcx, [rsp + 0x60]
call fcn.100058710
nop
lea rcx, [rsp + 0x38]
call fcn.10005b4f0
nop
jmp 0x100132a1e
mov rdx, qword [0x1002402d8]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x30], rax
test rax, rax
jne 0x10013270c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rsp + 0x30], eax
mov r9d, eax
lea r8, [0x1002402a0]
mov rdx, qword [0x1002402d8]
mov ecx, 0x4312
call fcn.100122690
nop
lea rcx, [rsp + 0x60]
call fcn.100058710
nop
lea rcx, [rsp + 0x38]
call fcn.10005b4f0
nop
jmp 0x100132a1e
mov rdx, qword [0x1002402e0]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x38], rax
test rax, rax
jne 0x100132768
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rsp + 0x30], eax
mov r9d, eax
lea r8, [0x1002402a0]
mov rdx, qword [0x1002402e0]
mov ecx, 0x4312
call fcn.100122690
nop
lea rcx, [rsp + 0x60]
call fcn.100058710
nop
lea rcx, [rsp + 0x38]
call fcn.10005b4f0
nop
jmp 0x100132a1e
mov rdx, qword [0x1002402e8]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x40], rax
test rax, rax
jne 0x1001327c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rsp + 0x30], eax
mov r9d, eax
lea r8, [0x1002402a0]
mov rdx, qword [0x1002402e8]
mov ecx, 0x4312
call fcn.100122690
nop
lea rcx, [rsp + 0x60]
call fcn.100058710
nop
lea rcx, [rsp + 0x38]
call fcn.10005b4f0
nop
jmp 0x100132a1e
mov rdx, qword [0x1002402f0]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x48], rax
test rax, rax
jne 0x100132820
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rsp + 0x30], eax
mov r9d, eax
lea r8, [0x1002402a0]
mov rdx, qword [0x1002402f0]
mov ecx, 0x4312
call fcn.100122690
nop
lea rcx, [rsp + 0x60]
call fcn.100058710
nop
lea rcx, [rsp + 0x38]
call fcn.10005b4f0
nop
jmp 0x100132a1e
mov rdx, qword [0x1002402f8]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x50], rax
test rax, rax
jne 0x10013287c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rsp + 0x30], eax
mov r9d, eax
lea r8, [0x1002402a0]
mov rdx, qword [0x1002402f8]
mov ecx, 0x4312
call fcn.100122690
nop
lea rcx, [rsp + 0x60]
call fcn.100058710
nop
lea rcx, [rsp + 0x38]
call fcn.10005b4f0
nop
jmp 0x100132a1e
mov rdx, qword [0x100240300]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x58], rax
test rax, rax
jne 0x1001328d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rsp + 0x30], eax
mov r9d, eax
lea r8, [0x1002402a0]
mov rdx, qword [0x100240300]
mov ecx, 0x4312
call fcn.100122690
nop
lea rcx, [rsp + 0x60]
call fcn.100058710
nop
lea rcx, [rsp + 0x38]
call fcn.10005b4f0
nop
jmp 0x100132a1e
xor r8d, r8d
lea edx, [r8 + 5]
mov ecx, dword [0x10003ae50]
call qword [rbx + reloc.WS2_32.dll_htonl]
mov edi, eax
mov dword [rsp + 0x30], eax
cmp eax, 0x57
jne 0x100132931
mov eax, dword [rsp + 0xf4]
cmp eax, 6
ja 0x100132913
jne 0x10013290b
cmp dword [rsp + 0xf8], 1
jae 0x100132913
mov dword [0x10029aaf4], esi
jmp 0x10013291a
mov dword [0x10029aaf4], r14d
xor r8d, r8d
mov edx, r14d
mov ecx, dword [0x10003ae50]
call qword [rbx + reloc.WS2_32.dll_htonl]
mov edi, eax
mov dword [rsp + 0x30], eax
jmp 0x100132938
mov dword [0x10029aaf4], r14d
test edi, edi
je 0x100132974
cmp edi, 0x4df
je 0x100132974
mov r8d, edi
mov rdx, qword [0x1002402b0]
mov ecx, 0x4313
call fcn.100122690
nop
lea rcx, [rsp + 0x60]
call fcn.100058710
nop
lea rcx, [rsp + 0x38]
call fcn.10005b4f0
nop
jmp 0x100132a1e
mov dword [rsp + 0x30], esi
lea rcx, [rsp + 0x60]
call fcn.100058710
nop
lea rcx, [rsp + 0x38]
call fcn.10005b4f0
nop
jmp 0x100132997
call fcn.100068a00
mov r14, rax
mov rdi, qword gs:[0x30]
add rdi, rax
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x1001329c3
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rdi, rdi
je 0x1001329d4
mov rax, qword [rdi + 0xd8]
test rax, rax
jne 0x100132a0c
call fcn.100063d30
call fcn.100068a00
mov r14, rax
mov rdi, qword gs:[0x30]
add rdi, rax
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x100132a05
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov rax, qword [rdi + 0xd8]
cmp dword [rax + 0x204], 0
je 0x100132a1a
call fcn.1000618f0
mov edi, dword [rsp + 0x30]
test edi, edi
je 0x100132a5f
mov rcx, qword [rbx]
test rcx, rcx
je 0x100132a5f
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x28], rsi
mov qword [rbx + 0x38], rsi
mov qword [rbx + 0x40], rsi
mov qword [rbx + 0x48], rsi
mov qword [rbx + 0x50], rsi
mov qword [rbx + 0x30], rsi
mov qword [rbx + 0x58], rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rbx], rsi
mov eax, edi
mov rcx, qword [rsp + 0x218]
xor rcx, rsp
call fcn.10005f420
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret