Function at 0x18039bcf0
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, 0x80
lea rcx, [0x1805d8bd6]
call fcn.18024f670
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0
cmp qword [rsp + 0x90], 0
jne 0x18039bd38
mov eax, 0xffffff9a
jmp 0x18039c297
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x110]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x18039bd68
mov eax, 0xffffff9a
jmp 0x18039c297
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
jne 0x18039bd7d
mov eax, 0xffffff9c
jmp 0x18039c297
cmp dword [rsp + 0xa0], 0
jne 0x18039bd8e
xor eax, eax
jmp 0x18039c297
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x98]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0xa0]
mov dword [rax + 0x20], ecx
mov eax, dword [rsp + 0xa0]
mov rcx, qword [rsp + 0x30]
cmp rax, qword [rcx + 0xa0]
jbe 0x18039bde4
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x118], 0
jne 0x18039bde4
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0xa0]
mov dword [rax + 0x20], ecx
mov eax, dword [rsp + 0xa0]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0x10]
mov rdx, qword [rsp + 0x30]
add rcx, qword [rdx + 0x98]
cmp rax, rcx
jbe 0x18039be2d
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x118], 0
je 0x18039be2d
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x98]
mov rcx, qword [rsp + 0x30]
add eax, dword [rcx + 0x10]
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 0x20], eax
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x20], 0
jbe 0x18039c286
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x10], 0
jne 0x18039bf70
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x98], 0
jbe 0x18039bf70
mov dword [rsp + 0x38], 0x4000
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
cmp qword [rcx + 0x98], rax
jae 0x18039be87
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x98]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x18039be95
xor eax, eax
jmp 0x18039c297
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x60]
mov rcx, qword [rsp + 0x30]
add rax, qword [rcx + 0x110]
mov rcx, qword [rsp + 0x30]
add rcx, 0xa8
xor r9d, r9d
mov r8, rax
mov rax, qword [rsp + 0x30]
mov rdx, qword [rax + 0x100]
call fcn.18039eba0
test eax, eax
je 0x18039bedb
mov eax, 0xffffffff
jmp 0x18039c297
mov r9d, dword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov r8, qword [rax]
mov rax, qword [rsp + 0x30]
mov rdx, qword [rax + 0x100]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0xe0]
mov rax, qword [rsp + 0x30]
call qword [rax + 0xb0]
cmp eax, dword [rsp + 0x38]
je 0x18039bf1b
mov eax, 0xffffffff
jmp 0x18039c297
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
add rax, qword [rcx + 0x60]
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x60], rax
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x98]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x98], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x38]
mov dword [rax + 0x10], ecx
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x108], 0
je 0x18039bf90
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x118], 0
je 0x18039c122
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x10], 0
jne 0x18039bfcc
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x98], 0
jne 0x18039bfcc
cmp dword [rsp + 0x24], 0
jne 0x18039bfbb
mov dword [rsp + 0x6c], 0
jmp 0x18039bfc3
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x6c]
jmp 0x18039c297
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0x10]
cmp dword [rax + 0x20], ecx
jae 0x18039bfec
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x20]
mov dword [rsp + 0x3c], eax
jmp 0x18039bff8
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x40], 0
jmp 0x18039c00c
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x3c]
cmp dword [rsp + 0x40], eax
jae 0x18039c03a
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 8]
mov edx, dword [rsp + 0x40]
mov r8, qword [rsp + 0x30]
mov r8, qword [r8 + 0x18]
movzx eax, byte [rax + rcx]
mov byte [rdx + r8], al
jmp 0x18039c002
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x30]
add rax, qword [rcx + 0x88]
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x88], rax
mov r8d, dword [rsp + 0x3c]
mov rax, qword [rsp + 0x30]
mov rdx, qword [rax + 0x18]
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax + 0x90]
call fcn.1803aa830
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 0x90], eax
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0xa0]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0xa0], rax
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x3c]
mov eax, dword [rax + 0x10]
sub eax, ecx
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 0x10], eax
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x3c]
mov eax, dword [rax + 0x20]
sub eax, ecx
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 0x20], eax
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x30]
add rax, qword [rcx + 0x18]
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x18], rax
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x30]
add rax, qword [rcx + 8]
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
add eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 0x24], eax
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x24]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], eax
jmp 0x18039c281
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x108], 0xc
jne 0x18039c135
jmp 0x18039c281
mov dword [rsp + 0x68], 2
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x30]
add rax, 8
mov edx, dword [rsp + 0x68]
mov rcx, rax
call fcn.18039f250
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jl 0x18039c18c
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x28], 0
je 0x18039c18c
mov dword [rsp + 0x20], 0xfffffffd
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
cmp qword [rsp + 0x50], rax
jae 0x18039c1bf
movabs rax, 0x100000000
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x88]
add rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x88], rax
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax + 0x90]
call fcn.1803aa830
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 0x90], eax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rax + 0xa0]
sub rax, rcx
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0xa0], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x24]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x20], 1
jne 0x18039c278
cmp dword [rsp + 0x24], 0
jne 0x18039c26a
mov dword [rsp + 0x70], 0
jmp 0x18039c272
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x70]
jmp 0x18039c297
cmp dword [rsp + 0x20], 0
je 0x18039c281
jmp 0x18039c286
jmp 0x18039be2d
cmp dword [rsp + 0x20], 0
jne 0x18039c293
mov eax, dword [rsp + 0x24]
jmp 0x18039c297
mov eax, dword [rsp + 0x20]
add rsp, 0x80
pop rdi
ret