Function at 0x140165cf0
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, 0xc8
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov rax, qword [0x14035d4f0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
cmp dword [rsp + 0xe8], 0
jne 0x140165d55
mov r8d, dword [rsp + 0xe0]
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xd0]
call fcn.140165620
jmp 0x1401663db
mov rax, qword [rsp + 0xd0]
mov r9d, 1
mov r8d, dword [rsp + 0xe0]
mov rdx, qword [rsp + 0xd8]
mov rcx, rax
call fcn.14014e7e0
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0xe0]
cmp dword [rsp + 0x20], eax
jne 0x140165d98
mov eax, dword [rsp + 0xe0]
jmp 0x1401663db
lea rcx, [rsp + 0x88]
call fcn.1401627b0
nop
cmp dword [rsp + 0xe8], 1
jne 0x140165dcb
mov rax, qword [rsp + 0xd0]
mov edx, dword [rax + 0x88]
lea rcx, [rsp + 0x88]
call fcn.140163b20
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0xe0]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rax + 0x60]
call fcn.1400e2be0
mov dword [rsp + 0x54], eax
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0x70]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xd0]
movsx eax, byte [rax + 0x8c]
test eax, eax
je 0x140165e37
mov eax, dword [rsp + 0x54]
shl eax, 1
cdqe
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0x78]
mov qword [rsp + 0x48], rax
cmp dword [rsp + 0xe8], 1
jne 0x14016603b
mov dword [rsp + 0x38], 0
jmp 0x140165e6a
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x54]
cmp dword [rsp + 0x38], eax
jge 0x140166036
movsxd rax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xd0]
mov rcx, qword [rcx + 0x68]
mov eax, dword [rcx + rax*4]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x140165e99
jmp 0x140165e60
movsxd rax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0xff
jne 0x140165ecc
movsxd rax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
jmp 0x140165e60
cmp dword [rsp + 0x28], 0xfe
jl 0x140165f17
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
dec eax
mov dword [rsp + 0x28], eax
movsxd rax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x48]
movzx eax, byte [rcx + rax]
and eax, 0xc0
cmp eax, 0x80
jne 0x140165f17
mov r8d, dword [rsp + 0x28]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call fcn.1400f3530
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x28], eax
jle 0x140165f29
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x30]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x3c], eax
jle 0x140165f48
jmp 0x14016601c
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x24]
sub ecx, eax
mov eax, ecx
cdqe
mov rcx, qword [rsp + 0xd8]
movzx eax, byte [rcx + rax]
and eax, 0xc0
cmp eax, 0x80
je 0x140165ffa
mov edx, dword [rsp + 0x3c]
lea rcx, [rsp + 0x88]
call fcn.140163710
movsx eax, al
test eax, eax
jne 0x140165ffa
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0xd8]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x28]
sub rax, rcx
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.1401639a0
movsx eax, al
test eax, eax
je 0x140165ffa
mov eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x3c], eax
jne 0x140165fe9
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0x78], eax
lea rcx, [rsp + 0x88]
call fcn.1401634a0
mov eax, dword [rsp + 0x78]
jmp 0x1401663db
mov edx, dword [rsp + 0x3c]
lea rcx, [rsp + 0x88]
call fcn.140163590
cmp dword [rsp + 0x28], 0
jne 0x140166003
jmp 0x14016601c
mov eax, dword [rsp + 0x28]
dec eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
jmp 0x140165f39
movsxd rax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
jmp 0x140165e60
jmp 0x140166203
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x38], 0
jmp 0x14016605f
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x54]
cmp dword [rsp + 0x38], eax
jge 0x1401661a0
movsxd rax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xd0]
mov rcx, qword [rcx + 0x68]
mov eax, dword [rcx + rax*4]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x14016608e
jmp 0x140166055
movsxd rax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0xfe
jl 0x1401660b2
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x34], eax
jle 0x1401660c4
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x30]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x44], eax
jg 0x1401660e8
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x34], eax
jge 0x1401660ed
jmp 0x140166186
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x24]
sub ecx, eax
mov eax, ecx
cdqe
mov rcx, qword [rsp + 0xd8]
movzx eax, byte [rcx + rax]
and eax, 0xc0
cmp eax, 0x80
je 0x14016616d
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x34], eax
jg 0x140166127
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jle 0x14016616d
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0xd8]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x34]
sub rax, rcx
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.1401639a0
movsx eax, al
test eax, eax
je 0x14016616d
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x50], eax
jmp 0x140166186
mov eax, dword [rsp + 0x34]
dec eax
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
jmp 0x1401660d4
movsxd rax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
jmp 0x140166055
cmp dword [rsp + 0x40], 0
jne 0x1401661ae
cmp dword [rsp + 0x50], 0
je 0x140166203
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x24]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x2c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
jne 0x1401661f6
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0x6c], eax
lea rcx, [rsp + 0x88]
call fcn.1401634a0
mov eax, dword [rsp + 0x6c]
jmp 0x1401663db
mov dword [rsp + 0x20], 0
jmp 0x140165e37
cmp dword [rsp + 0x20], 0
jne 0x140166211
cmp dword [rsp + 0x24], 0
jne 0x140166248
lea rcx, [rsp + 0x88]
call fcn.1401637d0
movsx eax, al
test eax, eax
je 0x140166243
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x70], eax
lea rcx, [rsp + 0x88]
call fcn.1401634a0
mov eax, dword [rsp + 0x70]
jmp 0x1401663db
jmp 0x14016638f
lea rcx, [rsp + 0x88]
call fcn.1401637d0
movsx eax, al
test eax, eax
je 0x1401662f3
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0xd8]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0xd0]
mov r9d, 1
mov r8d, dword [rsp + 0x2c]
mov rdx, rax
call fcn.14014e7e0
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x20], eax
je 0x1401662a3
cmp dword [rsp + 0x20], 0
jne 0x1401662c9
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x24]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x88]
call fcn.1401634a0
mov eax, dword [rsp + 0x68]
jmp 0x1401663db
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x24]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x2c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
jmp 0x140165e37
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0xd8]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0xd0]
mov r8d, dword [rsp + 0x2c]
mov rdx, rax
call fcn.140165b00
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jle 0x14016638f
mov eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x20], eax
jne 0x140166351
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0x74], eax
lea rcx, [rsp + 0x88]
call fcn.1401634a0
mov eax, dword [rsp + 0x74]
jmp 0x1401663db
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x24]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x2c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x88]
call fcn.140163ba0
mov dword [rsp + 0x20], 0
jmp 0x140165e37
lea rcx, [rsp + 0x88]
call fcn.140163a10
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x24]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x2c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
mov dword [rsp + 0x20], 0
jmp 0x140165e37
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140236770
add rsp, 0xc8
ret