Function at 0x42f650
Capabilities:
Enumerate process modules
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x5e8
movaps xmmword [rsp + 0x5d0], xmm6
mov rsi, rdx
mov rbp, rcx
mov rax, qword [rcx]
cmp byte [rax], 0
jne 0x42f687
mov rcx, qword [rbp + 8]
cmp qword [rcx], 0x64
ja 0x42fbba
mov byte [rsp + 0x4e], 0
mov byte [rsp + 0x4f], 0
mov rbx, qword [rbp + 0x10]
mov r14, qword [rbp + 0x18]
mov rdi, qword [rbp + 0x20]
lea rcx, [rsp + 0x4e]
mov qword [rsp + 0x130], rcx
mov qword [rsp + 0x138], rax
mov qword [rsp + 0x140], rbx
lea rax, [rsp + 0x4f]
mov qword [rsp + 0x148], rax
mov qword [rsp + 0x150], r14
mov qword [rsp + 0x158], rdi
mov rax, qword [rsi + 8]
xor ecx, ecx
sub rax, 1
cmovae rcx, rax
mov qword [rsp + 0x160], rsi
mov qword [rsp + 0x128], rcx
lea rax, [rsp + 0x130]
mov qword [rsp + 0x180], rax
lea rax, [0x00438580]
mov qword [rsp + 0x188], rax
cmp qword [0x0043d130], 0
jne 0x42fb9e
mov rcx, qword [0x0043d0c0]
test rcx, rcx
jne 0x42f746
call sub.KERNEL32.DLL_GetProcessHeap
test rax, rax
je 0x42fc67
mov rcx, rax
mov qword [0x0043d0c0], rax
mov r8d, 0x3c0
xor edx, edx
call sub.KERNEL32.DLL_HeapAlloc
test rax, rax
je 0x42fc67
mov qword [rsp + 0x168], rax
movaps xmm0, xmmword [0x00435180]
movups xmmword [rsp + 0x170], xmm0
mov qword [rsp + 0x50], 8
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov ecx, 8
xor edx, edx
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
cmp rax, 0xffffffffffffffff
je 0x42fb47
mov r13, rax
mov qword [rsp + 0x108], rbp
mov qword [rsp + 0x110], rbx
mov qword [rsp + 0x118], rdi
mov qword [rsp + 0x120], r14
lea rbp, [rsp + 0x190]
mov r8d, 0x438
mov rcx, rbp
xor edx, edx
call sub.msvcrt.dll_memset
mov dword [rsp + 0x190], 0x438
mov rcx, r13
mov rdx, rbp
call sub.KERNEL32.DLL_Module32FirstW
cmp eax, 1
jne 0x42fb1f
lea rbx, [rsp + 0x3c0]
lea r12, [rsp + 0x5c8]
mov eax, 8
mov qword [rsp + 0x70], rax
lea rdi, [rsp + 0x88]
xor eax, eax
mov qword [rsp + 0x78], rax
movaps xmm6, xmmword [0x00435190]
jmp 0x42f899
mov rbp, qword [rsp + 0x70]
imul rax, rdx, 0x38
mov rcx, qword [rsp + 0xb0]
mov qword [rbp + rax + 0x30], rcx
movups xmm0, xmmword [rsp + 0x80]
movups xmm1, xmmword [rsp + 0x90]
movups xmm2, xmmword [rsp + 0xa0]
movups xmmword [rbp + rax + 0x20], xmm2
movups xmmword [rbp + rax + 0x10], xmm1
mov qword [rsp + 0x70], rbp
movups xmmword [rbp + rax], xmm0
add rdx, 1
mov rax, rdx
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x60], rdx
nop dword [rax]
mov rcx, r13
lea rdx, [rsp + 0x190]
call sub.KERNEL32.DLL_Module32NextW
cmp eax, 1
jne 0x42fb1f
xor r8d, r8d
nop dword [rax]
cmp word [rsp + r8*2 + 0x3c0], 0
je 0x42f900
lea rax, [rsp + r8*2]
add rax, 0x3c0
cmp word [rax + 2], 0
je 0x42f8e7
cmp word [rax + 4], 0
je 0x42f8ed
cmp word [rax + 6], 0
je 0x42f8f3
cmp word [rax + 8], 0
je 0x42f8f9
add r8, 5
add rax, 0xa
cmp rax, r12
jne 0x42f8a0
mov r8d, 0x104
jmp 0x42f900
add r8, 1
jmp 0x42f900
add r8, 2
jmp 0x42f900
add r8, 3
jmp 0x42f900
add r8, 4
nop dword [rax]
lea rcx, [rsp + 0xb8]
mov rdx, rbx
call fcn.00416160
mov rbp, qword [rsp + 0xb8]
mov r14, qword [rsp + 0xc8]
lea rcx, [rsp + 0x80]
mov rdx, rbp
mov r8, r14
call fcn.004171e0
cmp qword [rsp + 0x80], 0
je 0x42f9d5
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0xe0], rax
movups xmm0, xmmword [rdi]
movaps xmmword [rsp + 0xd0], xmm0
mov r15, qword [rsp + 0xd8]
cmp rax, 0x40
jb 0x42f9c0
test r15, r15
je 0x42f9c0
movzx ecx, word [r15]
cmp ecx, 0x5a4d
jne 0x42f9c0
mov ecx, dword [r15 + 0x3c]
mov rdx, rax
sub rdx, rcx
jb 0x42f9c0
cmp rdx, 0x88
jb 0x42f9c0
cmp dword [r15 + rcx], 0x4550
jne 0x42f9c0
movzx edx, word [r15 + rcx + 0x18]
cmp edx, 0x20b
jne 0x42f9c0
movzx r8d, word [r15 + rcx + 0x14]
sub r8, 0x70
jae 0x42f9fa
nop word cs:[rax + rax]
nop dword [rax + rax]
mov rcx, r15
call sub.KERNEL32.DLL_UnmapViewOfFile
mov rcx, qword [rsp + 0xd0]
call sub.KERNEL32.DLL_CloseHandle
cmp qword [rsp + 0xc0], 0
je 0x42f880
mov rcx, qword [0x0043d0c0]
xor edx, edx
mov r8, rbp
call sub.KERNEL32.DLL_HeapFree
jmp 0x42f880
lea rdx, [rcx + 0x88]
sub rax, rdx
jb 0x42f9c0
cmp rax, r8
jb 0x42f9c0
mov eax, dword [r15 + rcx + 0x84]
shl rax, 3
cmp r8, rax
jb 0x42f9c0
mov rax, qword [r15 + rcx + 0x30]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x90], rax
movups xmm0, xmmword [rsp + 0xb8]
movaps xmmword [rsp + 0x80], xmm0
mov ecx, 0x10
call fcn.00401560
test rax, rax
je 0x42fc78
mov ecx, dword [rsp + 0x1b0]
mov rdx, qword [rsp + 0x68]
mov qword [rax], rdx
mov qword [rax + 8], rcx
mov rcx, qword [rsp + 0xc0]
mov qword [rsp + 0xf0], rcx
mov qword [rsp + 0xf8], rax
mov rcx, r15
call sub.KERNEL32.DLL_UnmapViewOfFile
mov rcx, qword [rsp + 0xd0]
call sub.KERNEL32.DLL_CloseHandle
mov rax, qword [rsp + 0x100]
sub rax, qword [rsp + 0x68]
mov qword [rsp + 0x80], rbp
mov rcx, qword [rsp + 0xf0]
mov qword [rsp + 0x88], rcx
mov qword [rsp + 0x90], r14
mov rcx, qword [rsp + 0xf8]
mov qword [rsp + 0x98], rcx
movups xmmword [rsp + 0xa0], xmm6
mov qword [rsp + 0xb0], rax
mov rdx, qword [rsp + 0x78]
cmp rdx, qword [rsp + 0x58]
jne 0x42f826
lea rcx, [rsp + 0x50]
call fcn.004179d0
mov rbp, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x60]
jmp 0x42f82b
mov rcx, r13
call sub.KERNEL32.DLL_CloseHandle
mov r14, qword [rsp + 0x120]
mov rdi, qword [rsp + 0x118]
mov rbx, qword [rsp + 0x110]
mov rbp, qword [rsp + 0x108]
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x1a0], rax
movups xmm0, xmmword [rsp + 0x50]
movups xmm1, xmmword [rsp + 0x168]
movups xmmword [rsp + 0x1a8], xmm1
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x1b8], rax
movups xmmword [0x0043d130], xmm0
movaps xmm0, xmmword [rsp + 0x1a0]
movups xmmword [0x0043d140], xmm0
movaps xmm0, xmmword [rsp + 0x1b0]
movups xmmword [0x0043d150], xmm0
lea rcx, [rsp + 0x128]
lea rdx, [rsp + 0x180]
call fcn.00417c80
cmp byte [rsp + 0x4f], 0
je 0x42fbc1
xor ecx, ecx
jmp 0x42fc49
cmp byte [rsp + 0x4e], 0
jne 0x42fc3a
cmp byte [rbx], 0
je 0x42fc3a
mov qword [rsp + 0x130], rdi
mov qword [rsp + 0x138], 0
mov rdx, qword [rsi + 8]
mov qword [rsp + 0x1a0], 4
mov qword [rsp + 0x80], 2
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x130]
lea r8, [rsp + 0x190]
lea r9, [rsp + 0x80]
call fcn.0042de30
mov byte [r14], al
mov rax, qword [rsp + 0x130]
add qword [rax + 8], 1
mov rax, qword [rbp + 8]
add qword [rax], 1
cmp byte [r14], 0
sete cl
mov eax, ecx
movaps xmm6, xmmword [rsp + 0x5d0]
add rsp, 0x5e8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 0x3c0
mov edx, 8
call fcn.004018d0
ud2
mov ecx, 0x10
mov edx, 8
call fcn.004018d0
ud2