Function at 0x1400a5bf0
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, 0x38
xor eax, eax
mov r13, qword [rsp + 0xa0]
mov qword [rsp + 0x88], rdx
mov edx, dword [r8 + 0x28]
mov rbp, r8
mov qword [rsp + 0x80], rcx
and dx, 0x380
mov qword [rsp + 0x98], r9
cmp dx, 0x180
jne 0x1400a626c
mov rdx, qword [r8 + 0xd0]
mov r14, qword [rdx + 0xe0]
test r14, r14
je 0x1400a626c
mov rcx, qword [r8 + 0xe0]
mov rdx, r8
lea r12, [r14 + 0x10]
mov rbx, r12
mov rax, qword [rcx + 8]
mov rax, qword [rax + 0x380]
call qword [rax + 0x270]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x88]
mov r15, qword [rax + 0x28]
mov eax, dword [r14]
imul rax, rax, 0x30
add rax, r12
cmp rbx, rax
jae 0x1400a6113
cmp dword [rbx + 0x14], 4
jne 0x1400a5cb8
cmp qword [rbp + 0xf8], 0
mov al, byte [rbx + 0x23]
setne dl
add edx, edx
and eax, 0xfffffffd
or eax, edx
mov byte [rbx + 0x23], al
jmp 0x1400a610a
test byte [rbx + 0x23], 1
jne 0x1400a610a
cmp qword [rbx], 0
je 0x1400a610a
mov rax, qword [r13]
test byte [rbp + 0x26], 0x10
je 0x1400a5d2f
test rax, rax
jne 0x1400a5d2f
movzx ecx, byte [rbx + 0x20]
mov edx, dword [rsp + 0x28]
mov r9d, ecx
call fcn.1400a4404
mov edx, dword [rbx + 0x18]
shr r9b, 3
mov rcx, qword [rsp + 0x80]
mov r8d, eax
mov eax, eax
and r9d, 1
lea rdx, [rdx + rax + 8]
add rdx, qword [rbp + 0xa0]
call fcn.1400a4680
test rax, rax
je 0x1400a610a
mov rax, qword [rsp + 0x88]
test byte [rax], 1
jne 0x1400a5d79
jmp 0x1400a5ddb
mov edx, dword [rbx + 0x10]
imul rdx, rdx, 0x18
add rax, rdx
mov qword [r13 + 8], rax
cmp rax, qword [r13 + 0x10]
jae 0x1400a5d4e
mov edx, dword [rbx + 0x18]
add edx, 8
cmp qword [rax], rdx
je 0x1400a5d5f
mov edx, 0x5ec
lea rcx, str._binutils_2.40_bfd_elf_eh_frame.c
call fcn.14004aa8a
mov eax, dword [rbx + 0x18]
mov rdx, r13
lea ecx, [rax + 8]
call qword [rsp + 0x98]
test al, al
jne 0x1400a610a
jmp 0x1400a5d1d
mov al, byte [rbx + 0x20]
and al, 0x70
jne 0x1400a5d86
test byte [rbx + 0x23], 8
jmp 0x1400a5d88
cmp al, 0x50
jne 0x1400a5ddb
mov rax, qword [rsp + 0x88]
mov byte [r15 + 0x13c], 0
test byte [rax + 4], 6
je 0x1400a5ddb
mov eax, dword [0x1401f90c0]
cmp eax, 9
jg 0x1400a5dc4
mov rdx, qword [rsp + 0x80]
mov r8, rbp
lea rcx, str.FDE_encoding_in__pB__pA__prevents_.eh_frame_hdr_table_being_created
call fcn.14004a982
jmp 0x1400a5dd5
cmp eax, 0xa
jne 0x1400a5ddb
lea rcx, str.further_warnings_about_FDE_encoding_preventing_.eh_frame_hdr_generation_dropped
call fcn.14004a982
inc dword [0x1401f90c0]
mov rdi, qword [rbx]
and byte [rbx + 0x23], 0xfd
inc dword [r15 + 0x138]
mov al, byte [rdi + 0x23]
test al, 2
je 0x1400a5e0b
mov rsi, qword [rdi]
test byte [rdi + 0xa], 0x40
jne 0x1400a6107
and eax, 0xfffffffd
mov qword [rdi], rbp
mov byte [rdi + 0x23], al
test rsi, rsi
jne 0x1400a5e13
mov rsi, rdi
jmp 0x1400a6107
cmp byte [rsi + 0x50], 0xff
je 0x1400a5f3c
mov eax, dword [rsi + 0x40]
mov rcx, qword [rsp + 0x80]
xor edx, edx
imul rax, rax, 0x18
add rax, qword [r13]
mov qword [rsi + 0x40], rdx
mov rdx, qword [rcx + 0x108]
mov r8, qword [rax + 8]
cmp byte [rdx + 4], 2
jne 0x1400a5e4d
shr r8, 0x20
jmp 0x1400a5e51
shr r8, 8
mov eax, r8d
cmp rax, qword [r13 + 0x28]
jae 0x1400a5e6a
shl rax, 5
add rax, qword [r13 + 0x18]
mov dl, byte [rax + 0x14]
shr dl, 4
je 0x1400a5ea3
mov rax, qword [r13 + 0x38]
sub r8d, dword [r13 + 0x30]
mov rcx, qword [rax + r8*8]
mov al, byte [rcx + 0x18]
sub eax, 6
cmp al, 1
ja 0x1400a5e86
mov rcx, qword [rcx + 0x28]
jmp 0x1400a5e76
mov qword [rsi + 0x40], rcx
mov rdx, qword [rsp + 0x88]
xor r8d, r8d
call fcn.140096cee
test al, al
jne 0x1400a5ef5
jmp 0x1400a5f3c
mov edx, dword [rax + 0x18]
mov rcx, qword [rsp + 0x80]
mov dword [rsp + 0x20], r8d
call fcn.140082e32
test rax, rax
je 0x1400a5e0b
mov rdx, qword [rax + 0xb8]
test rdx, rdx
cmove rdx, rax
cmp qword [rdx + 0x60], 0
je 0x1400a5e0b
mov rax, qword [rsp + 0x80]
mov r8d, dword [rsp + 0x20]
mov byte [rsi + 9], 1
mov eax, dword [rax + 0x3c]
mov dword [rsi + 0x44], r8d
mov dword [rsi + 0x40], eax
mov rax, qword [rsp + 0x88]
test byte [rax], 1
je 0x1400a5f3c
test byte [rsi + 0x50], 0x70
jne 0x1400a5f3c
mov rax, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x88]
mov r8, rbp
mov rcx, qword [rsp + 0x80]
mov rax, qword [rax + 8]
mov rax, qword [rax + 0x380]
call qword [rax + 0x278]
test al, al
je 0x1400a5f3c
or byte [rdi + 0xa], 0xc
xor r8d, r8d
mov edx, 4
mov rcx, rsi
call fcn.1400d198d
mov edx, 1
lea rcx, [rsi + 8]
mov r8d, eax
call fcn.1400d198d
lea rcx, [rsi + 0xa]
mov qword [rsp + 0x20], rcx
mov dword [rsp + 0x2c], eax
call sub.msvcrt.dll_strlen
mov r8d, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x20]
lea rdx, [rax + 1]
call fcn.1400d198d
lea rcx, [rsi + 0x20]
mov edx, 8
mov r8d, eax
call fcn.1400d198d
lea rcx, [rsi + 0x28]
mov edx, 8
mov r8d, eax
call fcn.1400d198d
lea rcx, [rsi + 0x30]
mov edx, 8
mov r8d, eax
call fcn.1400d198d
lea rcx, [rsi + 0x38]
mov edx, 8
mov r8d, eax
call fcn.1400d198d
lea rcx, [rsi + 0x40]
mov edx, 8
mov r8d, eax
call fcn.1400d198d
mov edx, 8
mov r8d, eax
mov rax, qword [rsi + 0x48]
mov rcx, qword [rax]
add rcx, 0x60
call fcn.1400d198d
lea rcx, [rsi + 0x50]
mov edx, 1
mov r8d, eax
call fcn.1400d198d
lea rcx, [rsi + 0x51]
mov edx, 1
mov r8d, eax
call fcn.1400d198d
lea rcx, [rsi + 0x52]
mov edx, 1
mov r8d, eax
call fcn.1400d198d
lea rcx, [rsi + 0x53]
mov edx, 1
mov r8d, eax
call fcn.1400d198d
movzx edx, byte [rsi + 0x53]
mov ecx, 0x32
mov r8d, eax
cmp rdx, rcx
cmova rdx, rcx
lea rcx, [rsi + 0x55]
call fcn.1400d198d
cmp qword [r15 + 0x130], 0
mov dword [rsi + 4], eax
je 0x1400a6082
mov rcx, qword [r15 + 0x130]
mov r8d, dword [rsi + 4]
mov rdx, rsi
mov r9d, 1
call fcn.1400d16b2
mov rdx, rax
test rax, rax
jne 0x1400a60b2
jmp 0x1400a5e0b
lea r9, [sub.msvcrt.dll_free]
lea r8, [0x1400a47db]
mov ecx, 1
lea rdx, [0x1400a4445]
call fcn.1400d1462
mov qword [r15 + 0x130], rax
test rax, rax
jne 0x1400a605c
jmp 0x1400a5e0b
mov rax, qword [rax]
test rax, rax
jne 0x1400a60e6
mov ecx, 0x88
mov qword [rsp + 0x20], rdx
call sub.msvcrt.dll_malloc
test rax, rax
je 0x1400a5e0b
mov rdx, qword [rsp + 0x20]
mov ecx, 0x22
mov rdi, rax
rep movsd dword [rdi], dword [rsi]
mov qword [rdx], rax
jmp 0x1400a6103
mov dl, byte [rdi + 0xa]
or byte [rdi + 0x23], 2
or edx, 0x40
mov byte [rdi + 0xa], dl
mov rcx, qword [rax + 0x48]
and dl, 2
mov qword [rdi], rcx
je 0x1400a6103
or byte [rcx + 0xa], 2
mov rsi, qword [rax + 0x48]
mov qword [rbx], rsi
add rbx, 0x30
jmp 0x1400a5c82
mov rcx, qword [r14 + 8]
mov ebx, 1
call sub.msvcrt.dll_free
mov r9d, dword [r14]
xor eax, eax
xor r11d, r11d
mov qword [r14 + 8], rax
xor r8d, r8d
imul r9, r9, 0x30
add r9, r12
cmp r12, r9
jae 0x1400a61cc
mov dl, byte [r12 + 0x23]
test dl, 2
jne 0x1400a61c3
mov r10d, dword [r12 + 0x14]
mov eax, 4
cmp r10d, 4
je 0x1400a618c
and dl, 1
je 0x1400a6173
mov al, byte [r12 + 0xa]
and eax, 0x10
cmp al, 1
sbb eax, eax
and eax, 0xfffffffc
add eax, 8
jmp 0x1400a618c
mov edx, dword [rsp + 0x28]
movzx ecx, byte [r12 + 0x20]
call fcn.1400a4404
mov edx, 4
cmp eax, edx
cmovb eax, edx
lea edx, [r8 + rax - 1]
neg eax
and eax, edx
cmp dword [r12 + 0x18], eax
mov dword [r12 + 0x1c], eax
cmovne r11d, ebx
mov r8d, eax
cmp r10d, 4
je 0x1400a61c0
mov rcx, r12
call fcn.1400a4449
mov esi, eax
call fcn.1400a4469
add esi, eax
add r10d, esi
add r8d, r10d
add r12, 0x30
jmp 0x1400a6137
mov rax, qword [rbp + 0x40]
add r8d, 3
and r8d, 0xfffffffc
mov qword [rbp + 0x48], rax
mov qword [rbp + 0x40], r8
cmp rax, r8
jne 0x1400a61ed
xor eax, eax
and r11d, 1
je 0x1400a6269
mov rax, qword [r13 + 0x28]
cmp rax, 1
jbe 0x1400a6264
mov rdx, qword [rbp + 0xd0]
mov rbx, qword [r13 + 0x18]
shl rax, 5
xor edi, edi
mov r12d, dword [rdx + 0x88]
lea rsi, [rbx + rax]
add rbx, 0x20
cmp rbx, rsi
jae 0x1400a6246
cmp byte [rbx + 0x14], 1
ja 0x1400a6240
cmp r12d, dword [rbx + 0x18]
jne 0x1400a6240
mov rcx, qword [rbx]
mov rdx, rbp
call fcn.1400a44f9
test rax, rax
je 0x1400a6240
add qword [rbx], rax
mov edi, 1
add rbx, 0x20
jmp 0x1400a6217
test edi, edi
je 0x1400a6264
mov rax, qword [rsp + 0x80]
mov rdx, qword [r13 + 0x18]
mov rax, qword [rax + 0x108]
mov qword [rax + 0xa8], rdx
mov eax, 1
and eax, 1
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret