Function at 0x1400d7490
Capabilities:
Enumerate process modules
Parse pe header

Disassembly:
push rbp
push r15
lea rbp, [rsp - 0x418]
sub rsp, 0x518
mov rax, qword [0x1406fe698]
xor rax, rsp
mov qword [rbp + 0x3f8], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov ecx, 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
xor edx, edx
lea rcx, [rsp + 0x74]
mov r8d, 0x434
mov r15, rax
call fcn.140137f50
mov dword [rsp + 0x70], 0x438
call fcn.1400bf890
lea rdx, [rsp + 0x70]
mov qword [0x14070a850], rax
mov rcx, r15
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x1400d77f9
mov qword [rsp + 0x538], rsi
mov qword [rsp + 0x540], rdi
mov qword [rsp + 0x510], r12
mov r12d, 0x5a4d
mov qword [rsp + 0x508], r13
movabs r13, 0x2492492492492493
mov qword [rsp + 0x500], r14
mov qword [rsp + 0x530], rbx
nop dword [rax]
nop dword [rax + rax]
xor edx, edx
lea rcx, [rbp + 0x1a0]
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
xorps xmm0, xmm0
mov r14, rax
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
test rax, rax
je 0x1400d77ab
mov rcx, qword [rbp - 0x78]
lea rdx, [rsp + 0x30]
mov r8d, Ordinal_50
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp rax, 0x30
jne 0x1400d77ab
cmp dword [rsp + 0x50], 0x1000
jne 0x1400d77ab
call fcn.1400bfb90
lea rcx, [0x14042451c]
mov rbx, rax
call fcn.1400bff20
mov r8, rax
lea rdx, [0x1404230a0]
mov rcx, rbx
call fcn.1400c0380
mov rcx, qword [rbp - 0x78]
call fcn.1400be6a0
mov r8, rax
lea rdx, str.image_addr
mov rcx, rbx
call fcn.1400c0380
mov ecx, dword [rbp - 0x70]
call fcn.1400bf880
mov r8, rax
lea rdx, str.image_size
mov rcx, rbx
call fcn.1400c0380
lea rcx, [rbp + 0x1a0]
call fcn.1400beb40
mov r8, rax
lea rdx, str.code_file
mov rcx, rbx
call fcn.1400c0380
mov rsi, qword [rbp - 0x78]
test rsi, rsi
je 0x1400d779c
cmp word [rsi], r12w
jne 0x1400d779c
movsxd rdi, dword [rsi + 0x3c]
add rdi, rsi
cmp dword [rdi], 0x4550
jne 0x1400d779c
mov eax, dword [rdi + 0x50]
lea r8, str._08x_X
mov r9d, dword [rdi + 8]
lea rcx, [rbp + 0x3c0]
mov edx, reloc.WLDAP32.dll_Ordinal_50
mov dword [rsp + 0x20], eax
call fcn.1400c05b0
lea rcx, [rbp + 0x3c0]
call fcn.1400bff20
mov r8, rax
lea rdx, str.code_id
mov rcx, rbx
call fcn.1400c0380
mov r8, qword [rdi + 0xb8]
mov r9d, r8d
test r8d, r8d
je 0x1400d779c
shr r8, 0x20
mov rax, r13
mul r8
mov rax, r8
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 4
imul rcx, rax, 0x1c
cmp r8, rcx
jne 0x1400d779c
test r8, r8
je 0x1400d779c
lea rax, [rsi + 0x14]
mov rdx, 0xffffffffffffffec
add rax, r9
sub rdx, r9
sub rdx, rsi
nop dword [rax]
cmp dword [rax - 8], 2
jne 0x1400d7703
mov edi, dword [rax]
add rdi, rsi
cmp dword [rdi], 0x53445352
je 0x1400d7715
add rax, 0x1c
lea rcx, [rdx + rax]
cmp rcx, r8
jb 0x1400d76f0
jmp 0x1400d779c
lea rcx, [rdi + 0x18]
call fcn.1400bff20
mov r8, rax
lea rdx, str.debug_file
mov rcx, rbx
call fcn.1400c0380
lea rdx, [rdi + 4]
lea rcx, [rsp + 0x60]
call fcn.1400c38b0
lea rdx, [rbp + 0x3c0]
lea rcx, [rbp + 0x3b0]
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x3b0], xmm0
call fcn.1400c3950
mov byte [rbp + 0x3e4], reloc.WLDAP32.dll_Ordinal_45
lea r8, [0x14042450c]
mov r9d, dword [rdi + 0x14]
lea rcx, [rbp + 0x3e5]
mov edx, 0xa
call fcn.1400c05b0
lea rcx, [rbp + 0x3c0]
call fcn.1400bff20
mov r8, rax
lea rdx, str.debug_id
mov rcx, rbx
call fcn.1400c0380
mov rcx, qword [0x14070a850]
mov rdx, rbx
call fcn.1400bef80
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rdx, [rsp + 0x70]
mov rcx, r15
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x1400d7550
mov r14, qword [rsp + 0x500]
mov r13, qword [rsp + 0x508]
mov r12, qword [rsp + 0x510]
mov rdi, qword [rsp + 0x540]
mov rsi, qword [rsp + 0x538]
mov rbx, qword [rsp + 0x530]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14070a850]
call fcn.1400bf170
mov rcx, qword [rbp + 0x3f8]
xor rcx, rsp
call fcn.140134a90
add rsp, 0x518
pop r15
pop rbp
ret