Function at 0x180004ec0
Capabilities:
Accept command line arguments
Create thread

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [0x180059300]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea rcx, str.afcore64.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180004efc
mov dword [0x18005a68c], 0
mov eax, 1
jmp 0x180005163
mov dword [rsp + 0x40], 0
xor edx, edx
mov ecx, 0x11f0
call fcn.180005490
mov qword [rsp + 0x30], rax
xor edx, edx
mov ecx, 0x11f0
call fcn.180005490
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x30]
mov dword [rax], 2
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 4], eax
lea rcx, [rsp + 0x58]
call fcn.18001a8b0
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.180002ed0
mov rcx, qword [rsp + 0x30]
add rcx, 8
mov r8, 0xffffffffffffffff
mov rdx, rax
call fcn.1800023e0
lea rcx, [rsp + 0x58]
call fcn.180002b70
nop
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, qword [rsp + 0x30]
add rcx, 0x260
mov r8, 0xffffffffffffffff
mov rdx, rax
call fcn.180002460
nop
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call fcn.18000b9b0
test eax, eax
je 0x18000514b
lea rax, [0x18005a690]
mov rcx, qword [rsp + 0x38]
mov rdi, rax
lea rsi, [rcx + 0x3e0]
mov ecx, 0x2c0
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0
je 0x180005139
lea rax, [0x18005a2b0]
mov rcx, qword [rsp + 0x38]
mov rdi, rax
lea rsi, [rcx + 4]
mov ecx, 0x3dc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x3e0]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, eax
lea r8, [0x180005820]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180005042
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov edx, 8
lea rcx, [rsp + 0x60]
call fcn.180004e60
lea rcx, [rsp + 0x60]
call fcn.180002580
nop
cmp dword [0x18005a330], 3
jne 0x180005089
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r9d, eax
lea r8, [0x180044b88]
lea rdx, [0x180044b90]
lea rcx, [rsp + 0x60]
call fcn.180003900
nop
jmp 0x180005105
cmp dword [0x18005a330], 2
jne 0x1800050b6
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r9d, eax
lea r8, str.blue
lea rdx, [0x180044bd8]
lea rcx, [rsp + 0x60]
call fcn.180003900
nop
jmp 0x180005105
cmp dword [0x18005a330], 1
jne 0x1800050e3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r9d, eax
lea r8, str.bluelight
lea rdx, [0x180044c28]
lea rcx, [rsp + 0x60]
call fcn.180003900
nop
jmp 0x180005105
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r9d, eax
lea r8, str.unknown
lea rdx, str.Local_af_contained__s__d
lea rcx, [rsp + 0x60]
call fcn.180003900
nop
lea rcx, [rsp + 0x60]
call fcn.180002ed0
mov r9, rax
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x18005a68c], 1
lea rcx, [rsp + 0x60]
call fcn.180002b70
nop
jmp 0x180005143
mov dword [0x18005a68c], 0
mov dword [rsp + 0x40], 1
mov rcx, qword [rsp + 0x30]
call fcn.180005460
mov rcx, qword [rsp + 0x38]
call fcn.180005460
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180024000
add rsp, 0x78
pop rdi
pop rsi
ret