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

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xe0
mov rax, qword [0x1401973d0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movzx edx, byte [rcx + 0x41]
xor edi, edi
inc edx
mov dword [rsp + 0x38], edi
xor r14d, r14d
mov dword [rsp + 0x50], edx
mov rbx, rcx
mov dword [rsp + 0x3c], r14d
cmp byte [rcx + 0x3f], dil
jne 0x14004612e
mov rcx, qword [rcx + 8]
lea r9d, [rdi + 0xa]
mov r8d, 3
sub r8d, edx
mov rax, qword [rcx]
call qword [rax + 0x70]
test eax, eax
jne 0x1400466e3
xorps xmm0, xmm0
mov qword [rsp + 0x110], rsi
movups xmmword [rbx + 0x48], xmm0
lea rdx, [rsp + 0x98]
movups xmmword [rbx + 0x58], xmm0
movups xmmword [rbx + 0x68], xmm0
mov rcx, qword [rbx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x30]
mov esi, eax
test eax, eax
jne 0x1400466b6
cmp qword [rsp + 0x98], 0x20
mov qword [rsp + 0x108], rbp
mov qword [rsp + 0x118], r12
mov qword [rsp + 0xd0], r15
jle 0x1400465c9
mov rcx, qword [rbx + 0x10]
lea r8d, [rsi + 0x20]
xor r9d, r9d
lea rdx, [rsp + 0xa0]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov esi, eax
test eax, eax
jne 0x14004669e
mov ecx, dword [rsp + 0xa0]
mov ebp, dword [rsp + 0xa8]
bswap ecx
mov eax, ecx
and eax, 0xfffffffe
bswap ebp
mov dword [rsp + 0x4c], ebp
cmp eax, 0x377f0682
jne 0x1400465c9
lea eax, [rbp - 1]
test ebp, eax
jne 0x1400465c9
lea eax, [rbp - 0x200]
cmp eax, 0xfe00
ja 0x1400465c9
mov eax, dword [rsp + 0xac]
lea r12, [rbx + 0x60]
bswap eax
and cl, 1
mov dword [rbx + 0x88], eax
mov rax, qword [rsp + 0xb0]
lea r8d, [rsi + 0x18]
movzx ecx, cl
lea rdx, [rsp + 0xa0]
mov byte [rbx + 0x55], cl
xor r9d, r9d
xor ecx, 1
mov qword [rbx + 0x68], rax
mov dword [rbx + 0x38], ebp
mov qword [rsp + 0x20], r12
call fcn.140045c20
mov ecx, dword [rsp + 0xb8]
bswap ecx
cmp dword [r12], ecx
jne 0x1400465c9
mov eax, dword [rsp + 0xbc]
bswap eax
cmp dword [rbx + 0x64], eax
jne 0x1400465c9
mov eax, dword [rsp + 0xa4]
bswap eax
cmp eax, 0x2de218
je 0x14004629a
lea rax, [0x14017c4d4]
mov esi, 0xe
mov ecx, esi
mov qword [rsp + 0x20], rax
mov r9d, 0xfd2c
lea r8, str.cannot_open_file
lea rdx, str._s_at_line__d_of___.10s_
call fcn.140032e40
jmp 0x14004669e
lea edi, [rbp + 0x18]
mov dword [rsp + 0x48], edi
call fcn.1400f1770
test eax, eax
jne 0x14004660a
movsxd rdi, edi
mov qword [rsp + 0x78], rdi
lea rcx, [rdi + 0x8000]
call fcn.14002f8e0
mov r15, rax
test rax, rax
je 0x14004660a
add rax, 0x18
movsxd r8, ebp
add r8, rax
mov qword [rsp + 0xd8], r13
mov rax, qword [rsp + 0x98]
xor r13d, r13d
add rax, 0xffffffffffffffe0
mov qword [rsp + 0x58], r8
cqo
mov dword [rsp + 0x34], r13d
idiv rdi
mov r9, rax
mov qword [rsp + 0x88], rax
add eax, 0x1000
mov ecx, r9d
sub rax, 0xfdf
mov qword [rsp + 0x90], rcx
shr rax, 0xc
xor edx, edx
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x40], rdx
mov eax, r13d
mov ebp, r9d
shl eax, 0xc
mov edi, eax
add rax, 0xfde
cmp rcx, rax
jb 0x14004634e
lea ebp, [rdi + 0xfde]
mov dword [rsp + 0x30], ebp
test r13d, r13d
jne 0x14004635d
lea edi, [r13 + 1]
jmp 0x140046360
add edi, 0xffffffdf
lea r14, [rbx + 0x30]
cmp dword [rbx + 0x28], r13d
jle 0x14004638c
mov rax, qword [r14]
movsxd rcx, r13d
mov qword [rsp + 0x68], r14
mov rcx, qword [rax + rcx*8]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x60], rcx
test rcx, rcx
je 0x14004638c
xor esi, esi
jmp 0x1400463b7
lea r8, [rsp + 0x60]
mov edx, r13d
mov rcx, rbx
call fcn.140045ac0
mov rcx, qword [rsp + 0x60]
mov esi, eax
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x58]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x68], r14
test rcx, rcx
je 0x140046555
mov rax, qword [r14]
mov qword [rdx + rax], r8
cmp edi, ebp
ja 0x1400464e5
mov r13, qword [rsp + 0x78]
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x10]
lea r9d, [rdi - 1]
mov r8d, dword [rsp + 0x48]
mov rdx, r15
imul r9, r13
mov r10, qword [rcx]
add r9, 0x20
call qword [r10 + 0x10]
mov esi, eax
test eax, eax
jne 0x1400464d1
mov rax, qword [rbx + 0x68]
cmp rax, qword [r15 + 8]
jne 0x1400464d1
mov r14d, dword [r15]
bswap r14d
test r14d, r14d
je 0x1400464d1
xor ecx, ecx
mov qword [rsp + 0x20], r12
cmp byte [rbx + 0x55], cl
lea r8d, [rsi + 8]
mov r9, r12
mov rdx, r15
sete cl
call fcn.140045c20
mov r8d, dword [rbx + 0x38]
lea rdx, [r15 + 0x18]
mov r9, r12
mov qword [rsp + 0x20], r12
call fcn.140045c20
mov ecx, dword [r15 + 0x10]
bswap ecx
cmp dword [r12], ecx
jne 0x1400464d1
mov eax, dword [r15 + 0x14]
bswap eax
cmp dword [r12 + 4], eax
jne 0x1400464d1
mov ebp, dword [r15 + 4]
mov r8d, r14d
mov edx, edi
mov rcx, rbx
bswap ebp
call fcn.140045f20
mov esi, eax
test eax, eax
jne 0x1400464cd
test ebp, ebp
je 0x1400464bd
mov dword [rbx + 0x5c], ebp
mov edx, 0xff00
mov ebp, dword [rsp + 0x4c]
mov ecx, ebp
movzx eax, bp
mov dword [rbx + 0x58], edi
and ax, dx
sar ecx, 0x10
or cx, ax
mov word [rbx + 0x56], cx
mov eax, dword [r12]
mov dword [rsp + 0x38], eax
mov eax, dword [rbx + 0x64]
mov dword [rsp + 0x3c], eax
mov ebp, dword [rsp + 0x30]
inc edi
cmp edi, ebp
jbe 0x1400463e0
jmp 0x1400464d1
mov ebp, dword [rsp + 0x30]
mov r13d, dword [rsp + 0x34]
mov r14, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x40]
mov rax, qword [r14]
mov r8d, 0x8000
mov qword [rdx + rax], rcx
xor eax, eax
test r13d, r13d
mov edx, 0x88
cmove eax, edx
mov edx, 0x7f78
cmove r8d, edx
mov rdx, qword [rsp + 0x58]
add rdx, rax
add rcx, rax
call fcn.1401203d0
cmp edi, ebp
jbe 0x140046555
mov rdx, qword [rsp + 0x40]
inc r13d
mov r8, qword [rsp + 0x58]
add rdx, 8
mov r9, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x90]
mov dword [rsp + 0x34], r13d
mov qword [rsp + 0x40], rdx
cmp r13d, dword [rsp + 0x80]
jbe 0x140046332
cmp dword [0x1401981b0], 0
mov r13, qword [rsp + 0xd8]
je 0x1400465af
mov rcx, qword [0x1401a6f88]
test rcx, rcx
je 0x140046578
call qword [0x140198230]
mov rcx, r15
call qword [0x1401981e8]
dec qword [0x1401a6d88]
movsxd rcx, eax
sub qword [0x1401a6d40], rcx
mov rcx, r15
call qword [0x1401981d8]
mov rcx, qword [0x1401a6f88]
test rcx, rcx
je 0x1400465b8
call qword [0x140198240]
jmp 0x1400465b8
mov rcx, r15
call qword [0x1401981d8]
test esi, esi
jne 0x14004669e
mov edi, dword [rsp + 0x38]
mov r14d, dword [rsp + 0x3c]
mov rcx, rbx
mov dword [rbx + 0x60], edi
mov dword [rbx + 0x64], r14d
call fcn.140045d70
mov rax, qword [rbx + 0x30]
mov edi, 1
mov r14, qword [rax]
mov dword [r14 + 0x60], 0
mov eax, dword [rbx + 0x58]
mov dword [r14 + 0x80], eax
mov dword [r14 + 0x64], 0
nop
cmp byte [rbx + 0x3f], 0
je 0x140046614
xor esi, esi
jmp 0x140046631
mov esi, 7
jmp 0x14004669e
mov rcx, qword [rbx + 8]
lea edx, [rdi + 3]
mov r9d, 0xa
mov rax, qword [rcx]
lea r8d, [r9 - 9]
call qword [rax + 0x70]
mov esi, eax
test eax, eax
jne 0x140046670
cmp edi, 1
jne 0x140046645
cmp dword [rbx + 0x58], 0
je 0x140046645
mov eax, dword [rbx + 0x58]
mov dword [r14 + 0x68], eax
jmp 0x140046651
movsxd rax, edi
mov dword [r14 + rax*4 + 0x64], 0xffffffff
cmp byte [rbx + 0x3f], 0
jne 0x140046675
mov rcx, qword [rbx + 8]
lea edx, [rdi + 3]
mov r9d, 9
mov rax, qword [rcx]
lea r8d, [r9 - 8]
call qword [rax + 0x70]
jmp 0x140046675
cmp eax, 5
jne 0x14004669e
inc edi
cmp edi, 5
jl 0x140046600
cmp dword [rbx + 0x5c], 0
je 0x14004669e
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.140032e40
mov r12, qword [rsp + 0x118]
mov rbp, qword [rsp + 0x108]
mov r15, qword [rsp + 0xd0]
cmp byte [rbx + 0x3f], 0
jne 0x1400466d9
mov rcx, qword [rbx + 8]
mov r8d, 3
mov edx, dword [rsp + 0x50]
mov r9d, 9
sub r8d, edx
mov rax, qword [rcx]
call qword [rax + 0x70]
mov eax, esi
mov rsi, qword [rsp + 0x110]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14011e030
add rsp, 0xe0
pop r14
pop rdi
pop rbx
ret