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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xf0
mov rax, qword [0x140110010]
xor rax, rsp
mov qword [rsp + 0xe0], rax
movzx edi, byte [rcx + 0x41]
xor r13d, r13d
inc edi
mov dword [rsp + 0x3c], r13d
mov ebp, 3
mov dword [rsp + 0x40], r13d
sub ebp, edi
mov dword [rsp + 0x30], edi
lea r12d, [r13 + 1]
mov rbx, rcx
mov esi, r13d
mov r14d, r13d
mov dword [rsp + 0x78], ebp
cmp byte [rcx + 0x3f], r13b
jne 0x14003150f
mov rcx, qword [rcx + 8]
lea r9d, [r13 + 0xa]
mov r8d, ebp
mov edx, edi
mov rax, qword [rcx]
call qword [rax + 0x70]
test eax, eax
jne 0x140031b71
mov ecx, ebp
mov eax, r12d
shl eax, cl
lea ecx, [rdi + 8]
dec eax
shl eax, cl
or dword [rbx + 0x8c], eax
xorps xmm0, xmm0
mov qword [rsp + 0x128], r15
movups xmmword [rbx + 0x48], xmm0
lea rdx, [rsp + 0xb8]
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 0x140031b2f
cmp qword [rsp + 0xb8], 0x20
jle 0x140031a3e
mov rcx, qword [rbx + 0x10]
lea r8d, [r15 + 0x20]
xor r9d, r9d
lea rdx, [rsp + 0xc0]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov r15d, eax
test eax, eax
jne 0x140031b2f
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 0x140031a3e
lea eax, [rbp - 1]
test ebp, eax
jne 0x140031a3e
lea eax, [rbp - 0x200]
cmp eax, 0xfe00
ja 0x140031a3e
mov eax, dword [rsp + 0xcc]
lea rdi, [rbx + 0x60]
and cl, r12b
mov dword [rbx + 0x38], ebp
bswap eax
movzx ecx, cl
lea r8d, [r15 + 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, r12d
mov qword [rbx + 0x68], rax
mov qword [rsp + 0x20], rdi
call fcn.140030f70
mov eax, dword [rsp + 0xd8]
bswap eax
cmp dword [rdi], eax
jne 0x140031a3e
mov eax, dword [rsp + 0xdc]
bswap eax
cmp dword [rbx + 0x64], eax
jne 0x140031a3e
mov eax, dword [rsp + 0xc4]
bswap eax
cmp eax, 0x2de218
je 0x140031665
lea rax, [0x140115b54]
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.14001cb90
jmp 0x140031b2b
lea eax, [rbp + 0x18]
movsxd r14, eax
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x70], eax
call fcn.1400e1e20
test eax, eax
je 0x14003168f
mov qword [rbx + 0x90], r13
mov r15d, 7
jmp 0x140031b2b
lea rcx, [r14 + 0x8000]
call fcn.1400199d0
lea rdi, [rbx + 0x90]
mov rsi, rax
mov qword [rsp + 0x50], rdi
mov qword [rdi], rax
test rax, rax
jne 0x1400316bb
lea r15d, [rax + 7]
jmp 0x140031b2b
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], r13d
idiv r14
mov qword [rsp + 0x60], r13
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]
mov eax, r13d
shl eax, 0xc
mov ecx, eax
add rax, 0xfde
cmp r8, rax
jae 0x140031739
mov dword [rsp + 0x34], edx
jmp 0x140031743
lea eax, [rcx + 0xfde]
mov dword [rsp + 0x34], eax
mov ebp, r12d
test r13d, r13d
je 0x14003174e
lea ebp, [rcx - 0x21]
call fcn.140030d80
cmp dword [rbx + 0x28], r13d
jle 0x140031787
mov rax, qword [rbx + 0x30]
lea rdx, [rbx + 0x30]
movsxd rcx, r13d
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 0x140031790
xor r15d, r15d
jmp 0x1400317c0
lea rax, [rbx + 0x30]
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x80]
mov edx, r13d
mov rcx, rbx
call fcn.140030df0
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 0x1400319cb
mov rax, qword [rdx]
mov r8, qword [rsp + 0x60]
mov r9, qword [rsp + 0x90]
mov dword [rbx + 0xa0], r13d
mov qword [rbx + 0x98], rcx
mov qword [r8 + rax], r9
cmp ebp, dword [rsp + 0x34]
ja 0x14003194c
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 0x140031934
mov rax, qword [rbx + 0x68]
cmp rax, qword [rsi + 8]
jne 0x140031934
mov r14d, dword [rsi]
bswap r14d
test r14d, r14d
je 0x14003192a
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.140030f70
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.140030f70
mov eax, dword [rsi + 0x10]
bswap eax
cmp dword [rbx + 0x60], eax
jne 0x14003191e
mov eax, dword [rsi + 0x14]
bswap eax
cmp dword [rbx + 0x64], eax
jne 0x14003191e
mov edi, dword [rsi + 4]
mov r8d, r14d
mov edx, ebp
mov rcx, rbx
bswap edi
call fcn.1400312d0
mov qword [rsp + 0x48], r13
mov r15d, eax
mov qword [rsp + 0x50], r12
mov rdx, rsi
mov r14, r13
test eax, eax
jne 0x140031931
test edi, edi
je 0x140031903
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 0x140031800
jmp 0x140031934
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
jmp 0x140031934
mov r14, qword [rsp + 0x48]
jmp 0x140031934
mov rdi, r12
mov r13d, dword [rsp + 0x38]
mov r12d, 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 r13d, r13d
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 sub.VCRUNTIME140.dll_memcpy
call fcn.140030d80
cmp ebp, dword [rsp + 0x34]
jbe 0x1400319cb
add qword [rsp + 0x60], 8
inc r13d
mov rdx, qword [rsp + 0xa8]
mov r8, qword [rsp + 0xb0]
mov dword [rsp + 0x38], r13d
cmp r13d, dword [rsp + 0xa0]
jbe 0x140031720
xor r13d, r13d
mov qword [rdi], r13
cmp dword [0x140112770], r13d
je 0x140031a23
mov rcx, qword [0x14011cba8]
test rcx, rcx
je 0x1400319ec
call qword [0x1401127f0]
mov rcx, rsi
call qword [0x1401127a8]
dec qword [0x14011c9b8]
mov rcx, rsi
movsxd rdx, eax
sub qword [0x14011c970], rdx
call qword [0x140112798]
mov rcx, qword [0x14011cba8]
test rcx, rcx
je 0x140031a2c
call qword [0x140112800]
jmp 0x140031a2c
mov rcx, rsi
call qword [0x140112798]
test r15d, r15d
jne 0x140031b2b
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.140031110
call fcn.140030d80
mov rax, qword [rbx + 0x30]
mov edi, r12d
mov r14, qword [rax]
mov dword [r14 + 0x60], r13d
mov eax, dword [rbx + 0x58]
mov dword [r14 + 0x80], eax
mov dword [r14 + 0x64], r13d
nop
cmp byte [rbx + 0x3f], 0
je 0x140031a7b
mov r15d, r13d
jmp 0x140031aa6
mov rcx, qword [rbx + 8]
lea edx, [rdi + 3]
mov r9d, 0xa
mov r8d, r12d
mov rax, qword [rcx]
call qword [rax + 0x70]
mov r15d, eax
test eax, eax
jne 0x140031af9
lea ecx, [rdi + 0xb]
mov eax, r12d
shl eax, cl
or dword [rbx + 0x8c], eax
cmp edi, 1
jne 0x140031aba
cmp dword [rbx + 0x58], 0
je 0x140031aba
mov eax, dword [rbx + 0x58]
mov dword [r14 + 0x68], eax
jmp 0x140031ac6
movsxd rax, edi
mov dword [r14 + rax*4 + 0x64], 0xffffffff
call fcn.140030d80
cmp byte [rbx + 0x3f], 0
jne 0x140031afe
mov rcx, qword [rbx + 8]
lea edx, [rdi + 3]
mov r9d, 9
mov r8d, r12d
mov rax, qword [rcx]
call qword [rax + 0x70]
lea ecx, [rdi + 0xb]
mov eax, r12d
shl eax, cl
not eax
and dword [rbx + 0x8c], eax
jmp 0x140031afe
cmp eax, 5
jne 0x140031b2b
inc edi
cmp edi, 5
jl 0x140031a70
cmp dword [rbx + 0x5c], 0
je 0x140031b2b
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.14001cb90
mov edi, dword [rsp + 0x30]
cmp byte [rbx + 0x3f], 0
jne 0x140031b66
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 r12d, cl
lea ecx, [rdi + 8]
dec r12d
shl r12d, cl
not r12d
and dword [rbx + 0x8c], r12d
mov eax, r15d
mov r15, qword [rsp + 0x128]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1400f1490
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret