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

Disassembly:
mov dword [rsp + 0x20], r9d
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov rbp, qword [rcx + 8]
mov r14d, r8d
mov rbx, qword [rcx]
mov r12d, edx
mov rdi, qword [rcx + 0x10]
mov rsi, rcx
mov dword [rsp + 0x34], 0
movzx eax, byte [rbp + 0x20]
mov r13d, dword [rbx + 0x44]
dec r13d
mov byte [rsp + 0x88], al
xor eax, eax
mov dword [rbx + 0x44], r13d
mov dword [rsp + 0x30], eax
cmp edx, 2
jne 0x1401679aa
cmp byte [rbp + 0x21], 0x5a
je 0x140167e63
mov r9d, 0x39
test r14d, r14d
jle 0x140167a3c
cmp byte [rbp + 0x20], 0x59
jne 0x140167a24
mov eax, dword [rdi + 0x90]
mov dword [rsp + 0x30], eax
cmp r12d, 2
jne 0x140167a02
movzx ecx, byte [rbp + 0x21]
cmp cl, 0x56
jne 0x1401679de
mov r8d, dword [rsi + 0x30]
jmp 0x1401679e2
mov r8d, dword [rsi + 0x28]
cmp cl, 0x56
mov edx, 0x37
mov eax, 0x28
cmovne edx, r9d
mov r9d, 0x30
cmovne eax, r9d
mov ecx, dword [rax + rsi]
jmp 0x140167a0e
mov r8d, dword [rcx + 0x38]
mov edx, 0x36
mov ecx, dword [rcx + 0x30]
mov dword [rsp + 0x28], r13d
mov r9d, r14d
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call fcn.140167e80
jmp 0x140167a3c
mov r9d, r13d
mov dword [rsp + 0x20], 1
mov edx, 0x2f
mov rcx, rdi
call fcn.14013f680
cmp r12d, 1
jne 0x140167a55
cmp dword [rbp + 0x84], 0
jne 0x140167a55
xor edx, edx
mov rcx, rsi
call fcn.140166740
mov eax, dword [rdi + 0x90]
mov dword [rsp + 0x38], eax
movzx eax, byte [rbp + 0x22]
mov qword [rsp + 0x90], r15
cmp byte [rbp + 0x21], al
jne 0x140167b4c
test r14d, r14d
je 0x140167b4c
cmp byte [rbp + 0x20], 0x59
jne 0x140167b4c
cmp r12d, 2
jne 0x140167b4c
movzx eax, byte [rbx + 0x1f]
test al, al
jne 0x140167aa9
inc dword [rbx + 0x38]
mov r15d, dword [rbx + 0x38]
inc dword [rbx + 0x38]
mov r14d, dword [rbx + 0x38]
jmp 0x140167ad6
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov r15d, dword [rbx + rax*4 + 0xcc]
test al, al
jne 0x140167ac6
inc dword [rbx + 0x38]
mov r14d, dword [rbx + 0x38]
jmp 0x140167ad6
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov r14d, dword [rbx + rax*4 + 0xcc]
mov r8d, dword [rsi + 0x28]
mov r9d, r15d
mov edx, 0x80
mov rcx, rdi
call fcn.14013f610
mov r8d, dword [rsi + 0x38]
mov r9d, r14d
mov edx, 0x80
mov rcx, rdi
call fcn.14013f610
mov r9d, r13d
mov dword [rsp + 0x20], r15d
mov r8d, r14d
mov edx, 0x39
mov rcx, rdi
call fcn.14013f680
test r15d, r15d
je 0x140167b31
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x140167b31
movzx eax, al
mov dword [rbx + rax*4 + 0xcc], r15d
inc byte [rbx + 0x1f]
test r14d, r14d
je 0x140167b4c
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x140167b4c
movzx eax, al
mov dword [rbx + rax*4 + 0xcc], r14d
inc byte [rbx + 0x1f]
mov ecx, r12d
sub ecx, 1
je 0x140167bf2
cmp ecx, 1
je 0x140167bab
cmp dword [rbp + 0x84], 0
mov r14d, dword [rsi + 0x3c]
mov r15d, dword [rsi + 0x38]
mov dword [rsp + 0x80], r14d
je 0x140167b91
mov r8d, dword [rbp + 0x88]
mov r9d, 1
mov rcx, rdi
lea edx, [r9 + 0x52]
call fcn.14013f610
jmp 0x140167c08
mov eax, dword [rsi + 0x20]
xor r9d, r9d
mov r8d, r15d
mov dword [rsp + 0x20], eax
mov rdx, rbp
mov rcx, rsi
call fcn.140166b30
jmp 0x140167c08
mov r8d, dword [rbp + 0x84]
mov r9d, 1
mov r14d, dword [rsi + 0x2c]
mov r15d, dword [rsi + 0x28]
mov dword [rsp + 0x80], r14d
test r8d, r8d
je 0x140167bdb
lea edx, [r9 + 0x52]
mov rcx, rdi
call fcn.14013f610
jmp 0x140167c08
mov eax, dword [rsi + 0x20]
mov r8d, r15d
mov rdx, rbp
mov dword [rsp + 0x20], eax
mov rcx, rsi
call fcn.140166b30
jmp 0x140167c08
mov eax, dword [rsi + 0x34]
mov rcx, rsi
mov r15d, dword [rsi + 0x30]
mov dword [rsp + 0x80], eax
call fcn.140169300
cmp r12d, dword [rsi + 0x24]
jne 0x140167c3e
mov r8d, r15d
mov edx, 0x7b
mov rcx, rdi
call fcn.14013f5a0
movsxd rax, dword [rdi + 0x90]
test eax, eax
jle 0x140167c3e
lea rcx, [rax + rax*2]
mov edx, 2
mov rax, qword [rdi + 0x88]
mov word [rax + rcx*8 - 0x16], dx
movsxd rcx, dword [rdi + 0x90]
xor r12d, r12d
mov eax, dword [rdi + 0x94]
cmp dword [rsp + 0x98], r12d
je 0x140167cc3
lea edx, [rcx + 2]
cmp eax, ecx
jg 0x140167c79
mov r9d, edx
mov dword [rsp + 0x20], r12d
lea edx, [r12 + 5]
mov r8d, r15d
mov rcx, rdi
call fcn.1400fb2d0
jmp 0x140167ca7
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 5
mov dword [rax + rcx*8 + 4], r15d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], r12
mov edx, VariantTimeToDosDateTime
mov rcx, rdi
call fcn.14013f530
movzx r14d, byte [rsp + 0x88]
mov dword [rsp + 0x34], eax
jmp 0x140167d42
movzx r14d, byte [rsp + 0x88]
mov edx, r12d
cmp r14b, 0x4c
setne dl
inc edx
add edx, ecx
cmp eax, ecx
jg 0x140167cf8
mov r9d, edx
mov dword [rsp + 0x20], r12d
mov edx, 5
mov r8d, r15d
mov rcx, rdi
call fcn.1400fb2d0
jmp 0x140167d26
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 5
mov dword [rax + rcx*8 + 4], r15d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], r12
cmp r14b, 0x4c
je 0x140167dd1
xor r8d, r8d
mov r9d, r13d
mov rcx, rdi
lea edx, [r8 + 0xb]
call fcn.14013f610
cmp r14b, 0x4c
je 0x140167dd1
mov rax, qword [rbp + 0x18]
test rax, rax
je 0x140167d6d
mov r14d, dword [rax]
test r14d, r14d
je 0x140167d70
mov edx, r14d
mov rcx, rbx
call fcn.140127590
mov r12d, eax
jmp 0x140167d70
mov r14d, r12d
mov r8d, r12d
mov edx, r15d
mov rcx, rsi
call fcn.1401691f0
mov eax, dword [rsp + 0x38]
mov r8d, r12d
mov r9d, dword [rsp + 0x80]
mov rcx, rbx
mov rdx, qword [rbp + 0x18]
mov dword [rsp + 0x20], eax
call fcn.140168d10
cmp r14d, 1
jne 0x140167dc0
test r12d, r12d
je 0x140167dce
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x140167dce
movzx eax, al
mov dword [rbx + rax*4 + 0xcc], r12d
inc byte [rbx + 0x1f]
jmp 0x140167dce
cmp r14d, dword [rbx + 0x28]
jle 0x140167dce
mov dword [rbx + 0x28], r14d
mov dword [rbx + 0x2c], r12d
xor r12d, r12d
mov edx, dword [rsp + 0x30]
mov r15, qword [rsp + 0x90]
test edx, edx
je 0x140167e33
movsxd rcx, dword [rdi + 0x90]
cmp dword [rdi + 0x94], ecx
jg 0x140167e09
xor r8d, r8d
mov dword [rsp + 0x20], r12d
mov r9d, edx
mov rcx, rdi
lea edx, [r8 + 0xb]
call fcn.1400fb2d0
jmp 0x140167e33
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov qword [rax + rcx*8], VariantTimeToDosDateTime
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], r12
mov rcx, qword [rdi + 0x18]
not r13d
mov eax, dword [rcx + 0x48]
add eax, dword [rcx + 0x44]
jns 0x140167e4f
mov r8d, r13d
mov rdx, rdi
call fcn.1401099f0
jmp 0x140167e5f
mov rcx, qword [rcx + 0x50]
mov eax, dword [rdi + 0x90]
movsxd rdx, r13d
mov dword [rcx + rdx*4], eax
mov eax, dword [rsp + 0x34]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret