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

Disassembly:
push rbx
push rbp
sub rsp, 0x28
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rdi
mov rdi, qword [rcx + 8]
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x20], r13
xor r13d, r13d
mov r12d, edx
mov rbp, rcx
mov ebx, r13d
call fcn.14013f800
movzx eax, byte [rbp + 0x10]
cmp al, 2
je 0x140182058
cmp al, 1
jne 0x140181e09
test r12d, r12d
je 0x140182071
cmp byte [rdi + 0x20], bl
je 0x140181e1d
test r12d, r12d
je 0x140181e28
mov ebx, 8
jmp 0x140182071
test r12d, r12d
je 0x140181e28
cmp byte [rdi + 0x27], 2
je 0x140181e30
cmp byte [rdi + 0x89], bl
je 0x140181e39
mov rax, qword [rdi + 0x80]
jmp 0x140181e7d
cmp r12d, 1
jle 0x140181e56
mov rax, qword [rdi + 0x78]
test rax, rax
je 0x140181e56
cmp qword [rax], rbp
jne 0x140181e7a
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140181e48
mov rax, qword [rbp + 8]
cmp byte [rbp + 0x11], bl
je 0x140181eb2
cmp qword [rax + 0x80], rbp
je 0x140181e8f
cmp byte [rax + 0x88], bl
je 0x140181e8f
mov ebx, 0x106
jmp 0x140182071
mov rax, qword [rax]
mov rcx, qword [rax]
test rcx, rcx
je 0x140181e56
mov ebx, 0x106
jmp 0x140182071
mov rax, qword [rax + 0x78]
test rax, rax
je 0x140181eb2
cmp qword [rax], rbp
je 0x140181ea9
cmp dword [rax + 8], 1
jne 0x140181ea9
cmp byte [rax + 0xc], 1
jne 0x140181e85
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140181e98
cmp dword [rdi + 0x40], r13d
sete al
mov byte [rdi + 0x23], al
nop dword [rax]
cmp qword [rdi + 0x18], r13
jne 0x140181ed6
mov rcx, rdi
call fcn.140180490
mov ebx, eax
test eax, eax
je 0x140181ec0
jmp 0x140181f21
test ebx, ebx
jne 0x140181f21
test r12d, r12d
je 0x140181f5b
cmp byte [rdi + 0x20], r13b
je 0x140181eec
mov ebx, 8
jmp 0x140181f21
mov rax, qword [rbp]
mov rcx, qword [rdi]
mov r8d, r13d
cmp byte [rax + 0x29], 2
mov edx, r13d
sete r8b
cmp r12d, 1
setg dl
call fcn.1401431e0
mov ebx, eax
test eax, eax
jne 0x140181f21
mov rcx, rdi
call fcn.140168600
mov ebx, eax
test eax, eax
je 0x140181f5b
cmp byte [rdi + 0x27], r13b
jne 0x140181f5b
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x140181f5b
mov rcx, qword [rcx + 0x78]
test rcx, rcx
je 0x140181f57
mov rsi, qword [rcx + 0x20]
call fcn.14013c530
mov r11, qword [rsi + 0xe0]
cmp dword [r11 + 0x18], r13d
jne 0x140181f57
mov rcx, rsi
call fcn.140173450
mov qword [rdi + 0x18], r13
cmp bl, 5
jne 0x140181f9b
cmp byte [rdi + 0x27], r13b
jne 0x140181f9b
mov rsi, qword [rdi + 8]
add rsi, 0x2b8
je 0x140181f9b
mov rax, qword [rsi]
test rax, rax
je 0x140181f9b
mov edx, dword [rsi + 0x10]
test edx, edx
js 0x140181f9b
mov rcx, qword [rsi + 8]
call rax
test eax, eax
je 0x140181f94
inc dword [rsi + 0x10]
jmp 0x140181ec0
mov dword [rsi + 0x10], 0xffffffff
test ebx, ebx
jne 0x140182071
cmp byte [rbp + 0x10], r13b
jne 0x140181fc6
inc dword [rdi + 0x3c]
cmp byte [rbp + 0x11], r13b
je 0x140181fc6
mov byte [rbp + 0x3c], 1
mov rax, qword [rdi + 0x78]
mov qword [rbp + 0x40], rax
lea rax, [rbp + 0x30]
mov qword [rdi + 0x78], rax
test r12d, r12d
setne al
inc al
mov byte [rbp + 0x10], al
cmp al, byte [rdi + 0x27]
jbe 0x140181fd9
mov byte [rdi + 0x27], al
test r12d, r12d
je 0x140182071
mov rsi, qword [rdi + 0x18]
mov qword [rdi + 0x80], rbp
cmp r12d, 1
setg al
mov byte [rdi + 0x88], al
mov rcx, qword [rsi + 0x70]
movzx eax, byte [rcx + 0x1d]
movzx edx, byte [rcx + 0x1c]
shl edx, 8
or edx, eax
movzx eax, byte [rcx + 0x1e]
shl edx, 8
or edx, eax
movzx eax, byte [rcx + 0x1f]
shl edx, 8
or edx, eax
cmp dword [rdi + 0x40], edx
je 0x140182058
mov rcx, qword [rsi + 0x78]
call fcn.1401650e0
mov ebx, eax
test eax, eax
jne 0x140182071
mov r8d, dword [rdi + 0x40]
mov rdx, qword [rsi + 0x70]
mov eax, r8d
mov byte [rdx + 0x1f], r8b
shr eax, 0x18
mov byte [rdx + 0x1c], al
mov eax, r8d
shr eax, 0x10
mov byte [rdx + 0x1d], al
mov eax, r8d
shr eax, 8
mov byte [rdx + 0x1e], al
test r12d, r12d
je 0x140182071
mov rax, qword [rbp]
mov rcx, qword [rdi]
mov edx, dword [rax + 0x320]
call fcn.140149190
mov ebx, eax
cmp byte [rbp + 0x11], 0
mov r13, qword [rsp + 0x20]
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
je 0x1401820a7
dec dword [rbp + 0x14]
jne 0x1401820a7
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 0x58]
test rcx, rcx
je 0x1401820a3
call qword [0x140470f00]
mov byte [rbp + 0x12], 0
mov eax, ebx
add rsp, 0x28
pop rbp
pop rbx
ret