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

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0xd8
mov rax, qword [0x140245028]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movzx esi, byte [rcx + 0x41]
xor edi, edi
inc esi
mov dword [rsp + 0x3c], edi
xor ebp, ebp
mov dword [rsp + 0x30], esi
mov rbx, rcx
mov dword [rsp + 0x40], ebp
cmp byte [rcx + 0x3f], dil
jne 0x1401136ce
mov rcx, qword [rcx + 8]
lea r9d, [rdi + 0xa]
mov r8d, 3
mov edx, esi
sub r8d, esi
mov rax, qword [rcx]
call qword [rax + 0x70]
test eax, eax
jne 0x140113cd1
xorps xmm0, xmm0
mov qword [rsp + 0x118], r14
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 r14d, eax
test eax, eax
jne 0x140113ca5
cmp qword [rsp + 0x98], 0x20
mov qword [rsp + 0x108], r12
mov qword [rsp + 0xd0], r15
jle 0x140113bba
mov rcx, qword [rbx + 0x10]
lea r8d, [r14 + 0x20]
xor r9d, r9d
lea rdx, [rsp + 0xa0]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov r14d, eax
test eax, eax
jne 0x140113c95
mov ecx, dword [rsp + 0xa0]
mov esi, dword [rsp + 0xa8]
bswap ecx
mov eax, ecx
and eax, 0xfffffffe
bswap esi
mov dword [rsp + 0x54], esi
cmp eax, 0x377f0682
jne 0x140113bba
lea eax, [rsi - 1]
test esi, eax
jne 0x140113bba
lea eax, [rsi - 0x200]
cmp eax, 0xfe00
ja 0x140113bba
mov eax, dword [rsp + 0xac]
lea r12, [rbx + 0x60]
bswap eax
and cl, 1
mov dword [rbx + 0x88], eax
mov rax, qword [rsp + 0xb0]
mov edx, edi
mov byte [rbx + 0x55], cl
mov r8d, edx
mov qword [rbx + 0x68], rax
lea rcx, [rsp + 0xa0]
mov dword [rbx + 0x38], esi
je 0x1401137f0
nop
mov eax, dword [rcx]
bswap eax
add eax, r8d
add edx, eax
mov eax, dword [rcx + 4]
bswap eax
add eax, edx
add rcx, 8
add r8d, eax
lea rax, [rsp + 0xb8]
cmp rcx, rax
jb 0x1401137c0
jmp 0x140113810
mov eax, dword [rcx]
add eax, r8d
add edx, eax
mov eax, dword [rcx + 4]
add eax, edx
add rcx, 8
add r8d, eax
lea rax, [rsp + 0xb8]
cmp rcx, rax
jb 0x1401137f0
mov eax, dword [rsp + 0xb8]
bswap eax
mov dword [r12], edx
mov dword [r12 + 4], r8d
cmp edx, eax
jne 0x140113bba
mov eax, dword [rsp + 0xbc]
bswap eax
cmp dword [rbx + 0x64], eax
jne 0x140113bba
mov eax, dword [rsp + 0xa4]
bswap eax
cmp eax, 0x2de218
je 0x14011387f
lea rax, [0x140222664]
mov r14d, 0xe
mov ecx, r14d
mov qword [rsp + 0x20], rax
mov r9d, 0xff9d
lea r8, str.cannot_open_file
lea rdx, str._s_at_line__d_of___.10s_
call fcn.1400ff0b0
jmp 0x140113c91
lea edi, [rsi + 0x18]
mov dword [rsp + 0x50], edi
call fcn.1401be750
test eax, eax
jne 0x140113bfb
movsxd rdi, edi
mov qword [rsp + 0x78], rdi
lea rcx, [rdi + 0x8000]
call fcn.1400fbf20
mov r15, rax
test rax, rax
je 0x140113bfb
add rax, 0x18
movsxd r8, esi
add r8, rax
mov qword [rsp + 0x110], r13
mov rax, qword [rsp + 0x98]
xor r13d, r13d
add rax, 0xffffffffffffffe0
mov qword [rsp + 0x58], r8
cqo
mov dword [rsp + 0x38], 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 + 0x48], rdx
nop word [rax + rax]
mov eax, r13d
mov esi, r9d
shl eax, 0xc
mov edi, eax
add rax, 0xfde
cmp rcx, rax
jb 0x14011393c
lea esi, [rdi + 0xfde]
mov dword [rsp + 0x34], esi
test r13d, r13d
jne 0x14011394b
lea edi, [r13 + 1]
jmp 0x14011394e
add edi, 0xffffffdf
lea rbp, [rbx + 0x30]
cmp dword [rbx + 0x28], r13d
jle 0x14011397c
mov rax, qword [rbp]
movsxd rcx, r13d
mov qword [rsp + 0x68], rbp
mov rcx, qword [rax + rcx*8]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x60], rcx
test rcx, rcx
je 0x14011397c
xor r14d, r14d
jmp 0x1401139a8
lea r8, [rsp + 0x60]
mov edx, r13d
mov rcx, rbx
call fcn.140113060
mov rcx, qword [rsp + 0x60]
mov r14d, eax
mov rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x58]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x68], rbp
test rcx, rcx
je 0x140113b46
mov rax, qword [rbp]
mov qword [rdx + rax], r8
cmp edi, esi
ja 0x140113ad5
mov r13, qword [rsp + 0x78]
nop word [rax + rax]
mov rcx, qword [rbx + 0x10]
lea r9d, [rdi - 1]
mov r8d, dword [rsp + 0x50]
mov rdx, r15
imul r9, r13
mov r10, qword [rcx]
add r9, 0x20
call qword [r10 + 0x10]
mov r14d, eax
test eax, eax
jne 0x140113ac1
mov rax, qword [rbx + 0x68]
cmp rax, qword [r15 + 8]
jne 0x140113ac1
mov ebp, dword [r15]
bswap ebp
test ebp, ebp
je 0x140113ac1
xor ecx, ecx
mov qword [rsp + 0x20], r12
cmp byte [rbx + 0x55], cl
lea r8d, [r14 + 8]
mov r9, r12
mov rdx, r15
sete cl
call fcn.1401131c0
mov r8d, dword [rbx + 0x38]
lea rdx, [r15 + 0x18]
mov r9, r12
mov qword [rsp + 0x20], r12
call fcn.1401131c0
mov ecx, dword [r15 + 0x10]
bswap ecx
cmp dword [r12], ecx
jne 0x140113ac1
mov eax, dword [r15 + 0x14]
bswap eax
cmp dword [r12 + 4], eax
jne 0x140113ac1
mov esi, dword [r15 + 4]
mov r8d, ebp
mov edx, edi
mov rcx, rbx
bswap esi
call fcn.1401134c0
mov r14d, eax
test eax, eax
jne 0x140113abd
test esi, esi
je 0x140113aad
mov dword [rbx + 0x5c], esi
mov edx, 0xff00
mov esi, dword [rsp + 0x54]
mov ecx, esi
movzx eax, si
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 + 0x3c], eax
mov eax, dword [rbx + 0x64]
mov dword [rsp + 0x40], eax
mov esi, dword [rsp + 0x34]
inc edi
cmp edi, esi
jbe 0x1401139d0
jmp 0x140113ac1
mov esi, dword [rsp + 0x34]
mov r13d, dword [rsp + 0x38]
mov rbp, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x48]
mov rax, qword [rbp]
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 sub.VCRUNTIME140.dll_memcpy
cmp edi, esi
jbe 0x140113b46
mov rdx, qword [rsp + 0x48]
inc r13d
mov r8, qword [rsp + 0x58]
add rdx, 8
mov r9, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x90]
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x48], rdx
cmp r13d, dword [rsp + 0x80]
jbe 0x140113920
cmp dword [0x140249880], 0
mov r13, qword [rsp + 0x110]
je 0x140113ba0
mov rcx, qword [0x14024f058]
test rcx, rcx
je 0x140113b69
call qword [0x140249900]
mov rcx, r15
call qword [0x1402498b8]
dec qword [0x14024ee58]
movsxd rcx, eax
sub qword [0x14024ee10], rcx
mov rcx, r15
call qword [0x1402498a8]
mov rcx, qword [0x14024f058]
test rcx, rcx
je 0x140113ba9
call qword [0x140249910]
jmp 0x140113ba9
mov rcx, r15
call qword [0x1402498a8]
test r14d, r14d
jne 0x140113c91
mov edi, dword [rsp + 0x3c]
mov ebp, dword [rsp + 0x40]
mov rcx, rbx
mov dword [rbx + 0x60], edi
mov dword [rbx + 0x64], ebp
call fcn.140113310
mov rax, qword [rbx + 0x30]
mov edi, 1
mov r15, qword [rax]
mov dword [r15 + 0x60], 0
mov eax, dword [rbx + 0x58]
mov dword [r15 + 0x80], eax
mov dword [r15 + 0x64], 0
nop
cmp byte [rbx + 0x3f], 0
je 0x140113c06
xor r14d, r14d
jmp 0x140113c24
mov r14d, 7
jmp 0x140113c91
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 r14d, eax
test eax, eax
jne 0x140113c63
cmp edi, 1
jne 0x140113c38
cmp dword [rbx + 0x58], 0
je 0x140113c38
mov eax, dword [rbx + 0x58]
mov dword [r15 + 0x68], eax
jmp 0x140113c44
movsxd rax, edi
mov dword [r15 + rax*4 + 0x64], 0xffffffff
cmp byte [rbx + 0x3f], 0
jne 0x140113c68
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 0x140113c68
cmp eax, 5
jne 0x140113c91
inc edi
cmp edi, 5
jl 0x140113bf0
cmp dword [rbx + 0x5c], 0
je 0x140113c91
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.1400ff0b0
mov esi, dword [rsp + 0x30]
mov r12, qword [rsp + 0x108]
mov r15, qword [rsp + 0xd0]
cmp byte [rbx + 0x3f], 0
jne 0x140113cc6
mov rcx, qword [rbx + 8]
mov r8d, 3
sub r8d, esi
mov r9d, 9
mov edx, esi
mov rax, qword [rcx]
call qword [rax + 0x70]
mov eax, r14d
mov r14, qword [rsp + 0x118]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1401cd610
add rsp, 0xd8
pop rdi
pop rsi
pop rbp
pop rbx
ret