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

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x1400e6010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rax, qword [rcx + 0x20]
mov qword [rsp + 0x98], rdi
mov rdi, rcx
mov qword [rsp + 0x60], r13
mov r13d, edx
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x14003bb1b
call qword [0x1400e6130]
mov rcx, qword [rdi + 0x28]
cmp byte [rcx + 0x11], 0
je 0x14003bb33
inc dword [rcx + 0x14]
cmp byte [rcx + 0x12], 0
jne 0x14003bb33
call fcn.14002d2c0
mov rdx, qword [rdi]
test rdx, rdx
je 0x14003bb4d
mov rcx, qword [rdx + 0x18]
test rcx, rcx
je 0x14003bb4d
call qword [0x1400e6130]
mov rdx, qword [rdi]
mov ebx, dword [rdi + 0x30]
test ebx, ebx
je 0x14003bb60
lea eax, [rbx - 5]
cmp eax, 1
ja 0x14003c290
mov rcx, qword [rdi + 0x28]
mov qword [rsp + 0x90], rsi
mov rsi, qword [rdi + 8]
mov qword [rsp + 0x68], r12
mov r8, qword [rcx + 8]
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x28], 0
mov rax, qword [r8]
mov qword [rsp + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
test rdx, rdx
je 0x14003bbb2
cmp byte [r8 + 0x24], 2
jne 0x14003bbb2
mov ebx, 5
jmp 0x14003bbd2
xor ebx, ebx
cmp byte [rcx + 0x10], bl
jne 0x14003bbd2
xor edx, edx
call fcn.140030990
mov rcx, qword [rdi + 0x28]
mov ebx, eax
mov rsi, qword [rdi + 8]
mov dword [rsp + 0x28], 1
cmp dword [rdi + 0x14], 0
mov qword [rsp + 0x88], rbp
jne 0x14003bcb7
test ebx, ebx
jne 0x14003bd1d
mov rax, qword [rcx + 8]
mov r14, qword [rsi + 8]
mov ebp, dword [rax + 0x30]
cmp byte [rsi + 0x11], bl
je 0x14003bc0c
inc dword [rsi + 0x14]
cmp byte [rsi + 0x12], bl
jne 0x14003bc0c
mov rcx, rsi
call fcn.14002d2c0
test byte [r14 + 0x26], 2
je 0x14003bc34
cmp byte [rsi + 0x11], 0
je 0x14003bcbb
sub dword [rsi + 0x14], 1
jne 0x14003bcbb
mov rcx, rsi
call fcn.14002d270
jmp 0x14003bcbb
mov r12d, dword [r14 + 0x30]
lea eax, [rbp - 0x200]
sub r12d, dword [r14 + 0x34]
cmp eax, 0xfe00
ja 0x14003bc7b
lea eax, [rbp - 1]
test ebp, eax
jne 0x14003bc7b
mov rcx, qword [r14 + 0x80]
mov dword [r14 + 0x30], ebp
test rcx, rcx
je 0x14003bc7b
add rcx, 0xfffffffffffffffc
mov qword [r14 + 0x80], rcx
call fcn.140022420
mov qword [r14 + 0x80], 0
mov rcx, qword [r14]
lea rdx, [r14 + 0x30]
mov r8d, r12d
call fcn.140026130
mov ecx, dword [r14 + 0x30]
mov ebp, eax
movzx eax, r12w
sub ecx, eax
mov dword [r14 + 0x34], ecx
cmp byte [rsi + 0x11], 0
je 0x14003bcae
sub dword [rsi + 0x14], 1
jne 0x14003bcae
mov rcx, rsi
call fcn.14002d270
cmp ebp, 7
jne 0x14003bcbb
mov ebx, ebp
jmp 0x14003bd1d
test ebx, ebx
jne 0x14003bd1d
cmp dword [rdi + 0x14], 0
jne 0x14003bd1d
mov rcx, qword [rdi + 8]
mov edx, 2
call fcn.140030990
mov ebx, eax
test eax, eax
jne 0x14003bd1d
mov rsi, qword [rdi + 8]
mov dword [rdi + 0x14], 1
mov rbp, qword [rsi + 8]
cmp byte [rsi + 0x11], al
je 0x14003bcf9
inc dword [rsi + 0x14]
cmp byte [rsi + 0x12], al
jne 0x14003bcf9
mov rcx, rsi
call fcn.14002d2c0
mov rax, qword [rbp + 0x18]
mov rdx, qword [rax + 0x50]
mov eax, dword [rdx + 0x28]
bswap eax
mov dword [rdi + 0x10], eax
cmp byte [rsi + 0x11], 0
je 0x14003bd1d
sub dword [rsi + 0x14], 1
jne 0x14003bd1d
mov rcx, rsi
call fcn.14002d270
mov rax, qword [rdi + 0x28]
mov r15, qword [rax + 8]
mov rax, qword [rdi + 8]
mov ecx, dword [r15 + 0x30]
mov rax, qword [rax + 8]
mov dword [rsp + 0x20], ecx
mov edx, dword [rax + 0x30]
mov rax, qword [rax]
mov dword [rsp + 0x24], edx
movzx r12d, byte [rax + 9]
test ebx, ebx
jne 0x14003bd58
cmp r12b, 5
jne 0x14003bd58
cmp ecx, edx
mov eax, 8
cmovne ebx, eax
mov r15d, dword [r15 + 0x3c]
lea rsi, [rdi + 0x18]
xor r14d, r14d
test r13d, r13d
js 0x14003bd71
cmp r14d, r13d
jge 0x14003be4a
mov ebp, dword [rdi + 0x18]
lea rsi, [rdi + 0x18]
cmp ebp, r15d
ja 0x14003be4a
test ebx, ebx
jne 0x14003be8d
mov rax, qword [rdi + 0x28]
xor edx, edx
mov rcx, qword [rax + 8]
mov eax, dword [0x1400e6258]
div dword [rcx + 0x30]
inc eax
cmp ebp, eax
je 0x14003be40
mov rax, qword [rsp + 0x30]
lea r9d, [rbx + 2]
lea r8, [rsp + 0x38]
mov edx, ebp
mov rcx, rax
call qword [rax + pe_nt_image_headers64]
mov ebx, eax
test eax, eax
jne 0x14003be40
mov r8, qword [rsp + 0x38]
xor r9d, r9d
mov edx, ebp
mov rcx, rdi
mov r8, qword [r8 + 8]
call fcn.14003b8b0
mov r8, qword [rsp + 0x38]
mov ebx, eax
test r8, r8
je 0x14003be40
test byte [r8 + 0x34], 0x20
je 0x14003be38
mov r10, qword [r8 + 0x28]
dec dword [r10 + 0x98]
mov rax, qword [r10 + 0xa8]
mov qword [r8 + 0x20], rax
movsxd rax, dword [r10 + 0xbc]
mov rcx, qword [r10 + 0x48]
mov qword [r10 + 0xa8], r8
mov edx, dword [r8 + 0x30]
mov r8, qword [r8 + 8]
dec edx
mov r9, qword [rcx]
imul rdx, rax
call qword [r9 + 0x90]
inc dword [rsi]
inc r14d
jmp 0x14003bd63
mov rcx, r8
call fcn.140021de0
inc dword [rsi]
inc r14d
jmp 0x14003bd63
test ebx, ebx
jne 0x14003be8d
mov eax, r15d
mov dword [rdi + 0x38], r15d
sub eax, dword [rsi]
inc eax
mov dword [rdi + 0x34], eax
cmp dword [rsi], r15d
ja 0x14003be96
cmp dword [rdi + 0x3c], ebx
jne 0x14003c243
mov rax, qword [rdi + 0x28]
mov rcx, qword [rax + 8]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x70]
mov qword [rdi + 0x40], rax
mov qword [rdx + 0x70], rdi
mov dword [rdi + 0x3c], 1
jmp 0x14003c243
cmp ebx, 0x65
jne 0x14003c243
test r15d, r15d
jne 0x14003bef3
mov rsi, qword [rdi + 8]
cmp byte [rsi + 0x11], r15b
je 0x14003beb6
inc dword [rsi + 0x14]
cmp byte [rsi + 0x12], r15b
jne 0x14003beb6
mov rcx, rsi
call fcn.14002d2c0
mov rax, qword [rsi + 8]
mov dword [rax + 0x3c], 0
mov rcx, qword [rsi + 8]
call fcn.140030880
cmp byte [rsi + 0x11], 0
mov ebx, eax
je 0x14003bee0
sub dword [rsi + 0x14], 1
jne 0x14003bee0
mov rcx, rsi
call fcn.14002d270
mov r15d, 1
test ebx, ebx
je 0x14003bef3
cmp ebx, 0x65
jne 0x14003c243
mov r8d, dword [rdi + 0x10]
mov edx, 1
mov rcx, qword [rdi + 8]
inc r8d
call fcn.140039b40
mov ebx, eax
test eax, eax
jne 0x14003c243
mov rcx, qword [rdi]
test rcx, rcx
je 0x14003bf1f
call fcn.140068f80
cmp r12b, 5
jne 0x14003bf3d
mov rcx, qword [rdi + 8]
mov edx, 2
call fcn.14003b480
mov ebx, eax
test eax, eax
jne 0x14003c243
movsxd r9, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x24]
cmp r9d, ecx
jge 0x14003c20a
mov eax, ecx
movsxd r13, r15d
cdq
mov r12, r9
idiv r9d
mov ecx, eax
dec eax
add eax, r15d
mov r15, qword [rsp + 0x40]
cdq
idiv ecx
mov r14, qword [r15 + 0x48]
xor edx, edx
mov ebp, dword [r15 + 0x1c]
mov r8d, eax
mov rax, qword [rdi + 8]
lea esi, [r8 - 1]
mov rcx, qword [rax + 8]
mov eax, dword [0x1400e6258]
div dword [rcx + 0x30]
inc eax
cmp r8d, eax
cmovne esi, r8d
imul r13, r9
nop dword [rax]
cmp esi, ebp
ja 0x14003c0a2
mov rax, qword [rdi + 8]
xor edx, edx
mov rcx, qword [rax + 8]
mov eax, dword [0x1400e6258]
div dword [rcx + 0x30]
inc eax
cmp esi, eax
je 0x14003c093
xor r9d, r9d
lea r8, [rsp + 0x38]
mov edx, esi
mov rcx, r15
call qword [r15 + pe_nt_image_headers64]
mov ebx, eax
test eax, eax
jne 0x14003c093
mov r8, qword [rsp + 0x38]
test byte [r8 + 0x34], 4
mov rcx, qword [r8 + 0x28]
je 0x14003c012
mov eax, dword [r8 + 0x30]
cmp dword [rcx + 0x1c], eax
jb 0x14003c012
cmp dword [rcx + 0x80], ebx
je 0x14003c00e
mov rcx, r8
call fcn.1400269a0
jmp 0x14003c036
xor ebx, ebx
jmp 0x14003c03d
mov ebx, dword [rcx + 0x2c]
test ebx, ebx
jne 0x14003c03d
mov eax, dword [rcx + 0xbc]
cmp dword [rcx + 0xb8], eax
mov rcx, r8
jbe 0x14003c031
call fcn.140028960
jmp 0x14003c036
call fcn.140028850
mov r8, qword [rsp + 0x38]
mov ebx, eax
test r8, r8
je 0x14003c093
test byte [r8 + 0x34], 0x20
je 0x14003c08b
mov r10, qword [r8 + 0x28]
dec dword [r10 + 0x98]
mov rax, qword [r10 + 0xa8]
mov qword [r8 + 0x20], rax
movsxd rax, dword [r10 + 0xbc]
mov rcx, qword [r10 + 0x48]
mov qword [r10 + 0xa8], r8
mov edx, dword [r8 + 0x30]
mov r8, qword [r8 + 8]
dec edx
mov r9, qword [rcx]
imul rdx, rax
call qword [r9 + 0x90]
jmp 0x14003c093
mov rcx, r8
call fcn.140021de0
inc esi
test ebx, ebx
je 0x14003bfa0
jmp 0x14003c243
test ebx, ebx
jne 0x14003c0b6
xor edx, edx
lea r8d, [rbx + 1]
mov rcx, r15
call fcn.140028c80
mov ebx, eax
mov eax, dword [rsp + 0x24]
add eax, dword [0x1400e6258]
movsxd rbp, eax
mov eax, dword [rsp + 0x20]
cmp rbp, r13
cmovge rbp, r13
add eax, dword [0x1400e6258]
movsxd rsi, eax
test ebx, ebx
jne 0x14003c243
nop
cmp rsi, rbp
jge 0x14003c1a1
mov rax, rsi
mov qword [rsp + 0x38], 0
cqo
lea r8, [rsp + 0x38]
idiv r12
xor r9d, r9d
lea edx, [rax + 1]
mov rax, qword [rsp + 0x30]
mov rcx, rax
call qword [rax + pe_nt_image_headers64]
mov ebx, eax
test eax, eax
jne 0x14003c136
mov rax, qword [rsp + 0x38]
mov r9, rsi
mov r10, qword [r14]
mov rcx, r14
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rax + 8]
call qword [r10 + 0x18]
mov ebx, eax
mov r8, qword [rsp + 0x38]
test r8, r8
je 0x14003c191
test byte [r8 + 0x34], 0x20
je 0x14003c189
mov r10, qword [r8 + 0x28]
dec dword [r10 + 0x98]
mov rax, qword [r10 + 0xa8]
mov qword [r8 + 0x20], rax
movsxd rax, dword [r10 + 0xbc]
mov rcx, qword [r10 + 0x48]
mov qword [r10 + 0xa8], r8
mov edx, dword [r8 + 0x30]
mov r8, qword [r8 + 8]
dec edx
mov r9, qword [rcx]
imul rdx, rax
call qword [r9 + 0x90]
jmp 0x14003c191
mov rcx, r8
call fcn.140021de0
add rsi, r12
test ebx, ebx
je 0x14003c0e0
jmp 0x14003c243
mov rax, qword [r14]
lea rdx, [rsp + 0x40]
mov rcx, r14
call qword [rax + 0x30]
mov ebx, eax
test eax, eax
jne 0x14003c1ca
cmp qword [rsp + 0x40], r13
jle 0x14003c1ca
mov rax, qword [r14]
mov rdx, r13
mov rcx, r14
call qword [rax + 0x20]
mov ebx, eax
test ebx, ebx
jne 0x14003c243
mov rcx, qword [r15 + 0x48]
mov rax, qword [rcx]
test rax, rax
je 0x14003c1ed
xor r8d, r8d
lea edx, [rbx + 0x15]
call qword [rax + 0x50]
cmp eax, 0xc
cmovne ebx, eax
test ebx, ebx
jne 0x14003c243
xor ebx, ebx
cmp byte [r15 + 0xb], bl
jne 0x14003c228
movzx edx, byte [r15 + 0xe]
mov rcx, qword [r15 + 0x48]
test edx, edx
je 0x14003c228
mov rax, qword [rcx]
call qword [rax + 0x28]
jmp 0x14003c226
mov eax, r9d
xor r8d, r8d
cdq
idiv ecx
mov rcx, qword [rsp + 0x40]
xor edx, edx
imul eax, r15d
mov dword [rcx + 0x1c], eax
call fcn.140028c80
mov ebx, eax
test ebx, ebx
jne 0x14003c243
mov rcx, qword [rdi + 8]
xor edx, edx
call fcn.140031d20
mov ebx, eax
mov eax, 0x65
test ebx, ebx
cmove ebx, eax
cmp dword [rsp + 0x28], 0
mov r15, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
mov r12, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x88]
je 0x14003c27f
mov rcx, qword [rdi + 0x28]
xor edx, edx
call fcn.140031ae0
mov rcx, qword [rdi + 0x28]
xor edx, edx
call fcn.140031d20
cmp ebx, 0xc0a
mov eax, 7
cmove ebx, eax
mov dword [rdi + 0x30], ebx
mov rax, qword [rdi]
mov r13, qword [rsp + 0x60]
test rax, rax
je 0x14003c2ac
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x14003c2ac
call qword [0x1400e6140]
mov rcx, qword [rdi + 0x28]
cmp byte [rcx + 0x11], 0
je 0x14003c2c1
sub dword [rcx + 0x14], 1
jne 0x14003c2c1
call fcn.14002d270
mov rcx, qword [rdi + 0x20]
mov rdi, qword [rsp + 0x98]
mov rcx, qword [rcx + 0x18]
test rcx, rcx
je 0x14003c2dc
call qword [0x1400e6140]
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400c69d0
add rsp, 0x70
pop rbx
ret