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

Disassembly:
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x3640
call fcn.140004880
sub rsp, rax
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov qword [rsp + 0x3670], rbx
mov qword [rsp + 0x3678], rbp
mov qword [rsp + 0x3680], rsi
mov rax, qword [0x140008030]
xor rax, rsp
mov qword [rsp + 0x3630], rax
lea r8, [rsp + 0x48]
mov edx, 0x1000
lea rcx, [rsp + 0x1a0]
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x140001b45
mov r14d, dword [rsp + 0x48]
shr r14d, 2
mov dword [rsp + 0x30], r14d
xor ebx, ebx
mov r15d, ebx
mov dword [rsp + 0x34], ebx
test r14d, r14d
je 0x140001b45
lea r13, [rsp + 0x1a0]
mov qword [rsp + 0x40], r13
nop dword [rax]
mov esi, ebx
mov r8d, dword [r13]
xor edx, edx
mov ecx, 0x410
call qword [0x140056ae0]
mov rbp, rax
test rax, rax
jne 0x14000159e
lea rdx, str.Failed_to_get_handle_to_the_current_process
mov rcx, qword [sym.imp.MSVCP90.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002e90
mov rcx, rax
mov rdx, qword [sym.imp.MSVCP90.dll_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_]
call qword [sym.imp.MSVCP90.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 dword [rsp + 0x20], 3
lea r9, [rsp + 0x38]
mov r8d, 0x2000
lea rdx, [rsp + 0x11a0]
mov rcx, rbp
call sub.PSAPI.DLL_EnumProcessModulesEx
test eax, eax
jne 0x1400015ce
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x38]
shr eax, 3
mov rdi, rbx
mov r12d, eax
test eax, eax
jle 0x140001aec
mov r15d, 0x2e
lea r14d, [r15 + 0x46]
lea r13d, [r15 + 0x3f]
mov r9d, 0x104
lea r8, [rsp + 0x3210]
mov rdx, qword [rsp + rdi*8 + 0x11a0]
mov rcx, rbp
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x1400016bb
lea rbx, [rsp + 0x3210]
movzx ecx, word [rsp + 0x3210]
test cx, cx
je 0x14000164b
nop dword [rax]
movzx ecx, cx
call qword [sym.imp.MSVCR90.dll_tolower]
mov word [rbx], ax
add rbx, 2
movzx eax, word [rbx]
mov cx, ax
test ax, ax
jne 0x140001630
xor eax, eax
mov word [rbx], ax
mov word [rsp + 0x31a0], r15w
mov word [rsp + 0x31a2], r14w
mov word [rsp + 0x31a4], r13w
mov eax, WSAStartup
mov word [rsp + 0x31a6], ax
xor ebx, ebx
mov word [rsp + 0x31a8], bx
lea rdx, [rsp + 0x31a0]
lea rcx, [rsp + 0x3210]
call qword [sym.imp.MSVCR90.dll_wcsstr]
test rax, rax
je 0x1400016bb
mov rcx, rbx
movzx eax, word [rsp + rcx + 0x3210]
mov word [rsp + rcx + 0x3420], ax
add rcx, 2
test ax, ax
jne 0x1400016a0
inc esi
inc rdi
cmp rdi, r12
jl 0x1400015f1
mov r15d, dword [rsp + 0x34]
mov r13, qword [rsp + 0x40]
mov r14d, dword [rsp + 0x30]
cmp esi, 1
jne 0x140001aec
mov dword [rsp + 0x20], esi
lea r9d, [rsi + 0x3f]
lea r8d, [rsi + 0x23]
lea rdx, [rsp + 0x3420]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_ifstream_char__struct_std::char_traits_char__::constructor_wchar_t_const____ptr64__int__int____ptr64]
nop
cmp qword [rsp + 0x138], 0
je 0x140001ade
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
test byte [rsp + rcx + 0xb0], 6
jne 0x140001b28
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.MSVCP90.dll_public:_class_std::fpos_int____cdecl_std::basic_istream_char__struct_std::char_traits_char__::tellg_void____ptr64]
movsxd rcx, dword [rsp + 0x58]
add rcx, qword [rsp + 0x50]
call fcn.140003d68
mov r13, rax
test rax, rax
je 0x140001b09
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xa0]
call qword [sym.imp.MSVCP90.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]
movsxd r8, dword [rsp + 0x58]
add r8, qword [rsp + 0x50]
mov rdx, r13
lea rcx, [rsp + 0xa0]
call qword [sym.imp.MSVCP90.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]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_ifstream_char__struct_std::char_traits_char__::close_void____ptr64]
movsxd r11, dword [r13 + 0x3c]
lea r12, [r11 + r13]
mov eax, 0x8664
cmp word [r12 + 4], ax
jne 0x140001ad1
cmp dword [r12 + 0x94], 0
je 0x140001ad1
mov edx, dword [r12 + 0x90]
mov rcx, r12
call fcn.140001450
mov r14d, eax
add r14, r13
lea rcx, [rsp + 0x31e0]
lea rdx, [0x140000000]
mov rax, qword [rdx + 0x58e8]
mov qword [rcx], rax
mov rax, qword [rdx + 0x58f0]
mov qword [rcx + 8], rax
movzx eax, word [rdx + 0x58f8]
mov word [rcx + 0x10], ax
movzx eax, byte [rdx + 0x58fa]
mov byte [rcx + 0x12], al
lea rcx, [rsp + 0x31b0]
mov rax, qword [rdx + 0x5900]
mov qword [rcx], rax
movzx eax, word [rdx + 0x5908]
mov word [rcx + 8], ax
lea rcx, [rsp + 0x31d0]
mov rax, qword [rdx + 0x5910]
mov qword [rcx], rax
mov eax, dword [rdx + 0x5918]
mov dword [rcx + 8], eax
movzx eax, word [rdx + 0x591c]
mov word [rcx + 0xc], ax
lea rcx, [rsp + 0x31c0]
mov rax, qword [rdx + 0x5920]
mov qword [rcx], rax
movzx eax, word [rdx + 0x5928]
mov word [rcx + 8], ax
movzx eax, byte [rdx + 0x592a]
mov byte [rcx + 0xa], al
lea rcx, [rsp + 0x31f8]
mov rax, qword [rdx + 0x5930]
mov qword [rcx], rax
mov rax, qword [rdx + 0x5938]
mov qword [rcx + 8], rax
mov rax, qword [rdx + 0x5940]
mov qword [rcx + 0x10], rax
lea rax, [rsp + 0x31e0]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x31b0]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x31d0]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x31c0]
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x31f8]
mov qword [rsp + 0x88], rax
mov edi, ebx
cmp dword [r14 + 0xc], 0
je 0x140001acc
movzx eax, word [r12 + 0x14]
lea r10, [rax + r12 + 0x18]
xor r15d, r15d
mov r8d, dword [r14]
cmp r8d, dword [r10 + 0x14]
jb 0x14000196f
movzx ecx, r15w
movzx r11d, word [r12 + 6]
cmp r15w, r11w
jae 0x14000196c
nop dword [rax]
movzx eax, cx
lea rdx, [rax + rax*4]
mov eax, dword [r10 + rdx*8 + 0x10]
test eax, eax
jne 0x140001935
mov eax, dword [r10 + rdx*8 + 8]
mov r9d, dword [r10 + rdx*8 + 0xc]
cmp r8d, r9d
jb 0x140001947
add eax, r9d
cmp r8d, eax
jb 0x140001952
inc cx
cmp cx, r11w
jae 0x14000196c
jmp 0x140001920
movzx eax, cx
lea rcx, [rax + rax*4]
mov eax, dword [r10 + rcx*8 + 0x14]
test eax, eax
je 0x14000196f
sub eax, dword [r10 + rcx*8 + 0xc]
add r8d, eax
jmp 0x14000196f
mov r8d, r15d
mov esi, r8d
add rsi, r13
mov r9d, dword [r14 + 0x10]
cmp r9d, dword [r10 + 0x14]
jb 0x1400019c0
movzx ecx, r15w
movzx r11d, word [r12 + 6]
cmp r15w, r11w
jae 0x1400019c0
nop
movzx eax, cx
lea rdx, [rax + rax*4]
mov eax, dword [r10 + rdx*8 + 0x10]
test eax, eax
jne 0x1400019a5
mov eax, dword [r10 + rdx*8 + 8]
mov r8d, dword [r10 + rdx*8 + 0xc]
cmp r9d, r8d
jb 0x1400019b7
add eax, r8d
cmp r9d, eax
jb 0x1400019c0
inc cx
cmp cx, r11w
jb 0x140001990
cmp qword [rsi], r15
je 0x140001a90
mov ebp, dword [r10 + 0x14]
nop dword [rax]
mov r8d, dword [rsi]
cmp r8d, ebp
jb 0x140001a3f
movzx ecx, r15w
movzx r11d, word [r12 + 6]
cmp r15w, r11w
jae 0x140001a3c
nop dword [rax + rax]
movzx eax, cx
lea rdx, [rax + rax*4]
mov eax, dword [r10 + rdx*8 + 0x10]
test eax, eax
jne 0x140001a05
mov eax, dword [r10 + rdx*8 + 8]
mov r9d, dword [r10 + rdx*8 + 0xc]
cmp r8d, r9d
jb 0x140001a17
add eax, r9d
cmp r8d, eax
jb 0x140001a22
inc cx
cmp cx, r11w
jae 0x140001a3c
jmp 0x1400019f0
movzx eax, cx
lea rcx, [rax + rax*4]
mov eax, dword [r10 + rcx*8 + 0x14]
test eax, eax
je 0x140001a3f
sub eax, dword [r10 + rcx*8 + 0xc]
add r8d, eax
jmp 0x140001a3f
mov r8d, r15d
mov ebx, r8d
add rbx, r13
add rbx, 2
lea r9, [rsp + 0x68]
mov r11d, 5
mov rax, rbx
mov r8, qword [r9]
sub r8, rbx
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140001a73
inc rax
test ecx, ecx
jne 0x140001a60
test edx, edx
jne 0x140001a79
inc edi
add r9, 8
sub r11, 1
jne 0x140001a54
add rsi, 8
cmp qword [rsi], r15
jne 0x1400019d0
add r14, 0x14
cmp dword [r14 + 0xc], r15d
jne 0x140001900
mov r15d, dword [rsp + 0x34]
cmp edi, 5
jne 0x140001ac5
lea rcx, [0x140056e00]
call fcn.1400011a0
mov dword [0x140056e28], 0x64
mov r14d, dword [rsp + 0x30]
jmp 0x140001ad1
mov r14d, dword [rsp + 0x30]
jmp 0x140001ad1
mov r14d, dword [rsp + 0x30]
mov rcx, r13
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
mov r13, qword [rsp + 0x40]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_ifstream_char__struct_std::char_traits_char__::vbase_dtor_void____ptr64]
inc r15d
mov dword [rsp + 0x34], r15d
add r13, 4
mov qword [rsp + 0x40], r13
cmp r15d, r14d
jae 0x140001b45
xor ebx, ebx
jmp 0x140001560
lea rcx, [rsp + 0xa0]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_ifstream_char__struct_std::char_traits_char__::close_void____ptr64]
nop
lea rcx, [rsp + 0xa0]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_ifstream_char__struct_std::char_traits_char__::vbase_dtor_void____ptr64]
jmp 0x140001b45
lea rcx, [rsp + 0xa0]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_ifstream_char__struct_std::char_traits_char__::close_void____ptr64]
nop
lea rcx, [rsp + 0xa0]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_ifstream_char__struct_std::char_traits_char__::vbase_dtor_void____ptr64]
mov rcx, qword [rsp + 0x3630]
xor rcx, rsp
call fcn.140003dc0
lea r11, [rsp + 0x3640]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret