Function at 0x180001fa0
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 0x180002010
lea rdx, [rbp + 0x200]
lea rcx, [rsp + 0x78]
call fcn.180002dd0
nop
mov rdi, qword [rbp - 0x78]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
sub rax, rdi
cmp rax, 9
jb 0x180002075
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 0x180002094
mov qword [rsp + 0x20], 9
lea r9, str.D3D9.DLL
mov edx, 9
lea rcx, [rsp + 0x78]
call fcn.180002c00
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 0x180002754
lea rdx, str.Direct3DCreate9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800088b8], rax
test rax, rax
je 0x180002754
lea rdx, str.Direct3DCreate9Ex
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800088c0], rax
test rax, rax
je 0x180002754
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 0x18000221f
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 0x18000221f
cmp dword [rax + 0xc], 0
je 0x180002191
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 0x180002191
add rbx, 0x14
cmp dword [rbx + 0xc], 0
jne 0x180002170
cmp dword [rbx + 0xc], 0
je 0x18000221f
mov edi, dword [rbx + 0x10]
add rdi, r14
mov ebx, dword [rbx]
add rbx, r14
cmp qword [rdi], 0
je 0x18000221f
lea r13, [0x180001f00]
mov rax, qword [rbx]
bt rax, 0x1f
jb 0x180002211
lea rcx, [r14 + 2]
add rcx, rax
lea rdx, str.Direct3DCreate9
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x180002211
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 0x1800021b3
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 0x180002240
call fcn.180003274
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 0x1800022eb
nop word [rax + rax]
lea rcx, [rdx - 2]
movzx r8d, word [rcx]
cmp r8w, 0x5c
je 0x1800022c0
cmp r8w, 0x2f
je 0x1800022c0
mov rdx, rcx
cmp r10, rcx
jne 0x1800022a0
jmp 0x1800022eb
cmp r10, rdx
je 0x1800022eb
nop word [rax + rax]
lea rax, [rdx - 2]
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x1800022e3
cmp cx, 0x2f
jne 0x1800022eb
mov rdx, rax
cmp r10, rax
jne 0x1800022d0
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.180002dd0
nop
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x68]
call fcn.180002a70
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x180002365
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180002360
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000268b
call fcn.18000335c
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 0x1800027ce
cmp rdi, 7
ja 0x1800023f6
mov qword [rsp + 0x68], rdi
mov ecx, 7
mov qword [rsp + 0x70], rcx
movups xmm0, xmmword [rsi]
movups xmmword [rsp + 0x58], xmm0
jmp 0x1800024ae
mov rax, rdi
or rax, 7
cmp rax, rbx
jbe 0x180002412
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x180002444
mov rbx, rax
mov ecx, 0xa
cmp rax, rcx
cmovb rbx, rcx
lea rcx, [rbx + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x1800027c8
add rcx, rcx
cmp rcx, 0x1000
jb 0x180002473
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1800027c8
mov rcx, rax
call fcn.180003320
mov rcx, rax
test rax, rax
je 0x18000268b
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x180002482
test rcx, rcx
je 0x18000247f
call fcn.180003320
jmp 0x180002482
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 0x1800024f0
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 0x18000250f
mov qword [rsp + 0x20], 0xd
lea r9, str.MMDCloth.dll
mov edx, 0xd
lea rcx, [rsp + 0x58]
call fcn.180002c00
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 0x180002547
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error:_LoadLibrary_:__lu__n
mov edx, eax
call fcn.180001010
jmp 0x180002652
lea rdx, str.PostSetStreamSource
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800088a8], rax
test rax, rax
jne 0x18000257c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error:_module_PostSetStreamSource_not_found__lu__n
mov edx, eax
call fcn.180001010
jmp 0x180002652
lea rdx, str.PostCreateVertexBuffer
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180008848], rax
test rax, rax
jne 0x1800025b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error:_module_PostCreateVertexBuffer_not_found__lu__n
mov edx, eax
call fcn.180001010
jmp 0x180002652
lea rdx, str.PostBeginScene
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180008888], rax
test rax, rax
jne 0x1800025e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error:_module_PostBeginScene_not_found__lu__n
mov edx, eax
call fcn.180001010
jmp 0x180002652
lea rdx, str.PostPresent
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800088a0], rax
test rax, rax
jne 0x180002615
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error:_module_PostPresent_not_found__lu__n
mov edx, eax
call fcn.180001010
jmp 0x180002652
lea rdx, str.DllPluginStart
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180008870], rax
test rax, rax
jne 0x180002647
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error:_module_dllstart_not_found__lu__n
mov edx, eax
call fcn.180001010
jmp 0x180002652
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryA]
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x180002697
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180002692
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180002692
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18000335c
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r15w
mov rdx, qword [rbp - 0x50]
cmp rdx, 7
jbe 0x1800026ee
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800026e9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800026e9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18000335c
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], r15w
mov rdx, qword [rbp - 0x30]
cmp rdx, 7
jbe 0x180002742
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000273d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000273d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18000335c
movdqa xmm0, xmmword [0x1800057e0]
movdqu xmmword [rbp - 0x38], xmm0
mov word [rbp - 0x48], r15w
mov rdx, qword [rbp - 0x70]
cmp rdx, 7
jbe 0x180002798
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180002793
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180002793
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18000335c
mov rcx, qword [rbp + 0xa00]
xor rcx, rsp
call fcn.180003300
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