Function at 0x140049bf0
Capabilities:
Enumerate pe sections
Enumerate process modules
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x6e0
xor r13d, r13d
mov dword [rsp + 0x720], r13d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
xor edx, edx
mov ecx, 0x438
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14004a22e
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0x2d0]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x730], 0
mov dword [rsp + 0x20], 2
lea r9, [rsp + 0x730]
mov r8d, 0x400
lea rdx, [rsp + 0x2d0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModulesEx]
test eax, eax
jne 0x140049c8e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14004a22e
mov eax, dword [rsp + 0x730]
shr eax, 3
mov dword [rsp + 0x50], eax
xor r15d, r15d
mov dword [rsp + 0x728], r15d
mov rcx, rsi
cmp r15d, eax
jge 0x14004a227
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x88], xmm0
mov qword [rsp + 0x98], rax
movsxd rax, r15d
lea r12, [rsp + 0x2d0]
lea r12, [r12 + rax*8]
mov qword [rsp + 0x58], r12
mov r9d, Ordinal_26
lea r8, [rsp + 0x88]
mov rdx, qword [r12]
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
test eax, eax
je 0x14004a21b
mov ecx, dword [rsp + 0x90]
call fcn.1400e751c
mov rbx, rax
mov qword [rsp + 0x1b0], rax
mov qword [rsp + 0x80], 0
mov r9d, dword [rsp + 0x90]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r8, rbx
mov rdx, qword [r12]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x140049d5c
mov rcx, rbx
call fcn.1400e7410
inc r15d
mov eax, dword [rsp + 0x50]
jmp 0x140049c9f
movsxd rcx, dword [rbx + 0x3c]
add rcx, rbx
jne 0x140049d79
mov rcx, rbx
call fcn.1400e7410
inc r15d
mov eax, dword [rsp + 0x50]
jmp 0x140049c9f
movzx r14d, word [rcx + 6]
mov dword [rsp + 0x738], r14d
movzx edi, word [rcx + 0x14]
add rcx, 0x18
add rdi, rcx
mov qword [rsp + 0x40], rdi
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x1c0]
call sub.VCRUNTIME140.dll_memset
mov r9d, 0x104
lea r8, [rsp + 0x1c0]
mov rdx, qword [r12]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExA]
test eax, eax
jne 0x140049dde
mov rcx, rbx
call fcn.1400e7410
inc r15d
mov eax, dword [rsp + 0x50]
jmp 0x140049c9f
lea rax, [0x14010e570]
mov qword [rsp + 0xa0], rax
lea rcx, [rsp + 0x150]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
or r13d, 1
mov dword [rsp + 0x720], r13d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0xa0], rax
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x9c], edx
lea rcx, [rsp + 0xb0]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rsp + 0xb0], rax
mov byte [rsp + 0x12c], 0
mov byte [rsp + 0x121], 0
lea rcx, [rsp + 0xb0]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
xor ecx, ecx
mov qword [rsp + 0x130], rcx
mov rax, qword [0x1401b5ec0]
mov qword [rsp + 0x124], rax
mov qword [rsp + 0x118], rcx
mov r8d, reloc.WLDAP32.dll_Ordinal_33
lea rdx, [rsp + 0x1c0]
lea rcx, [rsp + 0xb0]
call fcn.1400714e0
test rax, rax
jne 0x140049efb
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0xa0]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0xa0]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
test al, al
je 0x140049f8e
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0xa0], rax
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x9c], edx
lea rcx, [rsp + 0xb0]
call fcn.14006bb00
lea rcx, [rsp + 0xb8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0x150]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rcx, rbx
call fcn.1400e7410
inc r15d
mov eax, dword [rsp + 0x50]
jmp 0x140049c9f
xor eax, eax
mov dword [rsp + 0x38], eax
cmp eax, r14d
jge 0x14004a19b
xor ecx, ecx
lea rdx, str..text
nop word [rax + rax]
movzx eax, byte [rdi + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x14004a187
cmp rcx, 6
jne 0x140049fb0
mov r14d, dword [rdi + 0xc]
add r14, rbx
mov r15d, dword [rdi + 0x10]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
xor r13d, r13d
mov qword [rsp + 0x78], r13
test r15, r15
je 0x14004a005
mov r8d, r15d
mov edx, 0xffffffe9
mov rcx, r14
call sub.VCRUNTIME140.dll_memchr
mov rdi, rax
test rax, rax
je 0x14004a005
sub rdi, r14
jmp 0x14004a00c
mov rdi, 0xffffffffffffffff
mov rsi, qword [rsp + 0x70]
cmp rdi, 0xffffffffffffffff
je 0x14004a087
lea rcx, [rdi + r14]
sub ecx, ebx
add rcx, qword [r12]
mov qword [rsp + 0x48], rcx
cmp rsi, r13
je 0x14004a039
mov qword [rsi], rcx
add rsi, 8
mov qword [rsp + 0x70], rsi
jmp 0x14004a055
lea r8, [rsp + 0x48]
mov rdx, rsi
lea rcx, [rsp + 0x68]
call fcn.14007af00
mov r13, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x70]
inc rdi
cmp rdi, r15
jae 0x14004a07e
mov r8, r15
sub r8, rdi
lea rcx, [r14 + rdi]
mov edx, 0xffffffe9
call sub.VCRUNTIME140.dll_memchr
mov rdi, rax
test rax, rax
je 0x14004a07e
sub rdi, r14
jmp 0x14004a011
mov rdi, 0xffffffffffffffff
jmp 0x14004a011
mov r12, qword [rsp + 0x68]
mov rdi, r12
nop
cmp rdi, rsi
je 0x14004a135
mov r15, qword [rdi]
mov ecx, r15d
mov rax, qword [rsp + 0x58]
sub ecx, dword [rax]
mov r14d, ecx
mov rax, qword [rsp + 0x40]
sub ecx, dword [rax + 0xc]
mov edx, dword [rax + 0x14]
add edx, ecx
xor r8d, r8d
lea rcx, [rsp + 0xa0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int____ptr64]
xor eax, eax
mov dword [rsp + 0x30], eax
mov byte [rsp + 0x34], al
mov r8d, 5
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::read_char____ptr64__long_long___int64_____ptr64]
mov eax, dword [r14 + rbx]
cmp eax, dword [rsp + 0x30]
jne 0x14004a100
movzx eax, byte [r14 + rbx + 4]
cmp al, byte [rsp + 0x34]
je 0x14004a12c
mov qword [rsp + 0x48], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 5
lea r8, [rsp + 0x30]
mov rdx, r15
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
add rdi, 8
jmp 0x14004a090
test r12, r12
je 0x14004a175
sub r13, r12
and r13, 0xfffffffffffffff8
mov rax, r12
cmp r13, 0x1000
jb 0x14004a16a
add r13, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004a16a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, r13
mov rcx, r12
call fcn.1400e7410
mov r14d, dword [rsp + 0x738]
mov r12, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x40]
mov eax, dword [rsp + 0x38]
inc eax
add rdi, 0x28
mov qword [rsp + 0x40], rdi
jmp 0x140049f90
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0xa0], rax
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x9c], edx
lea rcx, [rsp + 0xb0]
call fcn.14006bb00
lea rcx, [rsp + 0xb8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0x150]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
test rbx, rbx
je 0x14004a206
mov rcx, rbx
call fcn.1400e7410
mov r13d, dword [rsp + 0x720]
mov r15d, dword [rsp + 0x728]
mov rsi, qword [rsp + 0x60]
inc r15d
mov eax, dword [rsp + 0x50]
jmp 0x140049c9f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
add rsp, 0x6e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret