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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17fa0]
mov eax, 0x180a0
call fcn.18005f3d0
sub rsp, rax
mov rax, qword [0x180080920]
xor rax, rsp
mov qword [rbp + 0x17f90], rax
mov edi, r8d
mov dword [rsp + 0x38], 0
mov rbx, rdx
mov qword [rsp + 0x40], rdi
mov r12, rcx
xor edx, edx
mov r8d, 0x10000
lea rcx, [rbp + 0x7c70]
call fcn.18004c900
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x7d00
call fcn.18004c900
xor r14d, r14d
mov rdx, rbx
mov byte [rsp + 0x30], r14b
mov rcx, r12
test edi, edi
je 0x180032016
mov r9d, edi
mov r8b, 1
call fcn.180031a40
mov qword [rsp + 0x48], rax
jmp 0x180032046
xor r9d, r9d
xor r8d, r8d
call fcn.180031a40
mov qword [rsp + 0x40], rax
cmp eax, 0x3e8
jae 0x180032394
mov r9d, eax
mov r8b, 1
mov rdx, rbx
mov rcx, r12
call fcn.180031a40
mov dword [rsp + 0x48], eax
test r12, r12
jne 0x180032060
mov r12, qword [0x180082d08]
test r12, r12
jne 0x180032060
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r12, rax
lea r9, [rsp + 0x38]
mov r8d, 0x10000
lea rdx, [rbp + 0x7c70]
mov rcx, r12
call qword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x18003238f
mov r13d, 1
mov ecx, r13d
mov dword [rsp + 0x34], ecx
mov r15d, ecx
mov rbx, qword [rbp + r15*8 + 0x7c70]
test rbx, rbx
je 0x180032327
xor edx, edx
lea rcx, [rbp + 0x17c70]
mov r8d, 0x104
xor sil, sil
call fcn.18004c900
mov r9d, 0x104
lea r8, [rbp + 0x17c70]
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
lea rcx, [rbp + 0x17c70]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rcx, [rbp + 0x17c70]
test rax, rax
jne 0x1800321fa
xor edx, edx
mov r8d, 0x104
call fcn.18004c900
mov rdx, qword [rbp + r15*8 + 0x7c70]
lea r8, [rbp + 0x17c70]
mov r9d, 0x104
mov rcx, r12
call qword [sym.imp.PSAPI.DLL_GetModuleBaseNameA]
lea rcx, [rbp + 0x17c70]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x1800321f3
cmp byte [0x180082c9e], sil
je 0x180032174
lea rcx, [rbp + 0x17c70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x180032222
mov rcx, qword [rbp + r15*8 + 0x7c70]
mov edx, r15d
shl rdx, 5
mov qword [rsp + rdx + 0x70], rcx
mov qword [rsp + rdx + 0x78], rax
mov qword [rbp + rdx - 0x80], r13
jmp 0x180032222
xor edx, edx
lea rcx, [rbp + 0x17d80]
mov r8d, 0x208
call fcn.18004c900
test r12, r12
je 0x180032222
lea rax, [rbp + 0x17d80]
mov dword [rsp + 0x28], 0x104
mov r9d, 0xffffffff
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x17c70]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rdx, [rbp + 0x17d80]
mov rcx, r12
call fcn.180007d10
test rax, rax
je 0x180032222
mov rcx, qword [rbp + r15*8 + 0x7c70]
mov rdx, r15
shl rdx, 5
mov sil, 1
mov qword [rsp + rdx + 0x70], rcx
mov qword [rsp + rdx + 0x78], rax
mov qword [rbp + rdx - 0x80], r13
jmp 0x180032222
lea rcx, [rbp + 0x17c70]
mov rax, qword [rbp + r15*8 + 0x7c70]
mov rbx, r15
shl rbx, 5
mov qword [rsp + rbx + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + rbx + 0x78], rax
mov qword [rbp + rbx - 0x80], 0
movzx eax, byte [rsp + 0x30]
test al, al
jne 0x180032315
xor eax, eax
shl r15, 5
xorps xmm0, xmm0
mov qword [rsp + 0x60], rax
lea r8, [rsp + 0x50]
mov rcx, r12
movups xmmword [rsp + 0x50], xmm0
mov rdi, qword [rsp + r15 + 0x78]
lea r9d, [rax + 0x18]
mov rdx, rdi
call qword [sym.imp.PSAPI.DLL_GetModuleInformation]
test sil, sil
jne 0x18003227e
mov r8, qword [rsp + 0x50]
mov r9, rdi
mov rdx, r12
mov byte [rsp + 0x20], sil
call fcn.180007830
test al, al
je 0x180032310
movsxd rax, dword [rdi + 0x3c]
mov edx, 0x10b
movzx ecx, word [rax + rdi + 0x18]
cmp cx, dx
jne 0x180032297
mov esi, dword [rax + rdi + 0x78]
jmp 0x1800322ac
mov edx, 0x20b
cmp cx, dx
jne 0x180032394
mov esi, dword [rax + rdi + 0x88]
add rsi, rdi
mov ecx, dword [rsi + 0x1c]
mov ebx, ecx
add rbx, rdi
xor edi, edi
cmp dword [rsi + 0x14], edi
jbe 0x180032310
lea r13, [rsp + 0x70]
add r15, r13
mov r13, qword [rsp + 0x40]
nop dword [rax + rax]
mov edx, dword [rbx]
mov r9d, r13d
add rdx, qword [r15 + 8]
mov r8b, 1
mov rcx, r12
call fcn.180031a40
cmp eax, dword [rsp + 0x48]
jne 0x1800322f8
mov r14d, dword [rbx]
mov al, 1
add r14, qword [r15]
mov byte [rsp + 0x30], al
jmp 0x1800322fd
movzx eax, byte [rsp + 0x30]
add rbx, 4
inc edi
cmp edi, dword [rsi + 0x14]
jb 0x1800322d0
mov r13d, 1
jmp 0x180032315
movzx eax, byte [rsp + 0x30]
mov ecx, dword [rsp + 0x34]
inc ecx
mov dword [rsp + 0x34], ecx
test al, al
je 0x180032090
cmp qword [rbp + 0x7c78], 0
je 0x18003238f
mov rax, r13
nop dword [rax]
nop dword [rax + rax]
shl rax, 5
cmp byte [0x180082c9e], 0
mov rcx, qword [rbp + rax - 0x80]
je 0x180032365
cmp rcx, 1
jne 0x18003237e
mov rcx, qword [rsp + rax + 0x78]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x18003237e
cmp rcx, 1
jne 0x18003237e
mov rcx, qword [rsp + rax + 0x78]
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
inc r13d
mov eax, r13d
cmp qword [rbp + r13*8 + 0x7c70], 0
jne 0x180032340
mov rax, r14
jmp 0x180032396
xor eax, eax
mov rcx, qword [rbp + 0x17f90]
xor rcx, rsp
call fcn.180049ad0
mov rbx, qword [rsp + 0x180f8]
add rsp, 0x180a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret