Function at 0x180002060
Capabilities:
Enumerate process modules
Get common file path
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa10]
sub rsp, 0xb10
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0xa00], rax
xor r15d, r15d
mov edx, 0x104
lea rcx, [rbp + 0x200]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], r15
lea rax, [rbp + 0x200]
mov rsi, 0xffffffffffffffff
mov r8, rsi
nop
inc r8
cmp word [rax + r8*2], r15w
jne 0x1800020d0
lea rdx, [rbp + 0x200]
lea rcx, [rsp + 0x78]
call fcn.1800034e0
nop
mov rdi, qword [rbp - 0x78]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
sub rax, rdi
cmp rax, 9
jb 0x180002135
lea rax, [rdi + 9]
mov qword [rbp - 0x78], rax
lea rbx, [rsp + 0x78]
cmp rcx, 7
cmova rbx, qword [rsp + 0x78]
lea rcx, [rbx + rdi*2]
mov r8d, 0x12
lea rdx, str.D3D9.DLL
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2 + 0x12], r15w
jmp 0x180002154
mov qword [rsp + 0x20], 9
lea r9, str.D3D9.DLL
mov edx, 9
lea rcx, [rsp + 0x78]
call fcn.180003310
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 7
cmova rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x180002814
lea rdx, str.Direct3DCreate9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800088b8], rax
test rax, rax
je 0x180002814
lea rdx, str.Direct3DCreate9Ex
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800088c0], rax
test rax, rax
je 0x180002814
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
je 0x1800022df
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x54], r15d
lea r9, [rsp + 0x54]
mov r8d, 8
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
mov r14, qword [rsp + 0x30]
mov r8d, 1
lea r9, [rbp - 0x28]
movzx edx, r8b
mov rcx, r14
call qword [sym.imp.dbghelp.dll_ImageDirectoryEntryToData]
mov rbx, rax
test rax, rax
je 0x1800022df
cmp dword [rax + 0xc], 0
je 0x180002251
nop word [rax + rax]
mov ecx, dword [rbx + 0xc]
add rcx, r14
lea rdx, str.d3d9.dll
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x180002251
add rbx, 0x14
cmp dword [rbx + 0xc], 0
jne 0x180002230
cmp dword [rbx + 0xc], 0
je 0x1800022df
mov edi, dword [rbx + 0x10]
add rdi, r14
mov ebx, dword [rbx]
add rbx, r14
cmp qword [rdi], 0
je 0x1800022df
lea r13, [0x180001fc0]
mov rax, qword [rbx]
bt rax, 0x1f
jb 0x1800022d1
lea rcx, [r14 + 2]
add rcx, rax
lea rdx, str.Direct3DCreate9
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1800022d1
mov rax, qword [rdi]
mov qword [0x180008880], rax
lea r9, [rsp + 0x50]
mov edx, 8
lea r8d, [rdx + 0x38]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov qword [rdi], r13
lea r9, [rsp + 0x50]
mov r8d, dword [rsp + 0x50]
mov edx, 8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
add rdi, 8
add rbx, 8
cmp qword [rdi], 0
jne 0x180002273
mov r8d, 0x104
lea rdx, [rbp + 0xf0]
mov rcx, qword [0x180008850]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rax, [rbp + 0xf0]
inc rsi
cmp byte [rax + rsi], 0
jne 0x180002300
call fcn.180003984
lea rcx, [rbp + 0xf0]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rbp - 0x48]
call fcn.180001750
nop
lea r11, [rbp - 0x48]
cmp qword [rbp - 0x30], 7
cmova r11, qword [rbp - 0x48]
mov rax, qword [rbp - 0x38]
lea rdx, [r11 + rax*2]
mov rcx, r11
call fcn.1800018c0
mov r10, rax
cmp rax, rdx
je 0x1800023ab
nop word [rax + rax]
lea rcx, [rdx - 2]
movzx r8d, word [rcx]
cmp r8w, 0x5c
je 0x180002380
cmp r8w, 0x2f
je 0x180002380
mov rdx, rcx
cmp r10, rcx
jne 0x180002360
jmp 0x1800023ab
cmp r10, rdx
je 0x1800023ab
nop word [rax + rax]
lea rax, [rdx - 2]
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x1800023a3
cmp cx, 0x2f
jne 0x1800023ab
mov rdx, rax
cmp r10, rax
jne 0x180002390
sub rdx, r11
sar rdx, 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r15
mov r8, rdx
mov rdx, r11
lea rcx, [rsp + 0x30]
call fcn.1800034e0
nop
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x68]
call fcn.180003180
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x180002425
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180002420
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000274b
call fcn.180003a6c
mov byte [rbp - 0x20], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp - 0x1f]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetDllDirectoryA]
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 7
cmova rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], r15
mov rdi, qword [rbp - 0x58]
lea rsi, [rbp - 0x68]
cmp qword [rbp - 0x50], 7
cmova rsi, qword [rbp - 0x68]
movabs rbx, 0x7ffffffffffffffe
cmp rdi, rbx
ja 0x18000288e
cmp rdi, 7
ja 0x1800024b6
mov qword [rsp + 0x68], rdi
mov ecx, 7
mov qword [rsp + 0x70], rcx
movups xmm0, xmmword [rsi]
movups xmmword [rsp + 0x58], xmm0
jmp 0x18000256e
mov rax, rdi
or rax, 7
cmp rax, rbx
jbe 0x1800024d2
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x180002504
mov rbx, rax
mov ecx, 0xa
cmp rax, rcx
cmovb rbx, rcx
lea rcx, [rbx + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x180002888
add rcx, rcx
cmp rcx, 0x1000
jb 0x180002533
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x180002888
mov rcx, rax
call fcn.180003a30
mov rcx, rax
test rax, rax
je 0x18000274b
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x180002542
test rcx, rcx
je 0x18000253f
call fcn.180003a30
jmp 0x180002542
mov rax, r15
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], rbx
lea r8, [rdi*2 + 2]
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x68]
mov rax, rcx
sub rax, rdi
cmp rax, 0xd
jb 0x1800025b0
lea rax, [rdi + 0xd]
mov qword [rsp + 0x68], rax
lea rbx, [rsp + 0x58]
cmp rcx, 7
cmova rbx, qword [rsp + 0x58]
lea rcx, [rbx + rdi*2]
mov r8d, 0x1a
lea rdx, str.MMDCloth.dll
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2 + 0x1a], r15w
jmp 0x1800025cf
mov qword [rsp + 0x20], 0xd
lea r9, str.MMDCloth.dll
mov edx, 0xd
lea rcx, [rsp + 0x58]
call fcn.180003310
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 7
cmova rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
jne 0x180002607
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error:_LoadLibrary_:__lu__n
mov edx, eax
call fcn.180001010
jmp 0x180002712
lea rdx, str.PostSetStreamSource
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800088a8], rax
test rax, rax
jne 0x18000263c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error:_module_PostSetStreamSource_not_found__lu__n
mov edx, eax
call fcn.180001010
jmp 0x180002712
lea rdx, str.PostCreateVertexBuffer
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180008848], rax
test rax, rax
jne 0x180002671
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error:_module_PostCreateVertexBuffer_not_found__lu__n
mov edx, eax
call fcn.180001010
jmp 0x180002712
lea rdx, str.PostBeginScene
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180008888], rax
test rax, rax
jne 0x1800026a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error:_module_PostBeginScene_not_found__lu__n
mov edx, eax
call fcn.180001010
jmp 0x180002712
lea rdx, str.PostPresent
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800088a0], rax
test rax, rax
jne 0x1800026d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error:_module_PostPresent_not_found__lu__n
mov edx, eax
call fcn.180001010
jmp 0x180002712
lea rdx, str.DllPluginStart
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180008870], rax
test rax, rax
jne 0x180002707
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error:_module_dllstart_not_found__lu__n
mov edx, eax
call fcn.180001010
jmp 0x180002712
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryA]
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x180002757
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180002752
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180002752
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180003a6c
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r15w
mov rdx, qword [rbp - 0x50]
cmp rdx, 7
jbe 0x1800027ae
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800027a9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800027a9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180003a6c
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], r15w
mov rdx, qword [rbp - 0x30]
cmp rdx, 7
jbe 0x180002802
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800027fd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800027fd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180003a6c
movdqa xmm0, xmmword [0x180005860]
movdqu xmmword [rbp - 0x38], xmm0
mov word [rbp - 0x48], r15w
mov rdx, qword [rbp - 0x70]
cmp rdx, 7
jbe 0x180002858
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180002853
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180002853
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180003a6c
mov rcx, qword [rbp + 0xa00]
xor rcx, rsp
call fcn.180003a10
lea r11, [rsp + 0xb10]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.180001170
nop
call fcn.180001210
int3