Function at 0x1400476c0
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 [0x140169040]
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 [0x1401e00a0], r14b
jne 0x140047d34
lea rcx, str.___Initializing_DMA..._n
call fcn.140046170
lea rdx, str.fpga:__algo0
lea rcx, str._device
lea rax, [0x140143d09]
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 0x140047a70
lea rcx, [rbp + 0x2f8]
call fcn.140046d10
nop
lea r12, [rbp + 0x2f8]
cmp qword [rbp + 0x310], 7
cmova r12, qword [rbp + 0x2f8]
mov r14, qword [rbp + 0x308]
call fcn.14011da34
mov r13d, eax
xorps xmm0, xmm0
movups xmmword [rbp + 0x2d0], xmm0
xor eax, eax
mov qword [rbp + 0x2e0], rax
mov qword [rbp + 0x2e8], socket
mov byte [rbp + 0x2d0], al
or edi, 8
mov dword [rbp + 0x2c0], edi
test r14, r14
je 0x1400478a9
cmp r14, 0x7fffffff
ja 0x140048211
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8d, r14d
mov rdx, r12
mov ecx, r13d
call fcn.14011daa4
mov rbx, rax
mov qword [rbp + 0x2c8], rax
shr rax, 0x20
test eax, eax
jne 0x140048205
movsxd rdx, ebx
xor r8d, r8d
lea rcx, [rbp + 0x2d0]
call fcn.140033bd0
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.14011daa4
mov qword [rbp + 0x2c8], rax
shr rax, 0x20
test eax, eax
jne 0x1400481f9
and edi, 0xfffffff7
or edi, 7
mov r8d, 9
lea rdx, str.mmap.txt
lea rcx, [rbp + 0x2d0]
call fcn.140033c60
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], recvfrom
mov byte [rax], r14b
or edi, 0x10
mov rdx, qword [rbp + 0x330]
cmp rdx, 0xf
jbe 0x14004792f
inc rdx
mov rcx, qword [rbp + 0x318]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004792a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140047ac7
call fcn.14011e824
movups xmmword [rbp + 0x318], xmm6
movups xmmword [rbp + 0x328], xmm7
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], socket
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.14011da34
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp + 0x2d0], xmm0
lea r8, [rbp + 0x2d0]
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.140024cb0
or edi, 0x60
mov qword [rbp + 0x338], r14
lea rax, [0x1401690d8]
mov qword [rbp + 0x340], rax
lea rdx, [rbp + 0x338]
lea rcx, [rsp + 0x38]
call fcn.1400262d0
movzx ebx, al
cmp dword [rbp + 0x338], 0
jne 0x1400481e0
lea rcx, [rsp + 0x38]
call fcn.140033b60
test bl, bl
jne 0x140047a21
call fcn.140047050
movzx ebx, al
lea rcx, str.___Dumping_mmap..._n
call fcn.140046170
test bl, bl
jne 0x140047a2d
lea rcx, str.____ERROR:_Could_not_dump_memory_map__n
call fcn.140046170
jmp 0x140047a5f
lea rcx, str.___Dumping_mmap..._n
call fcn.140046170
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.140033b60
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 [0x1401e0110], rax
test rax, rax
jne 0x140047aec
test bl, bl
je 0x140047ace
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.140046170
nop
lea rcx, [rbp + 0x318]
call fcn.140022fc0
jmp 0x140047733
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.140046170
nop
lea rcx, [rbp + 0x318]
call fcn.140022fc0
jmp 0x14004819c
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 [0x1401e0110]
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 [0x1401e0110]
call qword [sym.imp.VMM.dll_VMMDLL_ConfigGet]
test eax, eax
jne 0x140047bb9
lea r8, [rbp + 0x2c0]
movabs rdx, 0x300008200000000
mov rcx, qword [0x1401e0110]
call qword [sym.imp.VMM.dll_VMMDLL_ConfigGet]
test eax, eax
je 0x140047bb9
lea r8, [rbp + 0x2c8]
movabs rdx, 0x300008300000000
mov rcx, qword [0x1401e0110]
call qword [sym.imp.VMM.dll_VMMDLL_ConfigGet]
test eax, eax
je 0x140047bb9
lea rcx, str.____Failed_to_lookup_FPGA_device__Attempting_to_proceed_n_n
jmp 0x140047c73
mov rax, qword [rbp + 0x2c0]
cmp rax, 4
jb 0x140047ce2
cmp rax, 5
jae 0x140047bde
cmp qword [rbp + 0x2c8], 7
jb 0x140047ce2
mov dword [rbp - 0x80], 0xc0fd0002
mov dword [rbp - 0x7c], r14d
movsd xmm0, qword [str.existing]
movsd qword [rbp - 0x78], xmm0
movzx eax, byte [0x140146510]
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 0x140047ca3
lea rcx, str.____Failed_to_create_FPGA_device_n
call fcn.140046170
lea rcx, str.____Could_not_set_FPGA__n
call fcn.140046170
mov rcx, qword [0x1401e0110]
call qword [sym.imp.VMM.dll_VMMDLL_Close]
nop
lea rcx, [rbp + 0x318]
call fcn.140022fc0
jmp 0x14004819c
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [0x140169490]
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.140046170
mov rcx, rbx
call qword [sym.imp.leechcore.dll_LcClose]
mov byte [0x1401e00a0], 1
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
xor r9d, r9d
lea r8, [0x1400475e0]
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, [0x140047650]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
lea rcx, [rbp + 0x318]
call fcn.140022fc0
jmp 0x140047d40
lea rcx, str.___DMA_already_initialized__n
call fcn.140046170
cmp byte [0x1401e00a1], 0
je 0x140047d65
lea rcx, str.___Process_already_initialized__n
call fcn.140046170
nop
mov rcx, rsi
call fcn.140022fc0
mov al, 1
jmp 0x1400481a6
mov rdx, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x140047d72
mov rdx, qword [rsi]
lea rcx, str.____Waiting_for__s_to_start..._n
call fcn.140046170
lea rcx, [0x1401de390]
cmp rcx, rsi
je 0x140047da0
mov rdx, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x140047d97
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
call fcn.140043dc0
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 0x140047de6
mov rdx, qword [rax]
lea r8, [rbp + 0x2c0]
mov rcx, qword [0x1401e0110]
call qword [sym.imp.VMM.dll_VMMDLL_PidGetFromName]
mov ebx, dword [rbp + 0x2c0]
mov rcx, rdi
call fcn.140022fc0
mov dword [0x1401de378], ebx
test ebx, ebx
jne 0x140047e74
lea rcx, [rbp + 0x2d0]
call fcn.140023910
mov rax, qword [rbp + 0x2d0]
mov qword [rbp + 0x2c0], rax
cmp rax, r12
je 0x140047e5c
mov ecx, 1
cmovl ecx, r13d
test cl, cl
jns 0x140047e5c
add rax, 0x3b9aca00
mov qword [rbp + 0x2c0], rax
lea rcx, [rbp + 0x2c0]
call fcn.140024210
jmp 0x140047dc0
mov qword [rbp + 0x2c0], r15
lea rcx, [rbp + 0x2c0]
call fcn.140024210
jmp 0x140047dc0
mov rdx, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x140047e81
mov rdx, qword [rsi]
lea rcx, str.____s_process_found._n
call fcn.140046170
lea rcx, str.____Fixing_CR3..._n
call fcn.140046170
call fcn.140048770
test al, al
jne 0x140047f07
movabs rbx, 0x7ffffffffa0a1eff
nop dword [rax]
lea rcx, [rbp + 0x2d0]
call fcn.140023910
mov rax, qword [rbp + 0x2d0]
mov qword [rbp + 0x2c0], rax
cmp rax, rbx
je 0x140047eeb
mov ecx, 1
cmovl ecx, r13d
test cl, cl
jns 0x140047eeb
add rax, 0x5f5e100
mov qword [rbp + 0x2c0], rax
jmp 0x140047ef2
mov qword [rbp + 0x2c0], r15
lea rcx, [rbp + 0x2c0]
call fcn.140024210
call fcn.140048770
test al, al
je 0x140047eb0
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 0x140047f31
add r8, qword [rax]
mov rdx, qword [rax]
jmp 0x140047f37
add r8, rdi
mov rdx, rdi
lea rcx, [rbp + 0x2f8]
call fcn.1400495d0
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 [0x1401de378]
mov rcx, qword [0x1401e0110]
call qword [sym.imp.VMM.dll_VMMDLL_Map_GetModuleFromNameW]
test eax, eax
jne 0x140047fbe
mov rdx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x140047f8a
mov rdx, qword [rdi]
lea rcx, str.____Couldnt_find_Base_Address_for__s_n
call fcn.140046170
lea rcx, [rbp + 0x2f8]
call fcn.140033b60
nop
mov rcx, rdi
call fcn.140022fc0
mov qword [0x1401de380], r14
lea rcx, str.____Could_not_get_base_address__n
jmp 0x140048196
mov rax, qword [rbp + 0x2d0]
mov rbx, qword [rax]
lea rcx, [rbp + 0x2f8]
call fcn.140033b60
nop
mov rcx, rdi
call fcn.140022fc0
mov qword [0x1401de380], rbx
test rbx, rbx
jne 0x140047ff5
lea rcx, str.____Could_not_get_base_address__n
jmp 0x140048196
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 0x14004801f
add r8, qword [rax]
mov rdx, qword [rax]
jmp 0x140048025
add r8, rdi
mov rdx, rdi
lea rcx, [rbp + 0x2f8]
call fcn.1400495d0
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 [0x1401de378]
mov rcx, qword [0x1401e0110]
call qword [sym.imp.VMM.dll_VMMDLL_Map_GetModuleFromNameW]
lea rcx, [rbp + 0x2f8]
test eax, eax
je 0x14004817a
mov rax, qword [rbp + 0x2d0]
mov ebx, dword [rax + 0x10]
call fcn.140033b60
nop
mov rcx, rdi
call fcn.140022fc0
mov qword [0x1401de388], rbx
test rbx, rbx
je 0x14004818f
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.140037d30
lea rdx, [0x140037f00]
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 [0x1401e00a1], 1
mov ecx, recvfrom
call fcn.14011e4d0
lea rcx, [0x1401e00f8]
mov qword [rax], rcx
lea rcx, [0x140048490]
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, [0x140024300]
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 0x140048167
cmp dword [rbp + 0x358], 0
je 0x14004815b
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 0x14004815b
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x350], xmm0
mov rcx, rsi
call fcn.140022fc0
mov al, 1
jmp 0x1400481a6
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.140033b60
nop
mov rcx, rdi
call fcn.140022fc0
mov qword [0x1401de388], r14
lea rcx, str.____Could_not_get_base_size__n
call fcn.140046170
nop
mov rcx, rsi
call fcn.140022fc0
xor al, al
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.14011e4b0
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.140046cb0
nop
mov ecx, dword [rbp + 0x2cc]
call fcn.140024ba0
int3
mov ecx, dword [rbp + 0x2cc]
call fcn.140024ba0
int3
call fcn.1400248c0
int3