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

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
lea rcx, [0x1805d8bbb]
call fcn.18024f670
mov dword [rsp + 0x30], 0xffffffff
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x38], 0
cmp qword [rsp + 0x70], 0
jne 0x18039710a
mov eax, 0xffffff9a
jmp 0x1803978b1
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x70], 0
jne 0x180397129
mov eax, 0xffffff9a
jmp 0x1803978b1
mov rax, qword [rsp + 0x20]
mov dword [rax + 0x80], 0
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0xf8], 8
jne 0x180397209
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0xfc], 0
jne 0x180397209
cmp dword [rsp + 0x38], 0
jne 0x180397207
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x90], 0
jne 0x1803971b2
mov rcx, qword [rsp + 0x20]
call fcn.180399f50
cmp eax, 0xffffffff
jne 0x18039718c
mov dword [rsp + 0x38], 0xffffffff
mov rax, qword [rsp + 0x20]
mov dword [rax + 0x90], 0x10000
mov rax, qword [rsp + 0x20]
add rax, 0x100
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x88], rax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x94]
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x20]
add rax, 0x78
mov edx, 4
mov rcx, rax
call fcn.1803a3970
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x20]
mov ecx, dword [rsp + 0x3c]
mov eax, dword [rax + 0x94]
sub eax, ecx
mov rcx, qword [rsp + 0x20]
add eax, dword [rcx + 0xd4]
mov rcx, qword [rsp + 0x20]
mov dword [rcx + 0xd4], eax
jmp 0x18039715c
jmp 0x18039721c
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0xf8], 0xc
jne 0x18039721c
mov rax, qword [rsp + 0x20]
cmp dword [rsp + 0x38], 1
jne 0x18039722b
mov dword [rsp + 0x38], 0
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0xd4], 0
jbe 0x180397257
cmp dword [rsp + 0x38], 0
jne 0x180397257
mov rcx, qword [rsp + 0x20]
call fcn.180399f50
cmp eax, 0xffffffff
jne 0x180397257
mov dword [rsp + 0x38], 0xffffffff
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0xf8], 8
jne 0x1803972a6
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0xfc], 0
jne 0x1803972a6
mov rax, qword [rsp + 0x20]
add rax, 0x78
mov rcx, rax
call fcn.1803a4ec0
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x38], 0
jne 0x180397297
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x20]
mov dword [rax + 0xd0], 0
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0xfc], 0
jne 0x1803972d7
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x10104]
mov dword [rsp + 0x80], eax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x10120]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x10118]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x10140]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov eax, 0xffffffff
cmp qword [rsp + 0x28], rax
jae 0x18039732e
mov eax, 0xffffffff
cmp qword [rsp + 0x78], rax
jae 0x18039732e
mov rax, qword [rsp + 0x20]
mov ecx, 0xffffffff
cmp qword [rax + 0xd8], rcx
jb 0x180397374
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0xe0]
add rax, 4
mov r8d, 2
mov edx, 0x2d
mov rcx, rax
call fcn.180398590
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0xe0]
add rax, 6
mov r8d, 2
mov edx, 0x2d
mov rcx, rax
call fcn.180398590
mov eax, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0xe0]
add rcx, 0x10
mov r8d, 4
mov edx, eax
call fcn.180398590
mov eax, 0xffffffff
cmp qword [rsp + 0x28], rax
jb 0x1803973c7
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0xe0]
add rcx, 0x14
mov r8d, 4
mov edx, eax
call fcn.180398590
jmp 0x1803973ea
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0xe0]
add rax, 0x14
mov r8d, 4
mov rdx, qword [rsp + 0x28]
mov rcx, rax
call fcn.180398590
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0xc0], 1
jne 0x18039741b
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0xe0]
add rax, 0x24
mov r8d, 2
mov edx, 1
mov rcx, rax
call fcn.180398590
mov eax, 0xffffffff
cmp qword [rsp + 0x78], rax
jb 0x18039744a
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0xe0]
add rcx, 0x18
mov r8d, 4
mov edx, eax
call fcn.180398590
jmp 0x18039746d
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0xe0]
add rax, 0x18
mov r8d, 4
mov rdx, qword [rsp + 0x78]
mov rcx, rax
call fcn.180398590
mov eax, 0xffffffff
cmp qword [rsp + 0x78], rax
jb 0x180397484
mov eax, dword [rsp + 0x34]
add eax, 8
mov dword [rsp + 0x34], eax
mov eax, 0xffffffff
cmp qword [rsp + 0x28], rax
jb 0x18039749b
mov eax, dword [rsp + 0x34]
add eax, 8
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x20]
mov ecx, 0xffffffff
cmp qword [rax + 0xd8], rcx
jb 0x1803974b9
mov eax, dword [rsp + 0x34]
add eax, 8
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jbe 0x18039766e
mov qword [rsp + 0x48], 0
mov eax, dword [rsp + 0x34]
add eax, 4
mov rcx, qword [rsp + 0x20]
cmp eax, dword [rcx + 0xf0]
jbe 0x1803974eb
mov eax, 0xffffff99
jmp 0x1803978b1
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0xec]
mov rcx, qword [rsp + 0x20]
add rax, qword [rcx + 0xe0]
mov qword [rsp + 0x48], rax
mov r8d, 2
mov edx, 1
mov rcx, qword [rsp + 0x48]
call fcn.180398590
mov rax, qword [rsp + 0x48]
add rax, 2
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x34]
mov r8d, 2
mov edx, eax
mov rcx, qword [rsp + 0x48]
call fcn.180398590
mov rax, qword [rsp + 0x48]
add rax, 2
mov qword [rsp + 0x48], rax
mov eax, 0xffffffff
cmp qword [rsp + 0x78], rax
jb 0x18039757d
mov r8d, 8
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x48]
call fcn.180398590
mov rax, qword [rsp + 0x48]
add rax, 8
mov qword [rsp + 0x48], rax
mov eax, 0xffffffff
cmp qword [rsp + 0x28], rax
jb 0x1803975ac
mov r8d, 8
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x48]
call fcn.180398590
mov rax, qword [rsp + 0x48]
add rax, 8
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov ecx, 0xffffffff
cmp qword [rax + 0xd8], rcx
jb 0x1803975e9
mov r8d, 8
mov rax, qword [rsp + 0x20]
mov rdx, qword [rax + 0xd8]
mov rcx, qword [rsp + 0x48]
call fcn.180398590
mov rax, qword [rsp + 0x48]
add rax, 8
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x34]
add eax, 4
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rcx + 0xf0]
sub ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x20]
mov dword [rcx + 0xf0], eax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0xec]
mov ecx, dword [rsp + 0x34]
lea eax, [rcx + rax + 4]
mov rcx, qword [rsp + 0x20]
mov dword [rcx + 0xec], eax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0xe8]
mov ecx, dword [rsp + 0x34]
lea eax, [rcx + rax + 4]
mov rcx, qword [rsp + 0x20]
mov dword [rcx + 0xe8], eax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0xe8]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0xe0]
add rcx, 0x1e
mov r8d, 2
mov edx, eax
call fcn.180398590
cmp dword [rsp + 0x38], 0
jne 0x1803976a2
mov rax, qword [rsp + 0x20]
add rax, 0x60
mov rcx, qword [rsp + 0x20]
mov r8d, dword [rcx + 0xec]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rcx + 0xe0]
mov rcx, rax
call fcn.1803982b0
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0xe0]
call fcn.1802701d0
cmp dword [rsp + 0x38], 0
jne 0x180397886
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rcx + 0x58]
mov rcx, rax
call fcn.18039ec40
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0xd8]
add rax, 0xe
mov rcx, qword [rsp + 0x20]
xor r9d, r9d
mov r8, rax
mov rax, qword [rsp + 0x20]
mov rdx, qword [rax + 0x58]
call fcn.18039eba0
test eax, eax
je 0x18039770e
mov dword [rsp + 0x38], 0xffffffff
cmp dword [rsp + 0x38], 0
jne 0x18039773c
mov eax, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x20]
mov r9d, 4
mov r8d, eax
mov rax, qword [rsp + 0x20]
mov rdx, qword [rax + 0x58]
call fcn.180398470
mov dword [rsp + 0x38], eax
mov eax, 0xffffffff
cmp qword [rsp + 0x78], rax
jae 0x180397758
mov eax, 0xffffffff
cmp qword [rsp + 0x28], rax
jb 0x180397804
mov rax, qword [rsp + 0x20]
cmp qword [rax + 0x10110], 0
jbe 0x1803977fa
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x10110]
add rax, 4
mov rcx, qword [rsp + 0x20]
xor r9d, r9d
mov r8, rax
mov rax, qword [rsp + 0x20]
mov rdx, qword [rax + 0x58]
call fcn.18039eba0
test eax, eax
je 0x1803977a0
mov dword [rsp + 0x38], 0xffffffff
cmp dword [rsp + 0x38], 0
jne 0x1803977cc
mov rax, qword [rsp + 0x20]
mov r9d, 8
mov r8, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rcx + 0x58]
mov rcx, rax
call fcn.180398470
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x1803977f8
mov rax, qword [rsp + 0x20]
mov r9d, 8
mov r8, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rcx + 0x58]
mov rcx, rax
call fcn.180398470
mov dword [rsp + 0x38], eax
jmp 0x180397802
mov dword [rsp + 0x38], 0xffffff99
jmp 0x18039785c
cmp dword [rsp + 0x38], 0
jne 0x180397830
mov rax, qword [rsp + 0x20]
mov r9d, 4
mov r8, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rcx + 0x58]
mov rcx, rax
call fcn.180398470
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x18039785c
mov rax, qword [rsp + 0x20]
mov r9d, 4
mov r8, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rcx + 0x58]
mov rcx, rax
call fcn.180398470
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x20]
xor r9d, r9d
mov r8, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rcx + 0x58]
mov rcx, rax
call fcn.18039eba0
test eax, eax
je 0x180397886
mov dword [rsp + 0x38], 0xffffffff
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x10158]
inc rax
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x10158], rax
mov rax, qword [rsp + 0x20]
mov dword [rax + 0x70], 0
mov eax, dword [rsp + 0x38]
add rsp, 0x60
pop rdi
ret