Function at 0x18000d360
Capabilities:
Create thread
Read file via mapping

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x580
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x180067480]
xor rax, rsp
mov qword [rsp + 0x570], rax
mov rbp, rcx
test rcx, rcx
jne 0x18000d3b1
lea rcx, str.return_0_
call fcn.18000ac40
xor eax, eax
jmp 0x18000d821
call fcn.18000ac40
xor r13d, r13d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r13 + 7]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsp + 0x118], r13b
xor ecx, ecx
mov qword [rsp + 0x119], rcx
mov qword [rsp + 0x121], rcx
mov word [rsp + 0x129], cx
mov byte [rsp + 0x12b], cl
mov r8d, eax
lea rdx, [0x180053490]
lea rcx, [rsp + 0x118]
call fcn.1800335dc
lea rcx, [rsp + 0x118]
call fcn.18000ac40
cmp r12, 0xffffffffffffffff
jne 0x18000d452
lea rcx, str.INVALID_HANDLE_VALUE__return_false
call fcn.18000ac40
xor eax, eax
jmp 0x18000d821
mov byte [rsp + 0x130], r13b
xor edx, edx
mov r8d, 0x207
lea rcx, [rsp + 0x131]
call fcn.180031f80
nop
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, 1
mov r8d, 0x228
lea rdx, [rsp + 0x340]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadDirectoryChangesW]
test eax, eax
je 0x18000d470
test byte [rsp + 0x344], 2
je 0x18000d4e8
cmp qword [0x180148958], 0
jne 0x18000d470
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
xor r9d, r9d
lea r8, [0x18000cb20]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x180148958], rax
jmp 0x18000d470
lea rcx, str.Nothing_but_failed
call fcn.18000ac40
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x130]
call fcn.180031f80
mov r9d, dword [rsp + 0x348]
shr r9d, 1
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x208
lea rax, [rsp + 0x130]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x34c]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [rsp + 0xe8], 0xf
mov qword [rsp + 0xe0], r13
mov byte [rsp + 0xd0], 0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rbp
lea rcx, [rsp + 0xc8]
call fcn.1800072f0
nop
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x130]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0xc8]
call fcn.180007180
lea rdx, [rsp + 0xd0]
cmp qword [rsp + 0xe8], 0x10
cmovae rdx, qword [rsp + 0xd0]
mov r8, qword [rsp + 0xe0]
lea rcx, [rsp + 0x130]
call fcn.1800336d0
lea rcx, [rsp + 0x130]
call fcn.18000ac40
xor r8d, r8d
lea rdx, [0x180053438]
lea rcx, [rsp + 0x48]
call fcn.18000ab00
cmp qword [rax + 0x20], 0x10
jb 0x18000d618
mov r8, qword [rax + 8]
jmp 0x18000d61c
lea r8, [rax + 8]
xor edx, edx
lea ecx, [rdx + 6]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov rbx, rax
cmp qword [rsp + 0x68], 0x10
jb 0x18000d63c
mov rcx, qword [rsp + 0x50]
call fcn.180021240
mov qword [rsp + 0x68], 0xf
mov qword [rsp + 0x60], r13
mov byte [rsp + 0x50], 0
test rbx, rbx
je 0x18000d800
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 6]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rsi, rax
mov rdx, rax
lea rcx, [0x1800ff728]
call fcn.180002930
test eax, eax
jne 0x18000d7ed
lea rcx, [rsp + 0x130]
call fcn.1800099d0
test eax, eax
je 0x18000d7ed
lea rdx, [rsp + 0x130]
lea rcx, [0x1800ffb10]
call fcn.18000cb90
test eax, eax
jne 0x18000d7ed
mov qword [rsp + 0xc0], 0xf
mov qword [rsp + 0xb8], r13
mov byte [rsp + 0xa8], al
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rbp
lea rcx, [rsp + 0xa0]
call fcn.1800072f0
nop
mov r9, qword [rsp + 0xb8]
dec r9
xor r8d, r8d
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0xa0]
call fcn.180008a80
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0xa0]
call fcn.180007060
nop
cmp qword [rsp + 0x98], 0x10
jb 0x18000d74a
mov rcx, qword [rsp + 0x80]
call fcn.180021240
mov qword [rsp + 0x110], 0xf
mov qword [rsp + 0x108], r13
mov byte [rsp + 0xf8], 0
lea rcx, [rsp + 0xa8]
cmp qword [rsp + 0xc0], 0x10
cmovae rcx, qword [rsp + 0xa8]
call fcn.18000ac40
mov r8d, 2
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0xa0]
call fcn.18000c0d0
nop
cmp qword [rsp + 0x110], 0x10
jb 0x18000d7b9
mov rcx, qword [rsp + 0xf8]
call fcn.180021240
mov qword [rsp + 0x110], 0xf
mov qword [rsp + 0x108], r13
mov byte [rsp + 0xf8], 0
cmp qword [rsp + 0xc0], 0x10
jb 0x18000d7ed
mov rcx, qword [rsp + 0xa8]
call fcn.180021240
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rsp + 0xe8], 0x10
jb 0x18000d470
mov rcx, qword [rsp + 0xd0]
call fcn.180021240
jmp 0x18000d470
mov rcx, qword [rsp + 0x570]
xor rcx, rsp
call fcn.180031f50
lea r11, [rsp + 0x580]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret