Function at 0x1800046a0
Capabilities:
Create thread
Resume thread

Disassembly:
mov rax, rsp
sub rsp, 0x228
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rdi
mov qword [rax - 0x10], r13
mov qword [rax - 0x18], r14
mov qword [rax - 0x20], r15
xor eax, eax
test rdx, rdx
mov r13, r9
mov r14, r8
mov dword [rcx + 8], eax
mov r15, rcx
mov edi, reloc.WS2_32.dll_inet_addr
je 0x1800046db
mov rbp, qword [rdx]
jmp 0x1800046de
mov rbp, rax
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x230], rbx
call fcn.1800013c0
lea rcx, [rsp + 0x30]
mov r11, rax
mov rax, qword [rax]
mov qword [rcx], rax
mov rax, qword [r11 + 8]
mov qword [rcx + 8], rax
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x18000499a
mov qword [rsp + 0x240], rsi
mov esi, dword [rbx + 0x50]
mov ecx, 0x20
mov qword [rsp + 0x220], r12
call fcn.1802834dc
test rax, rax
mov r12, rax
je 0x1800048b7
test rbp, rbp
lea rcx, [rsp + 0x30]
mov qword [r12 + 0x10], r14
mov rax, qword [rcx]
mov qword [r12 + 0x18], r13
mov qword [r12], rax
mov rax, qword [rcx + 8]
mov qword [r12 + 8], rax
je 0x1800047a1
mov eax, dword [rbp + 0x18]
mov r13d, dword [rbp + 0x10]
mov dword [rbx + 0x44], eax
cmp dword [rbp + 0x20], 0
mov esi, dword [rbp + 0x1c]
jne 0x1800047a9
lea rcx, [rsp + 0x60]
call fcn.180001710
lea rcx, [rsp + 0x40]
xor r14d, r14d
mov r11, rax
mov rax, qword [rax]
mov qword [rcx], rax
mov rax, qword [r11 + 8]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x40]
mov esi, dword [rax + 0x50]
jmp 0x1800047ac
xor r14d, r14d
mov r13d, r14d
jmp 0x1800047ac
xor r14d, r14d
lea r8, [0x180003bf0]
mov r9, r12
mov edx, r13d
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov dword [rbx + 0x28], r14d
mov qword [rbx + 0x178], r14
mov dword [rsp + 0x20], 4
call fcn.180294bf8
test rax, rax
mov r13, rax
mov qword [rbx + 8], rax
je 0x18000484f
test rbp, rbp
je 0x180004846
cmp esi, 0xfffffff1
mov ebp, esi
jl 0x180004846
cmp esi, 0xf
jg 0x180004846
cmp esi, 0xfffffff1
jle 0x180004806
cmp esi, 0xfffffffe
jge 0x180004806
mov ebp, 0xfffffffe
jmp 0x180004815
cmp esi, 0xf
jge 0x180004815
mov eax, 2
cmp esi, eax
cmovg ebp, eax
lea rcx, [rbx + 0x48]
call fcn.180001910
test eax, eax
jne 0x180004843
mov rcx, qword [rbx + 8]
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x180004835
mov dword [rbx + 0x50], esi
lea rcx, [rbx + 0x48]
call fcn.180001a80
xor r14d, r14d
jmp 0x180004846
xor r14d, r14d
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ResumeThread]
test r13, r13
cmovne edi, r14d
test edi, edi
jne 0x1800048b7
lea rax, [rsp + 0x30]
mov rcx, qword [rax]
mov qword [r15], rcx
mov rcx, qword [rax + 8]
mov eax, edi
mov qword [r15 + 8], rcx
mov rsi, qword [rsp + 0x240]
mov r12, qword [rsp + 0x220]
mov r15, qword [rsp + 0x208]
mov r14, qword [rsp + 0x210]
mov r13, qword [rsp + 0x218]
mov rdi, qword [rsp + 0x248]
mov rbp, qword [rsp + 0x238]
mov rbx, qword [rsp + 0x230]
add rsp, 0x228
ret
lea rcx, [rsp + 0x70]
mov rdx, rbx
mov r8d, 0x190
call fcn.18027aec0
lea rcx, [0x1804d8480]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbx + 0x10]
lea rcx, [rsp + 0x40]
mov qword [rcx], rax
mov rax, qword [rbx + 0x18]
xor edx, edx
mov qword [rcx + 8], rax
mov rcx, rbx
mov r8d, 0x190
call fcn.18027b320
lea rcx, [rsp + 0x40]
mov qword [rbx + 0x20], 1
mov rax, qword [rcx]
mov qword [rbx + 0x10], rax
mov rax, qword [rcx + 8]
mov qword [rbx + 0x18], rax
add dword [rbx + 0x18], 1
mov rax, qword [0x1803c3dc0]
cmp rax, 1
je 0x18000492e
mov qword [rax + 0x20], rbx
jmp 0x180004935
mov qword [0x1803c3db8], rbx
lea rcx, [0x1804d8480]
mov qword [0x1803c3dc0], rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0xd8]
test rcx, rcx
je 0x18000495c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0xc8]
call fcn.180002d70
lea rcx, [rsp + 0xb8]
call fcn.180002d70
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x180004986
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r12, r12
je 0x180004993
mov rcx, r12
call fcn.180281a3c
mov eax, edi
jmp 0x18000486f
mov eax, edi
jmp 0x18000487f