Function at 0x18000d730
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xf8
mov qword [rsp + 0xd8], 0xfffffffffffffffe
mov rcx, qword [rsp + 0x100]
call fcn.180012220
movzx eax, al
test eax, eax
je 0x18000da95
mov qword [rsp + 0x30], 0
cmp dword [rsp + 0x118], 0
je 0x18000d9da
mov rax, qword [rsp + 0x100]
add rax, 0x460
mov rcx, rax
call sub.KERNEL32.dll_EnterCriticalSection
mov rax, qword [rsp + 0x100]
add rax, 0x490
mov qword [rsp + 0x98], rax
lea r8, [rsp + 0x118]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x98]
call fcn.18000e3b0
mov rax, qword [rsp + 0x100]
add rax, 0x490
mov qword [rsp + 0xa0], rax
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0xa0]
call fcn.18000e580
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov rax, qword [rax]
cmp qword [rsp + 0x60], rax
jne 0x18000d81b
mov dword [rsp + 0x38], 1
jmp 0x18000d823
mov dword [rsp + 0x38], 0
movzx eax, byte [rsp + 0x38]
test eax, eax
jne 0x18000d836
mov dword [rsp + 0x3c], 1
jmp 0x18000d83e
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
test eax, eax
je 0x18000d9bf
mov rax, qword [rsp + 0x60]
add rax, 0x20
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax + 8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x14]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x18000d8a0
cmp dword [rsp + 0x40], 1
je 0x18000d941
jmp 0x18000d9bf
mov ecx, 0x120
call fcn.18006a950
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x18000d900
mov eax, dword [rsp + 0x118]
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0x100]
call fcn.1800056a0
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x108]
mov r8d, dword [rsp + 0x110]
mov edx, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x68]
call fcn.18001f9d0
mov qword [rsp + 0x70], rax
jmp 0x18000d909
mov qword [rsp + 0x70], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.18000c390
mov rcx, qword [rsp + 0x30]
call fcn.1800056a0
mov rcx, qword [rsp + 0x48]
mov dword [rcx + 0x1c], eax
jmp 0x18000d9bf
mov ecx, 0x98
call fcn.18006a950
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
je 0x18000d984
mov r9, qword [rsp + 0x108]
mov r8d, dword [rsp + 0x118]
mov rdx, qword [rsp + 0x100]
mov rcx, qword [rsp + 0x78]
call fcn.18000c3c0
mov qword [rsp + 0x80], rax
jmp 0x18000d990
mov qword [rsp + 0x80], 0
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 0x20]
call fcn.180017120
mov rax, qword [rsp + 0x100]
add rax, 0x460
mov rcx, rax
call sub.KERNEL32.dll_LeaveCriticalSection
jmp 0x18000da64
mov ecx, 0x120
call fcn.18006a950
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
je 0x18000da3b
mov rcx, qword [rsp + 0x100]
call fcn.1800056a0
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x108]
mov r8d, dword [rsp + 0x110]
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x88]
call fcn.18001f9d0
mov qword [rsp + 0x90], rax
jmp 0x18000da47
mov qword [rsp + 0x90], 0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x18000da7e
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x100]
call fcn.180012740
mov rcx, qword [rsp + 0x100]
call fcn.180012260
mov dword [rsp + 0x44], 0
jmp 0x18000da9d
mov dword [rsp + 0x44], 5
mov eax, dword [rsp + 0x44]
add rsp, 0xf8
ret