Function at 0x140005e4c
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r15d, r9d
mov rbp, rdx
mov rbx, rcx
call fcn.140008ae8
cmp dword [rax + 0x10], 2
jne 0x140005e88
lea rcx, [0x1400265b0]
call fcn.1400025c4
lea rcx, str.SeDebugPrivilege
call fcn.140015bfc
mov esi, eax
call fcn.140008ae8
cmp dword [rax + 0x10], 2
jne 0x140005eba
cmp dword [rax + 4], 5
jne 0x140005eb1
cmp dword [rax + 8], 1
jae 0x140005eb3
cmp dword [rax + 4], 5
jbe 0x140005eba
mov eax, 1
jmp 0x140005ebc
xor eax, eax
test esi, esi
lea rdi, [0x1400260a0]
mov r12d, 0x18
je 0x140005f6b
test eax, eax
jne 0x140005f6b
mov rax, rdi
mov r8, r12
and dword [rsp + 0x20], 0
mov r9d, dword [rax]
mov dword [rsp + 0x24], reloc.WS2_32.dll_inet_addr
xor edx, edx
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x2c], InitCommonControls
mov dword [rsp + 0x30], InitCommonControls
mov dword [rsp + 0x34], InitCommonControls
mov dword [rsp + 0x38], InitCommonControls
mov dword [rsp + 0x3c], InitCommonControls
mov dword [rsp + 0x40], reloc.COMCTL32.dll_InitCommonControls
mov dword [rsp + 0x44], 0x12
mov dword [rsp + 0x48], 0x13
mov dword [rsp + 0x4c], 0x15
lea rcx, [rsp + 0x20]
cmp dword [rcx], r9d
je 0x140005f59
add edx, 1
add rcx, 4
cmp edx, 0xc
jb 0x140005f46
jmp 0x140005f5d
and dword [rax + 0xc], 0
add rax, 0x30
sub r8, 1
jne 0x140005edf
mov rcx, rbx
call fcn.14000ad3c
lea rcx, [rbx + 8]
xor edx, edx
mov r8d, 0x1f8
call sub.msvcrt.dll_memset
mov rax, r12
mov rsi, 0xffffffffffffffff
mov qword [rbx + 0x198], rbp
mov dword [rbx + 0x1d4], r12d
mul r12
cmovo rax, rsi
mov rcx, rax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov qword [rbx + 0x1d8], rax
mov rax, r12
mul r12
cmovo rax, rsi
mov rcx, rax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
lea rbp, [0x1400260b8]
mov r13, r12
mov qword [rbx + 0x28], rax
movsxd rax, dword [rdi]
mov esi, 0x18
lea rdx, [rbp - 0x18]
lea r12, [rax + rax*2]
mov rax, qword [rbx + 0x1d8]
mov r8, rsi
lea rcx, [rax + r12*8]
call sub.msvcrt.dll_memcpy
mov r11, qword [rbx + 0x28]
mov r8, rsi
lea rcx, [r11 + r12*8]
mov rdx, rbp
call sub.msvcrt.dll_memcpy
mov r11, qword [rbx + 0x1d8]
mov rax, qword [rbx + 0x28]
mov rsi, qword [r11 + r12*8 + 0x10]
test esi, 0xffff0000
mov qword [rax + r12*8 + 0x10], rsi
jne 0x14000605b
lea rcx, [0x140029d08]
movzx edx, si
call fcn.140009db0
mov rcx, qword [rbx + 0x1d8]
bts esi, 0x10
mov qword [rcx + r12*8 + 0x10], rax
lea rcx, [0x140029d08]
mov edx, esi
call fcn.140009db0
mov rcx, qword [rbx + 0x28]
mov qword [rcx + r12*8 + 0x10], rax
add rbp, 0x30
add rdi, 0x30
sub r13, 1
jne 0x140005fd2
xor edi, edi
mov dword [rbx + 0x34], r15d
mov dword [rbx + 8], InitCommonControls
lea ecx, [rdi + 0x18]
lea eax, [rdi + 4]
mov dword [rbx + 0x30], edi
mov dword [rbx + 0xc], ecx
mul rcx
lea rcx, [rdi - 1]
cmovo rax, rcx
mov rcx, rax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
lea r11, [rsp + 0x50]
mov dword [rbx + 0x38], 1
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov dword [rbx + 0x1c0], 1
mov qword [rbx + 0x10], rax
mov dword [rbx + 0x1c4], edi
mov dword [rbx + 0x1f4], gethostbyaddr
mov qword [rbx + 0x200], rdi
mov rbx, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret