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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
xor ebx, ebx
xor r15d, r15d
mov rbp, qword [rcx]
mov rsi, qword [rcx + 0x10]
mov rax, qword [rbp]
mov rdi, qword [rbp + 8]
mov qword [rsp + 0x48], rax
mov rax, qword [rcx + 8]
mov r12, rdx
mov r13, rcx
mov dword [rsp + 0x8c], 0
mov qword [rsp + 0x50], rax
movzx eax, byte [rsi + 0x10]
mov r10, rax
mov dword [rsp + 0x68], eax
movzx eax, al
imul rax, rax, 0x68
imul r10, r10, 0x68
lea rdx, [rdi + rax + 8]
mov rax, qword [rbp + 0x10]
add r10, rdi
mov qword [rsp + 0x60], rax
mov rax, qword [r10 + 0x28]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x50]
mov r11, qword [rax + 0x20]
mov eax, dword [rax + 0x14]
mov dword [rsp + 0x58], eax
cmp r15d, dword [rsp + 0x58]
jge 0x140227349
mov ax, word [r11 + 0x12]
mov ecx, dword [r10 + 0x4c]
mov r14d, eax
and r14d, 0xffffffbf
mov word [r11 + 0x12], r14w
cmp dword [r11 + 0x1c], ecx
jne 0x140227340
mov rcx, r8
and rcx, qword [r11 + 0x28]
jne 0x140227340
movzx ecx, word [r11 + 0x14]
and ecx, 0xf7ff
je 0x140227340
test al, 0x80
jne 0x140227340
test byte [r10 + 0x44], 0x58
je 0x140227335
mov rcx, qword [r11]
mov qword [rsp + 0xf0], r8
call fcn.14018a0a0
mov r8, qword [rsp + 0xf0]
test eax, eax
je 0x140227340
or r14d, 0x40
inc ebx
mov word [r11 + 0x12], r14w
inc r15d
add r11, 0x38
jmp 0x1402272d6
cmp qword [rsp + 0x60], 0
jne 0x140227360
mov dword [rsp + 0x58], 0
xor edi, edi
jmp 0x140227452
mov rax, qword [rsp + 0x60]
mov dword [rsp + 0x58], 0
mov eax, dword [rax]
mov dword [rsp + 0x7c], eax
mov rax, qword [rsp + 0x60]
lea r14, [rax + 8]
movsxd rax, dword [rsp + 0x68]
imul rax, rax, 0x68
add rdi, rax
mov edx, dword [rsp + 0x58]
cmp dword [rsp + 0x7c], edx
jle 0x14022742c
mov r15, qword [r14]
mov rcx, r15
call fcn.1401db410
test eax, eax
je 0x1402273af
inc dword [rsp + 0x58]
add r14, 0x20
jmp 0x140227388
test byte [r14 + 0x10], 2
jne 0x140227351
mov al, byte [r15]
cmp al, 0xa7
jne 0x1402273c6
mov eax, dword [rdi + 0x4c]
cmp dword [r15 + 0x2c], eax
jmp 0x140227421
cmp al, 0x71
jne 0x140227351
mov rax, qword [r15 + 0x10]
cmp byte [rax], 0xa7
jne 0x140227351
mov ecx, dword [rdi + 0x4c]
cmp dword [rax + 0x2c], ecx
jne 0x140227351
movsx rcx, word [rax + 0x30]
mov word [r15 + 0x30], cx
test cx, cx
js 0x1402273a5
mov rax, qword [rsp + 0x70]
imul rcx, rcx, 0x18
add rcx, qword [rax + 8]
call fcn.1401d3470
mov r8, rax
test rax, rax
jne 0x140227413
lea r8, str.BINARY
mov rcx, qword [r15 + 8]
mov rdx, r8
call fcn.14021a780
test eax, eax
jne 0x140227351
jmp 0x1402273a5
jne 0x140227351
mov edi, dword [rbp + 0x3c]
test dil, 0x80
je 0x14022744b
and di, 0x200
cmp di, 1
sbb edi, edi
add edi, 3
jmp 0x140227452
shr di, 6
and edi, 1
movsxd rbx, ebx
movsxd r15, dword [rsp + 0x58]
imul rax, rbx, 0x1c
shl r15, 3
lea rdx, [r15 + rax + 0x88]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax]
call fcn.1401d5730
mov r14, rax
test rax, rax
jne 0x140227495
mov rcx, qword [rsp + 0x48]
lea rdx, [0x1402ce280]
call fcn.1401d7cf0
jmp 0x14022766c
lea rbp, [rax + rbx*8 + 0x80]
mov word [rsp + 0x68], 0
xor r10d, r10d
imul rbx, rbx, 0xc
mov qword [rax + 8], rbp
add rbx, rbp
add r15, rbx
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], r15
mov rax, qword [rsp + 0x50]
mov r15d, 1
mov dword [r14 + 0x74], 0
mov qword [r14 + 0x60], rax
mov rax, qword [rsp + 0x48]
mov dword [r14 + 0x70], edi
xor edi, edi
mov qword [r14 + 0x68], rax
mov rax, qword [rsp + 0x50]
mov r11, qword [rax + 0x20]
mov eax, dword [rax + 0x14]
mov dword [rsp + 0x70], eax
cmp edi, dword [rsp + 0x70]
jge 0x1402275cf
mov ax, word [r11 + 0x12]
test al, 0x40
je 0x1402275c4
movsxd r9, r10d
mov edx, dword [r11 + 0x20]
imul r9, r9, 0xc
add r9, rbp
mov dword [r9], edx
mov edx, dword [r11 + 0x14]
mov dword [r9 + 8], edi
and dx, 0x3fff
cmp dx, 1
jne 0x140227559
mov edx, 2
test ax, ax
js 0x140227565
mov eax, dword [r14 + 0x74]
xor edx, edx
cmp r10d, 0x1f
jg 0x14022754c
mov edx, r15d
mov ecx, r10d
shl edx, cl
or eax, edx
mov edx, 2
mov dword [r14 + 0x74], eax
jmp 0x140227565
cmp dx, 0x40
jne 0x140227565
mov al, byte [r11 + 0x17]
jmp 0x140227577
test dx, 0x180
je 0x14022757d
cmp dx, 0x100
setne al
add eax, 0x47
mov byte [r9 + 4], al
jmp 0x1402275c1
mov byte [r9 + 4], dl
test dl, 0x3c
je 0x1402275c1
mov rax, qword [r11]
mov rcx, qword [rax + 0x18]
call fcn.1401db4c0
test eax, eax
je 0x1402275c1
cmp r10d, 0xf
jg 0x1402275a9
mov eax, r15d
mov ecx, r10d
shl eax, cl
or word [rsp + 0x68], ax
cmp dx, 0x10
jne 0x1402275b6
mov byte [r9 + 4], 8
jmp 0x1402275c1
cmp dx, 4
jne 0x1402275c1
mov byte [r9 + 4], 0x20
inc r10d
inc edi
add r11, 0x38
jmp 0x1402274f3
movsxd rdi, dword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov dword [r14], r10d
xor r15d, r15d
shl rdi, 5
lea rax, [rbp + rdi]
mov qword [rsp + 0x58], rax
cmp rbp, qword [rsp + 0x58]
je 0x140227623
mov rdi, qword [rbp + 8]
mov rcx, rdi
call fcn.1401db410
test eax, eax
jne 0x14022761d
movsxd rax, r15d
inc r15d
lea rdx, [rbx + rax*8]
movsx eax, word [rdi + 0x30]
mov dword [rdx], eax
mov al, byte [rbp + 0x18]
and eax, 1
mov byte [rdx + 4], al
add rbp, 0x20
jmp 0x1402275ed
mov dword [r14 + 0x10], r15d
mov rdx, rsi
and byte [rsi + 0x1c], 0xfe
mov eax, dword [r14]
mov word [rsi + 0x12], 0
mov dword [rsp + 0x58], eax
mov r8d, eax
mov rax, qword [rsp + 0x48]
mov dword [rsi + 0x38], 0x400
mov word [rsi + 0x3c], 0
mov rcx, qword [rax]
call fcn.140228350
test eax, eax
je 0x140227676
mov rax, qword [rsp + 0x48]
mov rdx, r14
mov rcx, qword [rax]
call fcn.140190ec0
mov eax, 7
jmp 0x1402278dc
movzx edi, word [rsp + 0x68]
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov rdx, r12
lea rax, [rsp + 0x8c]
lea rbx, [rsp + 0x88]
or r8, 0xffffffffffffffff
mov rcx, r13
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], edi
call fcn.1402278f0
cmp dword [rsp + 0x8c], 0
je 0x1402276e3
mov qword [rsp + 0x30], rbx
xor r9d, r9d
or r8, 0xffffffffffffffff
mov rdx, r12
mov qword [rsp + 0x38], 0
mov rcx, r13
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r14
call fcn.1402278f0
test eax, eax
jne 0x1402278ac
mov rbp, r12
mov eax, dword [rsp + 0x88]
not rbp
mov rcx, rbp
and rcx, qword [rsi]
mov qword [rsp + 0x68], rcx
jne 0x14022770e
test eax, eax
jne 0x14022771e
jmp 0x1402278ac
mov qword [rsp + 0x60], 0
xor r11d, r11d
test eax, eax
je 0x14022775d
mov qword [rsp + 0x30], rbx
or r8, 0xffffffffffffffff
mov rdx, r12
mov rcx, r13
mov dword [rsp + 0x28], edi
mov r9d, 1
mov rbx, rbp
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x20], r14
call fcn.1402278f0
and rbx, qword [rsi]
mov qword [rsp + 0x60], rbx
sete r11b
movzx r11d, r11b
lea rbx, [rsp + 0x88]
mov r15d, r11d
xor r8d, r8d
mov qword [rsp + 0x70], rbx
test eax, eax
jne 0x14022782e
xor ecx, ecx
or rbx, 0xffffffffffffffff
cmp dword [rsp + 0x58], ecx
jle 0x1402277bc
imul rdx, rcx, 0xc
add rdx, qword [r14 + 8]
mov r10, qword [rsp + 0x50]
movsxd rdx, dword [rdx + 8]
imul rdx, rdx, 0x38
add rdx, qword [r10 + 0x20]
mov r9, qword [rdx + 0x28]
and r9, rbp
mov rdx, r9
cmp r8, r9
jae 0x1402277b1
cmp rbx, r9
ja 0x1402277b4
mov rdx, rbx
inc rcx
mov rbx, rdx
jmp 0x14022777e
cmp rbx, 0xffffffffffffffff
je 0x14022782e
cmp rbx, qword [rsp + 0x68]
je 0x140227826
cmp rbx, qword [rsp + 0x60]
je 0x140227826
mov rax, qword [rsp + 0x70]
mov dword [rsp + 0x28], edi
mov r8, rbx
xor r9d, r9d
mov qword [rsp + 0x20], r14
or r8, r12
mov rdx, r12
mov rcx, r13
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x7c], r11d
call fcn.1402278f0
cmp qword [rsi], r12
mov r11d, dword [rsp + 0x7c]
jne 0x140227826
cmp dword [rsp + 0x88], 0
mov edx, 1
mov r11d, 1
cmove r15d, edx
mov r8, rbx
jmp 0x140227770
or r11d, eax
jne 0x140227874
mov dword [rsp + 0x28], edi
xor r9d, r9d
mov rdx, r12
mov r8, r12
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], r14
mov rcx, r13
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], rax
call fcn.1402278f0
cmp dword [rsp + 0x88], 0
mov edx, 1
cmove r15d, edx
or r15d, eax
jne 0x1402278ac
mov dword [rsp + 0x28], edi
mov r9d, 1
mov r8, r12
mov rdx, r12
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], r14
mov rcx, r13
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], rax
call fcn.1402278f0
cmp dword [r14 + 0x38], 0
je 0x1402278c4
mov rcx, qword [r14 + 0x30]
mov dword [rsp + 0x50], eax
call fcn.140216000
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x48]
mov rdx, r14
mov rcx, qword [rax]
call fcn.140190ec0
mov eax, dword [rsp + 0x50]
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret