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

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0xe0
mov rax, qword [0x14012a040]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movzx edx, byte [rcx + 0x41]
xor edi, edi
inc edx
mov dword [rsp + 0x3c], edi
xor esi, esi
mov dword [rsp + 0x48], edx
mov rbx, rcx
mov dword [rsp + 0x40], esi
cmp byte [rcx + 0x3f], sil
jne 0x1400466bd
mov rcx, qword [rcx + 8]
mov r8d, 3
sub r8d, edx
mov r9d, 0xa
mov rax, qword [rcx]
call qword [rax + 0x70]
test eax, eax
jne 0x140046c75
xorps xmm0, xmm0
mov qword [rsp + 0xd0], r15
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 r15d, eax
test eax, eax
jne 0x140046c47
cmp qword [rsp + 0x98], 0x20
mov qword [rsp + 0x118], r13
mov qword [rsp + 0xd8], r14
jle 0x140046b5b
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0xa0]
xor r9d, r9d
mov r8d, 0x20
mov rax, qword [rcx]
call qword [rax + 0x10]
mov r15d, eax
test eax, eax
jne 0x140046c37
mov ecx, dword [rsp + 0xa0]
mov r14d, dword [rsp + 0xa8]
bswap ecx
mov eax, ecx
and eax, 0xfffffffe
bswap r14d
mov dword [rsp + 0x44], r14d
cmp eax, 0x377f0682
jne 0x140046b5b
lea eax, [r14 - 1]
test r14d, eax
jne 0x140046b5b
lea eax, [r14 - 0x200]
cmp eax, 0xfe00
ja 0x140046b5b
mov eax, dword [rsp + 0xac]
lea r13, [rbx + 0x60]
bswap eax
and cl, 1
mov dword [rbx + 0x88], eax
mov rax, qword [rsp + 0xb0]
lea rdx, [rsp + 0xa0]
movzx ecx, cl
xor r9d, r9d
mov byte [rbx + 0x55], cl
mov r8d, 0x18
xor ecx, 1
mov qword [rbx + 0x68], rax
mov dword [rbx + 0x38], r14d
mov qword [rsp + 0x20], r13
call fcn.1400461b0
mov ecx, dword [rsp + 0xb8]
bswap ecx
cmp dword [r13], ecx
jne 0x140046b5b
mov eax, dword [rsp + 0xbc]
bswap eax
cmp dword [rbx + 0x64], eax
jne 0x140046b5b
mov eax, dword [rsp + 0xa4]
bswap eax
cmp eax, 0x2de218
je 0x140046830
lea rax, [0x14010eb94]
mov r15d, 0xe
mov ecx, r15d
mov qword [rsp + 0x20], rax
mov r9d, 0x1025e
lea r8, str.cannot_open_file
lea rdx, str._s_at_line__d_of___.10s_
call fcn.1400324a0
jmp 0x140046c37
lea eax, [r14 + 0x18]
mov dword [rsp + 0x34], eax
movsxd rsi, eax
call fcn.1400f2130
test eax, eax
jne 0x140046b9b
lea rcx, [rsi + 0x8000]
call fcn.14002f320
mov rdi, rax
test rax, rax
je 0x140046b9b
add rax, 0x18
movsxd r8, r14d
add r8, rax
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x98]
add rax, 0xffffffffffffffe0
mov qword [rsp + 0x108], rbp
cqo
mov qword [rsp + 0x110], r12
idiv rsi
xor ebp, ebp
mov qword [rsp + 0x50], r8
mov ecx, eax
mov rdx, rax
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x38], ebp
lea r12d, [rax + 0x1000]
mov qword [rsp + 0x88], rcx
sub r12, 0xfdf
shr r12, 0xc
mov qword [rsp + 0x78], r12
nop word [rax + rax]
mov eax, ebp
mov r14d, edx
shl eax, 0xc
mov esi, eax
add rax, 0xfde
cmp rcx, rax
jb 0x1400468ec
lea r14d, [rsi + 0xfde]
mov dword [rsp + 0x30], r14d
test ebp, ebp
jne 0x1400468fc
mov esi, 1
jmp 0x1400468ff
add esi, 0xffffffdf
cmp dword [rbx + 0x28], ebp
jle 0x140046923
mov rax, qword [rbx + 0x30]
movsxd rcx, ebp
mov r9, qword [rax + rcx*8]
mov qword [rsp + 0x60], r9
mov qword [rsp + 0x58], r9
test r9, r9
je 0x140046923
xor r15d, r15d
jmp 0x140046944
lea r8, [rsp + 0x58]
mov edx, ebp
mov rcx, rbx
call fcn.140046050
mov r9, qword [rsp + 0x58]
mov r15d, eax
mov r8, qword [rsp + 0x50]
mov qword [rsp + 0x60], r9
test r9, r9
je 0x140046adf
mov rax, qword [rbx + 0x30]
mov qword [rax + rbp*8], r8
cmp esi, r14d
ja 0x140046a80
movsxd r8, dword [rsp + 0x34]
mov rdx, r8
mov qword [rsp + 0x70], rdx
nop dword [rax + rax]
mov rcx, qword [rbx + 0x10]
lea r9d, [rsi - 1]
imul r9, rdx
mov r10, qword [rcx]
mov rdx, rdi
add r9, 0x20
call qword [r10 + 0x10]
mov r15d, eax
test eax, eax
jne 0x140046a72
mov rax, qword [rbx + 0x68]
cmp rax, qword [rdi + 8]
jne 0x140046a72
mov ebp, dword [rdi]
bswap ebp
test ebp, ebp
je 0x140046a72
xor ecx, ecx
mov qword [rsp + 0x20], r13
cmp byte [rbx + 0x55], cl
mov r9, r13
mov r8d, 8
mov rdx, rdi
sete cl
call fcn.1400461b0
mov r8d, dword [rbx + 0x38]
mov r9, r13
mov rdx, qword [rsp + 0x68]
mov qword [rsp + 0x20], r13
call fcn.1400461b0
mov ecx, dword [rdi + 0x10]
bswap ecx
cmp dword [r13], ecx
jne 0x140046a72
mov eax, dword [rdi + 0x14]
bswap eax
cmp dword [r13 + 4], eax
jne 0x140046a72
mov r14d, dword [rdi + 4]
mov r8d, ebp
mov edx, esi
mov rcx, rbx
bswap r14d
call fcn.1400464b0
mov r15d, eax
test eax, eax
jne 0x140046a6d
test r14d, r14d
je 0x140046a51
mov dword [rbx + 0x5c], r14d
mov edx, 0xff00
mov r14d, dword [rsp + 0x44]
mov ecx, r14d
movzx eax, r14w
mov dword [rbx + 0x58], esi
and ax, dx
sar ecx, 0x10
or cx, ax
mov word [rbx + 0x56], cx
mov eax, dword [r13]
mov dword [rsp + 0x3c], eax
mov eax, dword [rbx + 0x64]
mov dword [rsp + 0x40], eax
mov r14d, dword [rsp + 0x30]
inc esi
mov rdx, qword [rsp + 0x70]
mov r8d, dword [rsp + 0x34]
cmp esi, r14d
jbe 0x140046970
jmp 0x140046a72
mov r14d, dword [rsp + 0x30]
mov ebp, dword [rsp + 0x38]
mov r9, qword [rsp + 0x60]
mov r12, qword [rsp + 0x78]
mov rax, qword [rbx + 0x30]
mov r8d, 0x8000
mov rdx, qword [rsp + 0x50]
mov ecx, ebp
mov qword [rax + rcx*8], r9
xor eax, eax
test ebp, ebp
mov ecx, 0x88
cmove eax, ecx
mov ecx, 0x7f78
cmove r8d, ecx
add rdx, rax
lea rcx, [rax + r9]
call sub.VCRUNTIME140.dll_memcpy
cmp esi, r14d
jbe 0x140046adf
mov r8, qword [rsp + 0x50]
inc ebp
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
mov dword [rsp + 0x38], ebp
cmp ebp, r12d
jbe 0x1400468d0
cmp dword [0x14012a270], 0
mov r12, qword [rsp + 0x110]
mov rbp, qword [rsp + 0x108]
je 0x140046b41
mov rcx, qword [0x14012eca8]
test rcx, rcx
je 0x140046b0a
call qword [0x14012a2f0]
mov rcx, rdi
call qword [0x14012a2a8]
dec qword [0x14012eaa8]
mov rcx, rdi
movsxd rdx, eax
sub qword [0x14012ea60], rdx
call qword [0x14012a298]
mov rcx, qword [0x14012eca8]
test rcx, rcx
je 0x140046b4a
call qword [0x14012a300]
jmp 0x140046b4a
mov rcx, rdi
call qword [0x14012a298]
test r15d, r15d
jne 0x140046c37
mov edi, dword [rsp + 0x3c]
mov esi, dword [rsp + 0x40]
mov rcx, rbx
mov dword [rbx + 0x60], edi
mov dword [rbx + 0x64], esi
call fcn.140046300
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 0x140046ba6
xor r15d, r15d
jmp 0x140046bc6
mov r15d, 7
jmp 0x140046c37
mov rcx, qword [rbx + 8]
lea edx, [rdi + 3]
mov r9d, 0xa
mov r8d, 1
mov rax, qword [rcx]
call qword [rax + 0x70]
mov r15d, eax
test eax, eax
jne 0x140046c05
cmp edi, 1
jne 0x140046bd9
cmp dword [rbx + 0x58], 0
je 0x140046bd9
mov eax, dword [rbx + 0x58]
mov dword [rsi + 0x68], eax
jmp 0x140046be4
movsxd rax, edi
mov dword [rsi + rax*4 + 0x64], 0xffffffff
cmp byte [rbx + 0x3f], 0
jne 0x140046c0a
mov rcx, qword [rbx + 8]
lea edx, [rdi + 3]
mov r9d, 9
mov r8d, 1
mov rax, qword [rcx]
call qword [rax + 0x70]
jmp 0x140046c0a
cmp eax, 5
jne 0x140046c37
inc edi
cmp edi, 5
jl 0x140046b90
cmp dword [rbx + 0x5c], 0
je 0x140046c37
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.1400324a0
mov r13, qword [rsp + 0x118]
mov r14, qword [rsp + 0xd8]
cmp byte [rbx + 0x3f], 0
jne 0x140046c6a
mov rcx, qword [rbx + 8]
mov r8d, 3
mov edx, dword [rsp + 0x48]
mov r9d, 9
sub r8d, edx
mov rax, qword [rcx]
call qword [rax + 0x70]
mov eax, r15d
mov r15, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140100360
add rsp, 0xe0
pop rdi
pop rsi
pop rbx
ret