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

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
sub rsp, 0xf0
mov rax, qword [0x14018d0f0]
xor rax, rsp
mov qword [rsp + 0xe0], rax
movzx edi, byte [rcx + 0x41]
xor r12d, r12d
inc edi
mov dword [rsp + 0x3c], r12d
mov eax, 3
mov dword [rsp + 0x40], r12d
sub eax, edi
mov dword [rsp + 0x30], edi
mov r8d, eax
mov dword [rsp + 0x78], eax
mov edx, edi
mov rbx, rcx
mov esi, r12d
mov r14d, r12d
call fcn.140040d70
test eax, eax
jne 0x140041791
xorps xmm0, xmm0
mov qword [rsp + 0x130], r13
movups xmmword [rbx + 0x48], xmm0
lea rdx, [rsp + 0xb8]
mov qword [rsp + 0x138], r15
movups xmmword [rbx + 0x58], xmm0
movups xmmword [rbx + 0x68], xmm0
mov rcx, qword [rbx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x30]
lea r13d, [r12 + 1]
mov r15d, eax
test eax, eax
jne 0x140041747
cmp qword [rsp + 0xb8], 0x20
mov qword [rsp + 0x128], rbp
jle 0x14004164e
mov rcx, qword [rbx + 0x10]
lea r8d, [r12 + 0x20]
xor r9d, r9d
lea rdx, [rsp + 0xc0]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov r15d, eax
test eax, eax
jne 0x14004173f
mov ecx, dword [rsp + 0xc0]
mov ebp, dword [rsp + 0xc8]
bswap ecx
mov eax, ecx
and eax, 0xfffffffe
bswap ebp
mov dword [rsp + 0x74], ebp
cmp eax, 0x377f0682
jne 0x14004164e
lea eax, [rbp - 1]
test ebp, eax
jne 0x14004164e
lea eax, [rbp - 0x200]
cmp eax, 0xfe00
ja 0x14004164e
mov eax, dword [rsp + 0xcc]
lea rdi, [rbx + 0x60]
and cl, r13b
mov dword [rbx + 0x38], ebp
bswap eax
movzx ecx, cl
lea r8d, [r12 + 0x18]
mov dword [rbx + 0x88], eax
lea rdx, [rsp + 0xc0]
mov rax, qword [rsp + 0xd0]
xor r9d, r9d
mov byte [rbx + 0x55], cl
xor ecx, r13d
mov qword [rbx + 0x68], rax
mov qword [rsp + 0x20], rdi
call fcn.140040b20
mov eax, dword [rsp + 0xd8]
bswap eax
cmp dword [rdi], eax
jne 0x14004164e
mov eax, dword [rsp + 0xdc]
bswap eax
cmp dword [rbx + 0x64], eax
jne 0x14004164e
mov eax, dword [rsp + 0xc4]
bswap eax
cmp eax, 0x2de218
je 0x14004126b
lea rax, [0x140193834]
mov r15d, 0xe
mov ecx, r15d
mov qword [rsp + 0x20], rax
mov r9d, 0x1006d
lea r8, str.cannot_open_file
lea rdx, str._s_at_line__d_of___.10s_
call fcn.14002c770
jmp 0x14004173b
lea eax, [rbp + 0x18]
movsxd r14, eax
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x70], eax
call fcn.1400efc20
test eax, eax
je 0x140041295
mov qword [rbx + 0x90], r12
mov r15d, 7
jmp 0x14004173b
lea rcx, [r14 + 0x8000]
call fcn.1400295b0
lea rdi, [rbx + 0x90]
mov rsi, rax
mov qword [rsp + 0x50], rdi
mov qword [rdi], rax
test rax, rax
jne 0x1400412c1
lea r15d, [rax + 7]
jmp 0x14004173b
add rax, 0x18
movsxd rcx, ebp
add rcx, rax
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xb8]
add rax, 0xffffffffffffffe0
mov qword [rsp + 0x90], rcx
cqo
mov dword [rsp + 0x38], r12d
idiv r14
mov qword [rsp + 0x60], r12
mov rdx, rax
mov qword [rsp + 0xa8], rax
add eax, 0x1000
mov r8d, edx
sub rax, 0xfdf
mov qword [rsp + 0xb0], r8
shr rax, 0xc
mov qword [rsp + 0xa0], rax
nop dword [rax]
nop word [rax + rax]
mov eax, r12d
shl eax, 0xc
mov ecx, eax
add rax, 0xfde
cmp r8, rax
jae 0x140041349
mov dword [rsp + 0x34], edx
jmp 0x140041353
lea eax, [rcx + 0xfde]
mov dword [rsp + 0x34], eax
mov ebp, r13d
test r12d, r12d
je 0x14004135e
lea ebp, [rcx - 0x21]
call fcn.140040930
cmp dword [rbx + 0x28], r12d
jle 0x140041397
mov rax, qword [rbx + 0x30]
lea rdx, [rbx + 0x30]
movsxd rcx, r12d
mov qword [rsp + 0x58], rdx
mov rcx, qword [rax + rcx*8]
mov qword [rsp + 0x88], rcx
mov qword [rsp + 0x80], rcx
test rcx, rcx
je 0x1400413a0
xor r15d, r15d
jmp 0x1400413d0
lea rax, [rbx + 0x30]
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x80]
mov edx, r12d
mov rcx, rbx
call fcn.1400409a0
mov rdx, qword [rsp + 0x58]
mov r15d, eax
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x88], rcx
test rcx, rcx
je 0x1400415db
mov rax, qword [rdx]
mov r8, qword [rsp + 0x60]
mov r9, qword [rsp + 0x90]
mov dword [rbx + 0xa0], r12d
mov qword [rbx + 0x98], rcx
mov qword [r8 + rax], r9
cmp ebp, dword [rsp + 0x34]
ja 0x14004155c
nop word [rax + rax]
mov rcx, qword [rbx + 0x10]
lea r9d, [rbp - 1]
mov r8d, dword [rsp + 0x70]
mov rdx, rsi
imul r9, r14
mov r10, qword [rcx]
mov r12, rdi
add r9, 0x20
mov r13, r14
call qword [r10 + 0x10]
mov r15d, eax
test eax, eax
jne 0x140041544
mov rax, qword [rbx + 0x68]
cmp rax, qword [rsi + 8]
jne 0x140041544
mov r14d, dword [rsi]
bswap r14d
test r14d, r14d
je 0x14004153a
xor edi, edi
lea rax, [rbx + 0x60]
cmp byte [rbx + 0x55], dil
lea r8d, [r15 + 8]
mov r9, rax
mov qword [rsp + 0x20], rax
sete dil
mov rdx, rsi
mov ecx, edi
call fcn.140040b20
mov r8d, dword [rbx + 0x38]
lea rax, [rbx + 0x60]
mov rdx, qword [rsp + 0x98]
mov r9, rax
mov ecx, edi
mov qword [rsp + 0x20], rax
call fcn.140040b20
mov eax, dword [rsi + 0x10]
bswap eax
cmp dword [rbx + 0x60], eax
jne 0x14004152e
mov eax, dword [rsi + 0x14]
bswap eax
cmp dword [rbx + 0x64], eax
jne 0x14004152e
mov edi, dword [rsi + 4]
mov r8d, r14d
mov edx, ebp
mov rcx, rbx
bswap edi
call fcn.140040ef0
mov qword [rsp + 0x48], r13
mov r15d, eax
mov qword [rsp + 0x50], r12
mov rdx, rsi
mov r14, r13
test eax, eax
jne 0x140041541
test edi, edi
je 0x140041513
mov eax, dword [rsp + 0x74]
mov r8d, 0xff00
mov ecx, eax
mov dword [rbx + 0x58], ebp
and ax, r8w
mov dword [rbx + 0x5c], edi
sar ecx, 0x10
or cx, ax
mov word [rbx + 0x56], cx
mov eax, dword [rbx + 0x60]
mov dword [rsp + 0x3c], eax
mov eax, dword [rbx + 0x64]
mov dword [rsp + 0x40], eax
inc ebp
mov qword [rsp + 0x48], r13
mov rdi, r12
mov qword [rsp + 0x50], r12
cmp ebp, dword [rsp + 0x34]
jbe 0x140041410
jmp 0x140041544
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
jmp 0x140041544
mov r14, qword [rsp + 0x48]
jmp 0x140041544
mov rdi, r12
mov r12d, dword [rsp + 0x38]
mov r13d, 1
mov rcx, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x58]
mov rax, qword [rdx]
mov r8d, 0x8000
mov rdx, qword [rsp + 0x60]
mov qword [rdx + rax], rcx
xor eax, eax
test r12d, r12d
mov dword [rbx + 0xa0], eax
mov edx, 0x88
mov qword [rbx + 0x98], rax
cmove eax, edx
mov edx, 0x7f78
cmove r8d, edx
mov rdx, qword [rsp + 0x90]
add rdx, rax
add rcx, rax
call fcn.14011cdf0
call fcn.140040930
cmp ebp, dword [rsp + 0x34]
jbe 0x1400415db
add qword [rsp + 0x60], 8
inc r12d
mov rdx, qword [rsp + 0xa8]
mov r8, qword [rsp + 0xb0]
mov dword [rsp + 0x38], r12d
cmp r12d, dword [rsp + 0xa0]
jbe 0x140041330
xor r12d, r12d
mov qword [rdi], r12
cmp dword [0x140190450], r12d
je 0x140041633
mov rcx, qword [0x14019f468]
test rcx, rcx
je 0x1400415fc
call qword [0x1401904d0]
mov rcx, rsi
call qword [0x140190488]
dec qword [0x14019f278]
mov rcx, rsi
movsxd rdx, eax
sub qword [0x14019f230], rdx
call qword [0x140190478]
mov rcx, qword [0x14019f468]
test rcx, rcx
je 0x14004163c
call qword [0x1401904e0]
jmp 0x14004163c
mov rcx, rsi
call qword [0x140190478]
test r15d, r15d
jne 0x14004173b
mov esi, dword [rsp + 0x3c]
mov r14d, dword [rsp + 0x40]
mov rcx, rbx
mov dword [rbx + 0x60], esi
mov dword [rbx + 0x64], r14d
call fcn.140040cc0
call fcn.140040930
mov rax, qword [rbx + 0x30]
mov edi, r13d
mov r14, qword [rax]
mov dword [r14 + 0x60], r12d
mov eax, dword [rbx + 0x58]
mov dword [r14 + 0x80], eax
mov dword [r14 + 0x64], r12d
nop
cmp byte [rbx + 0x3f], 0
je 0x14004168b
mov r15d, r12d
jmp 0x1400416b6
mov rcx, qword [rbx + 8]
lea edx, [rdi + 3]
mov r9d, 0xa
mov r8d, r13d
mov rax, qword [rcx]
call qword [rax + 0x70]
mov r15d, eax
test eax, eax
jne 0x140041709
lea ecx, [rdi + 0xb]
mov eax, r13d
shl eax, cl
or dword [rbx + 0x8c], eax
cmp edi, 1
jne 0x1400416ca
cmp dword [rbx + 0x58], 0
je 0x1400416ca
mov eax, dword [rbx + 0x58]
mov dword [r14 + 0x68], eax
jmp 0x1400416d6
movsxd rax, edi
mov dword [r14 + rax*4 + 0x64], 0xffffffff
call fcn.140040930
cmp byte [rbx + 0x3f], 0
jne 0x14004170e
mov rcx, qword [rbx + 8]
lea edx, [rdi + 3]
mov r9d, 9
mov r8d, r13d
mov rax, qword [rcx]
call qword [rax + 0x70]
lea ecx, [rdi + 0xb]
mov eax, r13d
shl eax, cl
not eax
and dword [rbx + 0x8c], eax
jmp 0x14004170e
cmp eax, 5
jne 0x14004173b
inc edi
cmp edi, 5
jl 0x140041680
cmp dword [rbx + 0x5c], 0
je 0x14004173b
mov r9, qword [rbx + 0x80]
lea rdx, str.recovered__d_frames_from_WAL_file__s
mov r8d, dword [rbx + 0x58]
mov ecx, 0x11b
call fcn.14002c770
mov edi, dword [rsp + 0x30]
mov rbp, qword [rsp + 0x128]
cmp byte [rbx + 0x3f], 0
jne 0x14004177e
mov rcx, qword [rbx + 8]
mov r9d, 9
mov r8d, dword [rsp + 0x78]
mov edx, edi
mov rax, qword [rcx]
call qword [rax + 0x70]
mov ecx, dword [rsp + 0x78]
shl r13d, cl
lea ecx, [rdi + 8]
dec r13d
shl r13d, cl
not r13d
and dword [rbx + 0x8c], r13d
mov r13, qword [rsp + 0x130]
mov eax, r15d
mov r15, qword [rsp + 0x138]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.14011a7e0
add rsp, 0xf0
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret