Function at 0x1400d5090
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [rsp + 0xb8]
cmp qword [rax + 0x20], 0
jne 0x1400d50ba
mov eax, 0xffffffff
jmp 0x1400d53bd
mov rax, qword [rsp + 0xb0]
cmp dword [rax + 0x57e90], 0
je 0x1400d53b8
mov dword [rsp + 0x30], 0
mov rcx, qword [rsp + 0xb0]
add rcx, 0x1d4c0
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [rsp + 0x30], 0
jmp 0x1400d5101
mov eax, dword [rsp + 0x30]
add eax, 1
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x57e94]
cmp dword [rsp + 0x30], eax
jge 0x1400d51b4
mov rax, qword [rsp + 0xb0]
cmp dword [rax + 0x57e90], 0
je 0x1400d51b4
movsxd rcx, dword [rsp + 0x30]
imul rcx, rcx, 0x30
mov rax, qword [rsp + 0xb0]
cmp dword [rax + rcx + 0x57e98], 0
jne 0x1400d51af
movsxd rcx, dword [rsp + 0x30]
imul rcx, rcx, 0x30
mov rax, qword [rsp + 0xb0]
lea rcx, [rax + rcx + 0x57e98]
mov r8d, gethostbyname
mov rdx, qword [rsp + 0xb8]
call fcn.1400a9470
movsxd rcx, dword [rsp + 0x30]
imul rcx, rcx, 0x30
mov rax, qword [rsp + 0xb0]
mov dword [rax + rcx + 0x57e98], 2
mov rcx, qword [rsp + 0xb0]
add rcx, 0x1d4c0
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [rsp + 0x30]
jmp 0x1400d53bd
jmp 0x1400d50f6
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x57e94]
cmp dword [rsp + 0x30], eax
jne 0x1400d5393
mov rax, qword [rsp + 0xb0]
cmp dword [rax + 0x57e94], 0x3a98
jge 0x1400d5393
mov dword [rsp + 0x90], 0
mov dword [rsp + 0x40], 0x48
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8d, 0x48
lea rdx, [rsp + 0x40]
mov rcx, rax
call sub.PSAPI.DLL_GetProcessMemoryInfo
test eax, eax
je 0x1400d521f
mov dword [rsp + 0x90], 1
cmp dword [rsp + 0x90], 0
je 0x1400d5393
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rax + 0x57e94]
add ecx, 0xa
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0x57e94], ecx
mov rax, qword [rsp + 0xb0]
cmp dword [rax + 0x57e94], 0x3a98
jle 0x1400d5272
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0x57e94], 0x3a98
mov dword [rsp + 0x94], 0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x94], eax
jmp 0x1400d529b
mov eax, dword [rsp + 0x94]
add eax, 1
mov dword [rsp + 0x94], eax
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x57e94]
cmp dword [rsp + 0x94], eax
jge 0x1400d537e
mov dword [rsp + 0x98], 0
movsxd rdx, dword [rsp + 0x94]
imul rdx, rdx, 0x10
mov rcx, qword [rsp + 0xb0]
mov rax, qword [rsp + 0xb0]
mov qword [rcx + rdx + 0x1d510], rax
movsxd rdx, dword [rsp + 0x94]
imul rdx, rdx, 0x10
mov rcx, qword [rsp + 0xb0]
mov eax, dword [rsp + 0x94]
mov dword [rcx + rdx + 0x1d518], eax
movsxd rcx, dword [rsp + 0x94]
imul rcx, rcx, 0x10
mov rax, qword [rsp + 0xb0]
lea r9, [rax + rcx + 0x1d510]
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea r8, [0x1400d5060]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r11, rax
movsxd rcx, dword [rsp + 0x94]
mov rax, qword [rsp + 0xb0]
mov qword [rax + rcx*8], r11
movsxd rcx, dword [rsp + 0x94]
mov rax, qword [rsp + 0xb0]
cmp qword [rax + rcx*8], 0
jne 0x1400d5379
jmp 0x1400d537e
jmp 0x1400d528a
mov rcx, qword [rsp + 0xb0]
mov eax, dword [rsp + 0x94]
mov dword [rcx + 0x57e94], eax
mov rcx, qword [rsp + 0xb0]
add rcx, 0x1d4c0
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400d50ba
mov eax, 0xffffffff
add rsp, 0xa8
ret