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

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0xc8
mov rax, qword [0x14035dc30]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movzx ebp, byte [rcx + 0x41]
xor edi, edi
inc ebp
mov dword [rsp + 0x38], edi
xor esi, esi
mov dword [rsp + 0x48], ebp
mov rbx, rcx
mov dword [rsp + 0x3c], esi
cmp byte [rcx + 0x3f], sil
jne 0x1401d5555
mov rcx, qword [rcx + 8]
lea r9d, [rdi + 0xa]
mov r8d, 3
mov edx, ebp
sub r8d, ebp
mov rax, qword [rcx]
mov rax, qword [rax + 0x70]
call qword [case.0x1400ac8a1.0]
test eax, eax
jne 0x1401d5a8b
xorps xmm0, xmm0
mov qword [rsp + 0x108], r14
movups xmmword [rbx + 0x48], xmm0
lea rdx, [rsp + 0x58]
movups xmmword [rbx + 0x58], xmm0
movups xmmword [rbx + 0x68], xmm0
mov rcx, qword [rbx + 0x10]
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
call qword [case.0x1400ac8a1.0]
mov r14d, eax
test eax, eax
jne 0x1401d5a58
cmp qword [rsp + 0x58], 0x20
mov qword [rsp + 0xf8], r12
mov qword [rsp + 0x100], r13
mov qword [rsp + 0xc0], r15
jle 0x1401d596b
mov rcx, qword [rbx + 0x10]
lea r8d, [r14 + 0x20]
xor r9d, r9d
lea rdx, [rsp + 0x90]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400ac8a1.0]
mov r14d, eax
test eax, eax
jne 0x1401d5a40
mov ecx, dword [rsp + 0x90]
mov r13d, dword [rsp + 0x98]
bswap ecx
mov eax, ecx
and eax, 0xfffffffe
bswap r13d
cmp eax, 0x377f0682
jne 0x1401d596b
lea eax, [r13 - 1]
test r13d, eax
jne 0x1401d596b
lea eax, [r13 - 0x200]
cmp eax, 0xfe00
ja 0x1401d596b
mov eax, dword [rsp + 0x9c]
lea r12, [rbx + 0x60]
and cl, 1
mov dword [rbx + 0x38], r13d
bswap eax
movzx ecx, cl
lea r8d, [r14 + 0x18]
mov dword [rbx + 0x88], eax
lea rdx, [rsp + 0x90]
mov rax, qword [rsp + 0xa0]
xor r9d, r9d
mov byte [rbx + 0x55], cl
xor ecx, 1
mov qword [rbx + 0x68], rax
mov qword [rsp + 0x20], r12
call fcn.1401d4d00
mov eax, dword [rsp + 0xa8]
bswap eax
cmp dword [r12], eax
jne 0x1401d596b
mov eax, dword [rsp + 0xac]
bswap eax
cmp dword [rbx + 0x64], eax
jne 0x1401d596b
mov eax, dword [rsp + 0x94]
bswap eax
cmp eax, 0x2de218
je 0x1401d56ae
mov ecx, 0xf092
call fcn.14017a5a0
mov r14d, eax
jmp 0x1401d5962
movsxd rcx, r13d
add rcx, 0x8018
call fcn.14012f260
mov r15, rax
test rax, rax
jne 0x1401d56ce
lea r14d, [rax + 7]
jmp 0x1401d5a40
add rax, 0x18
movsxd rcx, r13d
add rcx, rax
mov dword [rsp + 0x34], edi
mov rax, qword [rsp + 0x58]
lea r10d, [r13 + 0x18]
add rax, 0xffffffffffffffe0
movsxd r11, r10d
cqo
mov qword [rsp + 0x70], rcx
idiv r11
mov qword [rsp + 0x50], r11
mov r9, rax
mov qword [rsp + 0x80], rax
add eax, 0x1000
mov esi, r9d
sub rax, 0xfdf
mov qword [rsp + 0x88], rsi
shr rax, 0xc
xor r8d, r8d
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x40], r8
nop dword [rax]
mov eax, edi
mov ebp, r9d
shl eax, 0xc
mov edx, eax
lea rcx, [rax + 0xfde]
add eax, 0xfde
cmp rsi, rcx
mov esi, 1
cmovae ebp, eax
mov dword [rsp + 0x30], ebp
test edi, edi
je 0x1401d575c
lea esi, [rdx - 0x21]
cmp dword [rbx + 0x28], edi
jle 0x1401d5780
mov rax, qword [rbx + 0x30]
movsxd rcx, edi
mov rcx, qword [rax + rcx*8]
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x60], rcx
test rcx, rcx
je 0x1401d5780
xor r14d, r14d
jmp 0x1401d57b2
lea r8, [rsp + 0x60]
mov edx, edi
mov rcx, rbx
call fcn.1401d5190
mov r14d, eax
test eax, eax
jne 0x1401d594e
mov rax, qword [rsp + 0x60]
lea r10d, [r13 + 0x18]
mov r8, qword [rsp + 0x40]
mov r11, qword [rsp + 0x50]
mov qword [rsp + 0x68], rax
mov rax, qword [rbx + 0x30]
mov rcx, qword [rsp + 0x70]
mov qword [r8 + rax], rcx
cmp esi, ebp
ja 0x1401d58db
nop word [rax + rax]
mov rcx, qword [rbx + 0x10]
lea r9d, [rsi - 1]
imul r9, r11
mov rdx, qword [rcx]
mov r8d, r10d
add r9, 0x20
mov rax, qword [rdx + 0x10]
mov rdx, r15
call qword [case.0x1400ac8a1.0]
mov r14d, eax
test eax, eax
jne 0x1401d58d2
mov rax, qword [rbx + 0x68]
cmp rax, qword [r15 + 8]
jne 0x1401d58d2
mov ebp, dword [r15]
bswap ebp
test ebp, ebp
je 0x1401d58ce
xor edi, edi
mov qword [rsp + 0x20], r12
cmp byte [rbx + 0x55], dil
lea r8d, [r14 + 8]
mov r9, r12
mov rdx, r15
sete dil
mov ecx, edi
call fcn.1401d4d00
mov r8d, dword [rbx + 0x38]
lea rdx, [r15 + 0x18]
mov r9, r12
mov qword [rsp + 0x20], r12
mov ecx, edi
call fcn.1401d4d00
mov eax, dword [r15 + 0x10]
bswap eax
cmp dword [r12], eax
jne 0x1401d58ce
mov eax, dword [r15 + 0x14]
bswap eax
cmp dword [r12 + 4], eax
jne 0x1401d58ce
mov edi, dword [r15 + 4]
mov r8d, ebp
mov edx, esi
mov rcx, rbx
bswap edi
call fcn.1401d4ed0
mov r14d, eax
test eax, eax
jne 0x1401d58ce
test edi, edi
je 0x1401d58b5
movzx eax, r13w
mov dword [rbx + 0x58], esi
mov dword [rbx + 0x5c], edi
mov ecx, r13d
mov edx, 0xff00
sar ecx, 0x10
and ax, dx
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]
lea r10d, [r13 + 0x18]
mov r11, qword [rsp + 0x50]
inc esi
cmp esi, ebp
jbe 0x1401d57d0
jmp 0x1401d58d2
mov ebp, dword [rsp + 0x30]
mov edi, dword [rsp + 0x34]
mov r8, qword [rsp + 0x40]
mov rax, qword [rbx + 0x30]
mov edx, 0x88
mov rcx, qword [rsp + 0x68]
mov qword [r8 + rax], rcx
xor eax, eax
test edi, edi
mov r8d, 0x8000
cmove eax, edx
mov edx, 0x7f78
cmove r8d, edx
mov rdx, qword [rsp + 0x70]
add rdx, rax
add rcx, rax
call fcn.14026bb50
cmp esi, ebp
jbe 0x1401d594e
mov r8, qword [rsp + 0x40]
lea r10d, [r13 + 0x18]
mov r11, qword [rsp + 0x50]
add r8, 8
mov r9, qword [rsp + 0x80]
inc edi
mov rsi, qword [rsp + 0x88]
mov dword [rsp + 0x34], edi
mov qword [rsp + 0x40], r8
cmp edi, dword [rsp + 0x78]
jbe 0x1401d5730
mov rcx, r15
call fcn.14012f320
mov edi, dword [rsp + 0x38]
mov esi, dword [rsp + 0x3c]
mov ebp, dword [rsp + 0x48]
test r14d, r14d
jne 0x1401d5a40
mov rcx, rbx
mov dword [rbx + 0x60], edi
mov dword [rbx + 0x64], esi
call fcn.1401d5c60
mov rax, qword [rbx + 0x30]
mov edi, 1
mov rsi, qword [rax]
mov dword [rsi + 0x60], 0
mov eax, dword [rbx + 0x58]
mov dword [rsi + 0x80], eax
mov dword [rsi + 0x64], 0
nop dword [rax]
cmp byte [rbx + 0x3f], 0
je 0x1401d59ab
xor r14d, r14d
jmp 0x1401d59d0
mov rcx, qword [rbx + 8]
lea edx, [rdi + 3]
mov r9d, 0xa
mov rax, qword [rcx]
lea r8d, [r9 - 9]
mov rax, qword [rax + 0x70]
call qword [case.0x1400ac8a1.0]
mov r14d, eax
test eax, eax
jne 0x1401d5a12
cmp edi, 1
jne 0x1401d59e1
mov eax, dword [rbx + 0x58]
test eax, eax
je 0x1401d59e1
mov dword [rsi + 0x68], eax
jmp 0x1401d59ec
movsxd rax, edi
mov dword [rsi + rax*4 + 0x64], 0xffffffff
cmp byte [rbx + 0x3f], 0
jne 0x1401d5a17
mov rcx, qword [rbx + 8]
lea edx, [rdi + 3]
mov r9d, 9
mov rax, qword [rcx]
lea r8d, [r9 - 8]
mov rax, qword [rax + 0x70]
call qword [case.0x1400ac8a1.0]
jmp 0x1401d5a17
cmp eax, 5
jne 0x1401d5a40
inc edi
cmp edi, 5
jl 0x1401d59a0
cmp dword [rbx + 0x5c], 0
je 0x1401d5a40
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.14013c6f0
mov r13, qword [rsp + 0x100]
mov r12, qword [rsp + 0xf8]
mov r15, qword [rsp + 0xc0]
cmp byte [rbx + 0x3f], 0
jne 0x1401d5a80
mov rcx, qword [rbx + 8]
mov r8d, 3
sub r8d, ebp
mov r9d, 9
mov edx, ebp
mov rax, qword [rcx]
mov rax, qword [rax + 0x70]
call qword [case.0x1400ac8a1.0]
mov eax, r14d
mov r14, qword [rsp + 0x108]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140269300
add rsp, 0xc8
pop rdi
pop rsi
pop rbp
pop rbx
ret