Function at 0x1400474f0
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x3f8]
sub rsp, 0x4d0
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov rax, qword [0x140160040]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov rsi, rdx
mov qword [rsp + 0x70], rdx
xor r14d, r14d
mov edi, r14d
mov dword [rbp + 0x2c0], r14d
mov bl, 1
mov byte [rsp + 0x30], bl
cmp byte [0x1401d6de0], r14b
jne 0x140047b64
lea rcx, str.___Initializing_DMA..._n
call fcn.140045fa0
lea rdx, str.fpga:__algo0
lea rcx, str._device
lea rax, [0x14013cc89]
nop dword [rax + rax]
mov qword [rbp + 0x368], rax
mov qword [rbp + 0x370], rcx
mov qword [rbp + 0x378], rdx
mov qword [rbp + 0x380], rax
mov qword [rbp + 0x388], rax
mov qword [rbp + 0x390], rax
mov qword [rbp + 0x398], rax
mov r15d, 3
xorps xmm0, xmm0
movups xmmword [rbp + 0x318], xmm0
mov qword [rbp + 0x328], r14
mov qword [rbp + 0x330], r14
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp + 0x318]
call fcn.1400224d0
nop
test bl, bl
je 0x1400478a0
lea rcx, [rbp + 0x2f8]
call fcn.140046b40
nop
lea r12, [rbp + 0x2f8]
cmp qword [rbp + 0x310], 7
cmova r12, qword [rbp + 0x2f8]
mov r14, qword [rbp + 0x308]
call fcn.140116474
mov r13d, eax
xorps xmm0, xmm0
movups xmmword [rbp + 0x2d0], xmm0
xor eax, eax
mov qword [rbp + 0x2e0], rax
mov qword [rbp + 0x2e8], sendto
mov byte [rbp + 0x2d0], al
or edi, 8
mov dword [rbp + 0x2c0], edi
test r14, r14
je 0x1400476d9
cmp r14, 0x7fffffff
ja 0x140048041
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8d, r14d
mov rdx, r12
mov ecx, r13d
call fcn.1401164e4
mov rbx, rax
mov qword [rbp + 0x2c8], rax
shr rax, 0x20
test eax, eax
jne 0x140048035
movsxd rdx, ebx
xor r8d, r8d
lea rcx, [rbp + 0x2d0]
call fcn.140033ae0
lea r9, [rbp + 0x2d0]
cmp qword [rbp + 0x2e8], 0xf
cmova r9, qword [rbp + 0x2d0]
mov dword [rsp + 0x20], ebx
mov r8d, r14d
mov rdx, r12
mov ecx, r13d
call fcn.1401164e4
mov qword [rbp + 0x2c8], rax
shr rax, 0x20
test eax, eax
jne 0x140048029
and edi, 0xfffffff7
or edi, 7
mov r8d, 9
lea rdx, str.mmap.txt
lea rcx, [rbp + 0x2d0]
call fcn.140033b70
movups xmm6, xmmword [rax]
movups xmmword [rsp + 0x38], xmm6
movups xmm7, xmmword [rax + 0x10]
movups xmmword [rsp + 0x48], xmm7
xor r14d, r14d
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], sendto
mov byte [rax], r14b
or edi, 0x10
mov rdx, qword [rbp + 0x330]
cmp rdx, 0xf
jbe 0x14004775f
inc rdx
mov rcx, qword [rbp + 0x318]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004775a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400478f7
call fcn.140117254
movups xmmword [rbp + 0x318], xmm6
movups xmmword [rbp + 0x328], xmm7
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], sendto
mov byte [rsp + 0x38], r14b
lea rcx, [rsp + 0x38]
call fcn.140022fc0
nop
lea rcx, [rbp + 0x2d0]
call fcn.140022fc0
lea rax, [rbp + 0x318]
cmp qword [rbp + 0x330], 0xf
cmova rax, qword [rbp + 0x318]
mov qword [rsp + 0x60], rax
mov rax, qword [rbp + 0x328]
mov qword [rsp + 0x68], rax
call fcn.140116474
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp + 0x2d0], xmm0
lea r8, [rbp + 0x2d0]
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.140024c20
or edi, 0x60
mov qword [rbp + 0x338], r14
lea rax, [0x1401600d8]
mov qword [rbp + 0x340], rax
lea rdx, [rbp + 0x338]
lea rcx, [rsp + 0x38]
call fcn.140026240
movzx ebx, al
cmp dword [rbp + 0x338], 0
jne 0x140048010
lea rcx, [rsp + 0x38]
call fcn.140033a70
test bl, bl
jne 0x140047851
call fcn.140046e80
movzx ebx, al
lea rcx, str.___Dumping_mmap..._n
call fcn.140045fa0
test bl, bl
jne 0x14004785d
lea rcx, str.____ERROR:_Could_not_dump_memory_map__n
call fcn.140045fa0
jmp 0x14004788f
lea rcx, str.___Dumping_mmap..._n
call fcn.140045fa0
lea rax, str._memmap
mov qword [rbp + 0x380], rax
lea rax, [rbp + 0x318]
cmp qword [rbp + 0x330], 0xf
cmova rax, qword [rbp + 0x318]
mov qword [rbp + 0x388], rax
mov r15d, 5
lea rcx, [rbp + 0x2f8]
call fcn.140033a70
movzx ebx, byte [rsp + 0x30]
mov eax, r15d
lea rcx, str._norefresh
mov qword [rbp + rax*8 + 0x368], rcx
lea ecx, [r15 + 1]
lea rdx, [rbp + 0x368]
call qword [sym.imp.VMM.dll_VMMDLL_Initialize]
mov qword [0x1401d6e48], rax
test rax, rax
jne 0x14004791c
test bl, bl
je 0x1400478fe
xor bl, bl
mov byte [rsp + 0x30], bl
lea rcx, str.____Initialization_failed_with_Memory_map__Try_to_delete__temp__mmap.txt_n
call fcn.140045fa0
nop
lea rcx, [rbp + 0x318]
call fcn.140022fc0
jmp 0x140047563
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, str.____Initialization_failed__Is_the_DMA_in_use_or_disconnected__n
call fcn.140045fa0
nop
lea rcx, [rbp + 0x318]
call fcn.140022fc0
jmp 0x140047fcc
mov qword [rbp + 0x360], r14
mov qword [rbp + 0x2f0], r14
lea r8, [rbp + 0x360]
movabs rdx, 0x300008100000000
mov rcx, rax
call qword [sym.imp.VMM.dll_VMMDLL_ConfigGet]
lea r8, [rbp + 0x2f0]
movabs rdx, 0x300008000000000
mov rcx, qword [0x1401d6e48]
call qword [sym.imp.VMM.dll_VMMDLL_ConfigGet]
mov qword [rbp + 0x2d0], r14
mov qword [rbp + 0x2c0], r14
mov qword [rbp + 0x2c8], r14
lea r8, [rbp + 0x2d0]
movabs rdx, 0x300008100000000
mov rcx, qword [0x1401d6e48]
call qword [sym.imp.VMM.dll_VMMDLL_ConfigGet]
test eax, eax
jne 0x1400479e9
lea r8, [rbp + 0x2c0]
movabs rdx, 0x300008200000000
mov rcx, qword [0x1401d6e48]
call qword [sym.imp.VMM.dll_VMMDLL_ConfigGet]
test eax, eax
je 0x1400479e9
lea r8, [rbp + 0x2c8]
movabs rdx, 0x300008300000000
mov rcx, qword [0x1401d6e48]
call qword [sym.imp.VMM.dll_VMMDLL_ConfigGet]
test eax, eax
je 0x1400479e9
lea rcx, str.____Failed_to_lookup_FPGA_device__Attempting_to_proceed_n_n
jmp 0x140047aa3
mov rax, qword [rbp + 0x2c0]
cmp rax, 4
jb 0x140047b12
cmp rax, 5
jae 0x140047a0e
cmp qword [rbp + 0x2c8], 7
jb 0x140047b12
mov dword [rbp - 0x80], 0xc0fd0002
mov dword [rbp - 0x7c], r14d
movsd xmm0, qword [str.existing]
movsd qword [rbp - 0x78], xmm0
movzx eax, byte [0x14013f450]
mov byte [rbp - 0x70], al
xor edx, edx
mov r8d, 0xfb
lea rcx, [rbp - 0x6f]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x8c]
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0x190], r14
mov qword [rbp + 0x198], r14
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x1a0], xmm0
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x1b0]
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [rbp + 0x2b4], eax
lea rcx, [rbp - 0x80]
call qword [sym.imp.leechcore.dll_LcCreate]
mov rbx, rax
test rax, rax
jne 0x140047ad3
lea rcx, str.____Failed_to_create_FPGA_device_n
call fcn.140045fa0
lea rcx, str.____Could_not_set_FPGA__n
call fcn.140045fa0
mov rcx, qword [0x1401d6e48]
call qword [sym.imp.VMM.dll_VMMDLL_Close]
nop
lea rcx, [rbp + 0x318]
call fcn.140022fc0
jmp 0x140047fcc
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [0x140160490]
movabs rdx, 0x10800000002
mov r8d, 4
mov rcx, rbx
call qword [sym.imp.leechcore.dll_LcCommand]
lea rcx, str.____Register_auto_cleared_n
call fcn.140045fa0
mov rcx, rbx
call qword [sym.imp.leechcore.dll_LcClose]
mov byte [0x1401d6de0], 1
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
xor r9d, r9d
lea r8, [0x140047410]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
xor r9d, r9d
lea r8, [0x140047480]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
lea rcx, [rbp + 0x318]
call fcn.140022fc0
jmp 0x140047b70
lea rcx, str.___DMA_already_initialized__n
call fcn.140045fa0
cmp byte [0x1401d6de1], 0
je 0x140047b95
lea rcx, str.___Process_already_initialized__n
call fcn.140045fa0
nop
mov rcx, rsi
call fcn.140022fc0
mov al, 1
jmp 0x140047fd6
mov rdx, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x140047ba2
mov rdx, qword [rsi]
lea rcx, str.____Waiting_for__s_to_start..._n
call fcn.140045fa0
lea rcx, [0x1401d5388]
cmp rcx, rsi
je 0x140047bd0
mov rdx, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x140047bc7
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
call fcn.140043c10
movabs r12, 0x7fffffffc46535ff
mov r13d, 0xff
movabs r15, 0x7fffffffffffffff
nop word [rax + rax]
mov rdx, rsi
lea rcx, [rbp + 0x2f8]
call fcn.140022ea0
mov rdi, rax
mov dword [rbp + 0x2c0], r14d
mov rdx, rax
cmp qword [rax + 0x18], 0xf
jbe 0x140047c16
mov rdx, qword [rax]
lea r8, [rbp + 0x2c0]
mov rcx, qword [0x1401d6e48]
call qword [sym.imp.VMM.dll_VMMDLL_PidGetFromName]
mov ebx, dword [rbp + 0x2c0]
mov rcx, rdi
call fcn.140022fc0
mov dword [0x1401d5370], ebx
test ebx, ebx
jne 0x140047ca4
lea rcx, [rbp + 0x2d0]
call fcn.140023880
mov rax, qword [rbp + 0x2d0]
mov qword [rbp + 0x2c0], rax
cmp rax, r12
je 0x140047c8c
mov ecx, 1
cmovl ecx, r13d
test cl, cl
jns 0x140047c8c
add rax, 0x3b9aca00
mov qword [rbp + 0x2c0], rax
lea rcx, [rbp + 0x2c0]
call fcn.140024180
jmp 0x140047bf0
mov qword [rbp + 0x2c0], r15
lea rcx, [rbp + 0x2c0]
call fcn.140024180
jmp 0x140047bf0
mov rdx, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x140047cb1
mov rdx, qword [rsi]
lea rcx, str.____s_process_found._n
call fcn.140045fa0
lea rcx, str.____Fixing_CR3..._n
call fcn.140045fa0
call fcn.140048540
test al, al
jne 0x140047d37
movabs rbx, 0x7ffffffffa0a1eff
nop dword [rax]
lea rcx, [rbp + 0x2d0]
call fcn.140023880
mov rax, qword [rbp + 0x2d0]
mov qword [rbp + 0x2c0], rax
cmp rax, rbx
je 0x140047d1b
mov ecx, 1
cmovl ecx, r13d
test cl, cl
jns 0x140047d1b
add rax, 0x5f5e100
mov qword [rbp + 0x2c0], rax
jmp 0x140047d22
mov qword [rbp + 0x2c0], r15
lea rcx, [rbp + 0x2c0]
call fcn.140024180
call fcn.140048540
test al, al
je 0x140047ce0
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.140022ea0
mov rdi, rax
mov qword [rbp + 0x2f0], rax
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x140047d61
add r8, qword [rax]
mov rdx, qword [rax]
jmp 0x140047d67
add r8, rdi
mov rdx, rdi
lea rcx, [rbp + 0x2f8]
call fcn.1400493a0
lea r8, [rbp + 0x2f8]
cmp qword [rbp + 0x310], 7
cmova r8, qword [rbp + 0x2f8]
mov dword [rsp + 0x20], r14d
lea r9, [rbp + 0x2d0]
mov edx, dword [0x1401d5370]
mov rcx, qword [0x1401d6e48]
call qword [sym.imp.VMM.dll_VMMDLL_Map_GetModuleFromNameW]
test eax, eax
jne 0x140047dee
mov rdx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x140047dba
mov rdx, qword [rdi]
lea rcx, str.____Couldnt_find_Base_Address_for__s_n
call fcn.140045fa0
lea rcx, [rbp + 0x2f8]
call fcn.140033a70
nop
mov rcx, rdi
call fcn.140022fc0
mov qword [0x1401d5378], r14
lea rcx, str.____Could_not_get_base_address__n
jmp 0x140047fc6
mov rax, qword [rbp + 0x2d0]
mov rbx, qword [rax]
lea rcx, [rbp + 0x2f8]
call fcn.140033a70
nop
mov rcx, rdi
call fcn.140022fc0
mov qword [0x1401d5378], rbx
test rbx, rbx
jne 0x140047e25
lea rcx, str.____Could_not_get_base_address__n
jmp 0x140047fc6
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.140022ea0
mov rdi, rax
mov qword [rbp + 0x2f0], rax
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x140047e4f
add r8, qword [rax]
mov rdx, qword [rax]
jmp 0x140047e55
add r8, rdi
mov rdx, rdi
lea rcx, [rbp + 0x2f8]
call fcn.1400493a0
lea r8, [rbp + 0x2f8]
cmp qword [rbp + 0x310], 7
cmova r8, qword [rbp + 0x2f8]
mov dword [rsp + 0x20], r14d
lea r9, [rbp + 0x2d0]
mov edx, dword [0x1401d5370]
mov rcx, qword [0x1401d6e48]
call qword [sym.imp.VMM.dll_VMMDLL_Map_GetModuleFromNameW]
lea rcx, [rbp + 0x2f8]
test eax, eax
je 0x140047faa
mov rax, qword [rbp + 0x2d0]
mov ebx, dword [rax + 0x10]
call fcn.140033a70
nop
mov rcx, rdi
call fcn.140022fc0
mov qword [0x1401d5380], rbx
test rbx, rbx
je 0x140047fbf
lea rdx, str.___DMA_successfully_initialized
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140037c30
lea rdx, [0x140037e00]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov byte [0x1401d6de1], 1
mov ecx, sendto
call fcn.140116f00
lea rcx, [0x1401d6e30]
mov qword [rax], rcx
lea rcx, [0x1400482c0]
mov qword [rax + 8], rcx
mov qword [rbp + 0x2d0], rax
lea rcx, [rbp + 0x358]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x140024270]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 0x350], rax
test rax, rax
je 0x140047f97
cmp dword [rbp + 0x358], 0
je 0x140047f8b
movaps xmm0, xmmword [rbp + 0x350]
movdqa xmmword [rsp + 0x60], xmm0
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140047f8b
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x350], xmm0
mov rcx, rsi
call fcn.140022fc0
mov al, 1
jmp 0x140047fd6
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp + 0x358], r14d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
call fcn.140033a70
nop
mov rcx, rdi
call fcn.140022fc0
mov qword [0x1401d5380], r14
lea rcx, str.____Could_not_get_base_size__n
call fcn.140045fa0
nop
mov rcx, rsi
call fcn.140022fc0
xor al, al
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.140116ee0
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea r8, [rsp + 0x38]
lea rdx, [rbp + 0x338]
lea rcx, str.exists
call fcn.140046ae0
nop
mov ecx, dword [rbp + 0x2cc]
call fcn.140024b10
int3
mov ecx, dword [rbp + 0x2cc]
call fcn.140024b10
int3
call fcn.140024830
int3