Function at 0x1800019f0
Capabilities:
Access peb ldr_data
Get common file path
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x170
mov rax, qword [0x180022020]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov edi, edx
mov rbx, rcx
call fcn.180004e30
test eax, eax
jne 0x180001ccd
cmp edi, 1
jne 0x180001acf
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x105
call fcn.180008df0
mov edx, 0x104
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rdx, [0x18001ee10]
mov qword [0x180023e10], rbx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x180023e18], rax
test rax, rax
je 0x180001cd2
call fcn.180004810
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.180004d30
lea rdx, [0x1800015f0]
lea rcx, [0x180023e48]
call fcn.180003df0
lea rdx, [0x1800017f0]
lea rcx, [0x180023e50]
call fcn.180003df0
lea rdx, [0x1800012b0]
lea rcx, [0x180023e20]
call fcn.180003df0
call fcn.180004880
mov rcx, qword [0x180023e18]
lea rdx, str.AlphaBlend
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x180023e18]
lea rdx, str.DllInitialize
mov qword [0x180023de8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x180023e18]
lea rdx, str.GradientFill
mov qword [0x180023df0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x180023e18]
lea rdx, str.TransparentBlt
mov qword [0x180023df8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x180023e18]
lea rdx, str.vSetDdrawflag
mov qword [0x180023e00], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x180023e30]
mov rdx, qword [0x180023e10]
mov qword [0x180023e08], rax
mov rax, qword [0x180023e28]
cmp rax, rcx
je 0x180001b87
cmp qword [rax], rdx
je 0x180001b7e
add rax, 0x28
cmp rax, rcx
jne 0x180001b70
cmp rax, rcx
jne 0x180001c6b
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
add rcx, 0x10
mov rbx, qword [rcx]
cmp rbx, rcx
je 0x180001c6b
test rbx, rbx
je 0x180001c6b
cmp qword [rbx + 0x30], rdx
je 0x180001bc0
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x180001ba4
jmp 0x180001c6b
mov rax, qword [rbx + 8]
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x40], rbx
mov rcx, qword [rax]
mov rax, qword [rbx + 0x28]
mov qword [rsp + 0x28], rcx
mov r8, qword [rax]
mov rax, qword [rbx + 0x18]
mov qword [rsp + 0x38], r8
mov r9, qword [rax]
mov rax, qword [0x180023e30]
cmp rax, qword [0x180023e38]
mov qword [rsp + 0x30], r9
je 0x180001c1b
mov qword [rax], rdx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], r9
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], rbx
add qword [0x180023e30], 0x28
jmp 0x180001c28
lea r8, [rsp + 0x20]
mov rdx, rax
call fcn.180001fb0
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
mov rcx, qword [rbx + 8]
mov rax, qword [rbx]
mov qword [rcx], rax
mov rcx, qword [rbx + 0x20]
mov rax, qword [rbx + 0x28]
mov qword [rcx + 8], rax
mov rax, qword [rbx + 0x20]
mov rcx, qword [rbx + 0x28]
mov qword [rcx], rax
mov r8, qword [rbx + 0x10]
mov rax, qword [rbx + 0x18]
mov qword [r8 + 8], rax
mov r8, qword [rbx + 0x18]
mov rax, qword [rbx + 0x10]
mov qword [r8], rax
test edi, edi
jne 0x180001ccd
call fcn.180004810
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.180004d30
lea rdx, [0x1800015f0]
lea rcx, [0x180023e48]
call fcn.180004470
lea rdx, [0x1800017f0]
lea rcx, [0x180023e50]
call fcn.180004470
lea rdx, [0x1800012b0]
lea rcx, [0x180023e20]
call fcn.180004470
call fcn.180004880
mov rcx, qword [0x180023e18]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1800067c0
mov rbx, qword [rsp + 0x180]
add rsp, 0x170
pop rdi
ret