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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x198
mov r14d, 8
cmp byte [rcx + 0x42], 0
mov qword [rsp + 0x1e8], rdx
mov r15, rcx
mov dword [rsp + 0x1f0], r8d
mov qword [rsp + 0x1f8], r9
mov dword [rsp + 0x90], 0
jne 0x1401c9063
cmp byte [rcx + 0x3f], 0
jne 0x1401c9080
mov rcx, qword [rcx + 8]
mov r9d, 0xa
mov r8d, 1
mov edx, 1
mov rax, qword [rcx]
call qword [rax + 0x70]
mov r14d, eax
test eax, eax
je 0x1401c9080
mov byte [rsp + 0x3b], 1
mov r8d, dword [rsp + 0x90]
test r8d, r8d
jne 0x1401c9145
cmp byte [r15 + 0x40], 0
je 0x1401c9027
cmp byte [r15 + 0x3f], 0
jne 0x1401c9015
mov rcx, qword [r15 + 8]
mov r9d, 9
mov r8d, 1
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x70]
mov byte [r15 + 0x40], 0
mov dword [r15 + 0x7c], 0
mov byte [r15 + 0x43], 0
cmp byte [r15 + 0x41], 0
je 0x1401c9055
cmp byte [r15 + 0x3f], 0
jne 0x1401c9050
mov rcx, qword [r15 + 8]
mov r9d, 9
mov r8d, 1
mov edx, 1
mov rax, qword [rcx]
call qword [rax + 0x70]
mov byte [r15 + 0x41], 0
cmp byte [rsp + 0x3b], 0
mov eax, 5
cmove r14d, eax
mov eax, r14d
add rsp, 0x198
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r13d, dword [rsp + 0x1f0]
mov byte [r15 + 0x41], 1
test r13d, r13d
jne 0x1401c917a
mov byte [rsp + 0x3b], 1
lea rdx, [rsp + 0x90]
mov rcx, r15
call fcn.1401c4b20
mov r12d, dword [rsp + 0x90]
mov r14d, eax
test r12d, r12d
jne 0x1401c91b2
test eax, eax
jne 0x1401c9d33
mov eax, dword [r15 + 0x58]
mov dword [rsp + 0x3c], eax
test eax, eax
je 0x1401c91fc
movzx eax, word [r15 + 0x56]
mov edx, eax
and eax, 0xfe00
shl edx, 0x10
and edx, 0x10000
or edx, eax
mov dword [rsp + 0x70], edx
cmp dword [rsp + 0x210], edx
je 0x1401c926c
lea rax, [0x1403be9bc]
lea r8, str.database_corruption
mov r9d, 0x10033
mov ecx, 0xb
mov qword [rsp + 0x20], rax
lea rdx, str._s_at_line__d_of___.10s_
mov r14d, 0xb
call fcn.140197c10
mov r8d, dword [rsp + 0x90]
mov byte [rsp + 0x3b], 1
test r8d, r8d
je 0x1401c8fef
mov qword [r15 + 0x48], 0
mov qword [r15 + 0x50], 0
mov qword [r15 + 0x58], 0
mov qword [r15 + 0x60], 0
mov qword [r15 + 0x68], 0
mov qword [r15 + 0x70], 0
jmp 0x1401c8fef
mov dword [rsp + 0x20], 1
mov r8, qword [rsp + 0x200]
xor r9d, r9d
mov rcx, r15
mov rdx, qword [rsp + 0x1f8]
call fcn.140162d40
mov r14d, eax
test eax, eax
jne 0x1401c93aa
mov byte [r15 + 0x40], 1
jmp 0x1401c9096
mov rcx, qword [r15 + 8]
mov rax, qword [rcx]
cmp dword [rax], 2
jg 0x1401c91d8
test r14d, r14d
je 0x1401c90c7
mov byte [rsp + 0x3b], 1
jmp 0x1401c9145
xor r8d, r8d
xor edx, edx
call qword [rax + 0x90]
test r14d, r14d
jne 0x1401c8fd9
mov eax, dword [r15 + 0x58]
mov dword [rsp + 0x3c], eax
test eax, eax
jne 0x1401c90d7
mov rax, qword [r15 + 0x30]
mov rax, qword [rax]
mov edx, dword [rax + 0x60]
mov edx, dword [rsp + 0x1f0]
test edx, edx
jne 0x1401c93d9
mov qword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x40]
xor r14d, r14d
call fcn.14015d2f0
cmp qword [rsp + 0x220], 0
je 0x1401c9244
mov eax, dword [r15 + 0x58]
mov rsi, qword [rsp + 0x220]
mov dword [rsi], eax
cmp qword [rsp + 0x228], 0
je 0x1401c8fde
mov rax, qword [r15 + 0x30]
mov rsi, qword [rsp + 0x228]
mov rax, qword [rax]
mov eax, dword [rax + 0x60]
mov dword [rsi], eax
jmp 0x1401c8fde
mov rax, qword [r15 + 0x30]
mov ebp, dword [rsp + 0x3c]
mov rbx, qword [rax]
mov eax, dword [rbx + 0x60]
mov qword [rsp + 0x60], rbx
cmp ebp, eax
jbe 0x1401c9c8e
mov eax, dword [r15 + 0x5c]
lea rsi, [rbx + 0x68]
xor r14d, r14d
mov ebx, 2
mov r13, qword [rsp + 0x1f8]
mov dword [rsp + 0x5c], eax
mov edi, dword [rsi]
cmp edi, ebp
jb 0x1401c92c3
nop dword [rax]
cmp ebx, 5
je 0x1401c9321
mov edi, dword [rsi + 4]
add rsi, 4
add ebx, 1
cmp edi, ebp
jae 0x1401c92b0
mov dword [rsp + 0x20], 1
lea r12d, [rbx + 2]
mov rdx, r13
mov rcx, r15
mov r8, qword [rsp + 0x200]
mov r9d, r12d
call fcn.140162d40
mov r14d, eax
test eax, eax
jne 0x1401c9397
cmp ebx, 2
je 0x1401c9b57
mov dword [rsi], 0xffffffff
cmp byte [r15 + 0x3f], 0
jne 0x1401c92b0
mov rcx, qword [r15 + 8]
mov r9d, 9
mov r8d, 1
mov edx, r12d
mov rax, qword [rcx]
call qword [rax + 0x70]
jmp 0x1401c92b0
mov rax, qword [rsp + 0x60]
mov dword [rsp + 0x3c], ebp
mov qword [rsp + 0x1f8], r13
mov qword [rsp + 0x40], 0
mov eax, dword [rax + 0x60]
cmp eax, ebp
jb 0x1401c94d1
cmp r14d, 5
je 0x1401c94bd
mov r10d, dword [rsp + 0x1f0]
test r14d, r14d
sete bl
test r10d, r10d
je 0x1401c9c08
test bl, bl
je 0x1401c9c08
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x60]
cmp eax, dword [r15 + 0x58]
jae 0x1401c93e5
mov byte [rsp + 0x3b], 1
mov r14d, 5
mov rcx, qword [rsp + 0x40]
call fcn.14015d2f0
jmp 0x1401c922b
cmp eax, 5
jne 0x1401c9b46
mov ebp, edi
xor r13d, r13d
jmp 0x1401c92b0
mov byte [rsp + 0x3b], 1
cmp eax, 5
jne 0x1401c8fde
mov byte [rsp + 0x3b], 0
mov qword [rsp + 0x1f8], 0
mov dword [rsp + 0x1f0], 0
jmp 0x1401c909b
mov qword [rsp + 0x40], 0
mov eax, dword [rax + 0x60]
xor r14d, r14d
cmp dword [rsp + 0x1f0], 1
jle 0x1401c9388
mov r9d, dword [0x14026b5b4]
test r9d, r9d
jne 0x1401c9b26
call fcn.14015c230
test eax, eax
jne 0x1401c9418
call fcn.1401a0eb0
test eax, eax
je 0x1401c9b29
mov dword [rsp + 0x20], 4
mov r9d, 4
mov rcx, r15
mov r8, qword [rsp + 0x200]
mov rdx, qword [rsp + 0x1f8]
call fcn.140162d40
mov r14d, eax
test eax, eax
je 0x1401c9b69
mov byte [rsp + 0x3b], 1
cmp eax, 5
sete bl
mov rcx, qword [rsp + 0x40]
call fcn.14015d2f0
test bl, bl
je 0x1401c8fde
jmp 0x1401c922b
mov rax, qword [rsp + 0x40]
mov r14d, dword [rsp + 0x48]
mov dword [rax], 0xffffffff
mov rcx, qword [r15 + 8]
mov rax, qword [rcx]
test rax, rax
je 0x1401c9492
xor r8d, r8d
mov edx, 0x25
call qword [rax + 0x50]
mov rax, qword [r15 + 0x30]
mov rax, qword [rax]
mov eax, dword [rax + 0x10]
cmp eax, dword [rsp + 0x3c]
je 0x1401c9c4a
mov rax, qword [rsp + 0x60]
mov ebx, dword [rsp + 0x3c]
mov dword [rax + 0x60], ebx
cmp byte [r15 + 0x3f], 0
je 0x1401c9ae7
mov ecx, dword [rsp + 0x1f0]
test ecx, ecx
jne 0x1401c936f
jmp 0x1401c921e
mov rax, qword [rsp + 0x60]
mov ebp, dword [0x14026b5b4]
mov esi, dword [rax + 0x60]
mov eax, dword [r15 + 0x58]
lea edi, [rax + 0x1000]
mov dword [rsp + 0x8c], eax
sub rdi, 0xfdf
shr rdi, 0xc
mov dword [rsp + 0x74], edi
lea ebx, [rdi + 1]
test ebp, ebp
jne 0x1401c9bcc
call fcn.14015c230
test eax, eax
jne 0x1401c9b40
call fcn.1401a0eb0
test eax, eax
jne 0x1401c9b40
mov edx, dword [rsp + 0x8c]
movsxd rax, edi
shl rax, 4
lea rdi, [rax + rdx + 0x14]
add rdi, rdi
mov rcx, rdi
call fcn.140160470
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1401c9b40
mov r8, rdi
xor edx, edx
mov rdi, rax
mov rcx, rax
call sub.msvcrt.dll_memset
mov dword [rdi + 4], ebx
mov edi, dword [0x14026b5b4]
test edi, edi
jne 0x1401c9bd4
call fcn.14015c230
test eax, eax
jne 0x1401c9ba7
call fcn.1401a0eb0
test eax, eax
jne 0x1401c9ba7
mov eax, dword [rsp + 0x8c]
mov ecx, 0x1000
cmp eax, 0x1000
cmovbe rcx, rax
add rcx, rcx
call fcn.140160470
mov r12, rax
test rax, rax
je 0x1401c9ba7
lea eax, [rsi + 0x1001]
sub rax, 0xfdf
shr rax, 0xc
cmp ebx, eax
jle 0x1401c9877
cdqe
mov qword [rsp + 0x1e0], r15
lea r13, [rsp + 0x98]
mov qword [rsp + 0x48], rax
shl rax, 5
add rax, qword [rsp + 0x40]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x80], rax
mov r8, qword [rsp + 0x78]
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x1e0]
call fcn.14016f6f0
mov r14d, eax
test eax, eax
je 0x1401c966a
mov rcx, r12
mov r15, qword [rsp + 0x1e0]
call fcn.14015d2f0
mov rcx, qword [rsp + 0x40]
call fcn.14015d2f0
mov qword [rsp + 0x40], 0
cmp r14d, 5
je 0x1401c94bd
test r14d, r14d
sete bl
setne al
or byte [rsp + 0x3b], al
jmp 0x1401c9454
mov rsi, qword [rsp + 0x48]
mov ebx, dword [rsp + 0x74]
mov eax, dword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov dword [rsp + 0x88], esi
cmp esi, ebx
je 0x1401c9b14
mov rdx, qword [rsp + 0xa0]
sub rdx, rbp
sar rdx, 2
mov dword [rsp + 0x58], edx
mov rbx, qword [rsp + 0x40]
mov ecx, eax
add eax, 1
movsxd rdx, dword [rbx + 4]
mov dword [rsp + 0xb0], eax
mov eax, dword [rsp + 0x58]
shl rdx, 5
lea rdx, [rdx + rcx*2 + 8]
mov rcx, rdx
add rcx, rbx
mov qword [rsp + 0x68], rcx
test eax, eax
jle 0x1401c9c17
movsxd rdx, eax
xor eax, eax
nop
mov word [rcx + rax*2], ax
add rax, 1
cmp rdx, rax
jne 0x1401c96e0
mov rdi, qword [rsp + 0x80]
xor eax, eax
mov ecx, 0x1a
rep stosq qword [rdi], rax
mov rax, qword [rsp + 0x68]
lea rdi, [rsp + 0xb0]
mov qword [rsp + 0x30], rax
nop dword [rax]
mov dword [rsp + 0x94], 1
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x98], rax
mov rcx, rax
test r14b, 1
je 0x1401c9b07
mov r15d, 1
lea rsi, [rsp + 0xb8]
lea rbx, [rsp + 0x94]
nop dword [rax + rax]
mov rax, r15
mov qword [rsp + 0x28], r12
mov r9, r13
mov rcx, rbp
shl rax, 4
mov qword [rsp + 0x20], rbx
mov rdx, qword [rsi + rax]
mov r8d, dword [rdi + rax]
call fcn.14015b850
mov edx, r15d
add r15, 1
bt r14d, edx
jb 0x1401c9758
mov rcx, qword [rsp + 0x98]
mov r8d, dword [rsp + 0x94]
mov eax, edx
add qword [rsp + 0x30], 2
add r14d, 1
shl rax, 4
mov qword [rsp + rax + 0xc8], rcx
mov dword [rsp + rax + 0xc0], r8d
cmp r14d, dword [rsp + 0x58]
jne 0x1401c9718
lea esi, [rdx + 1]
cmp esi, 0xc
ja 0x1401c9828
mov edi, esi
mov r14d, dword [rsp + 0x58]
lea rbx, [rsp + 0x94]
shl rdi, 4
add rdi, qword [rsp + 0x80]
jmp 0x1401c97fc
add esi, 1
add rdi, 0x10
cmp esi, 0xd
je 0x1401c9820
bt r14d, esi
jae 0x1401c97f0
mov rdx, qword [rdi + 8]
mov qword [rsp + 0x28], r12
mov r9, r13
mov rcx, rbp
mov qword [rsp + 0x20], rbx
mov r8d, dword [rdi]
call fcn.14015b850
jmp 0x1401c97f0
mov r8d, dword [rsp + 0x94]
mov rdi, qword [rsp + 0x50]
mov eax, dword [rsp + 0xb0]
add qword [rsp + 0x48], 1
mov ebx, dword [rsp + 0x74]
mov dword [rdi + 0x24], eax
mov rax, qword [rsp + 0x68]
add rdi, 0x20
mov dword [rdi], r8d
mov qword [rdi - 0x10], rax
mov rax, qword [rsp + 0xa8]
mov qword [rdi - 8], rax
mov qword [rsp + 0x50], rdi
cmp dword [rsp + 0x88], ebx
jl 0x1401c960e
mov r15, qword [rsp + 0x1e0]
mov rcx, r12
call fcn.14015d2f0
mov dword [rsp + 0x20], 1
mov rcx, r15
mov r8, qword [rsp + 0x200]
mov rdx, qword [rsp + 0x1f8]
mov r9d, 3
call fcn.140162d40
mov r14d, eax
test eax, eax
jne 0x1401c964e
mov rax, qword [rsp + 0x60]
mov ebx, dword [rax + 0x60]
mov dword [rsp + 0x30], ebx
mov ebx, dword [rsp + 0x3c]
mov dword [rax + 0x80], ebx
mov eax, dword [rsp + 0x208]
sar eax, 2
and eax, 3
mov dword [rsp + 0x58], eax
je 0x1401c98f2
mov rcx, qword [r15 + 0x10]
mov edx, dword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov r14d, eax
test eax, eax
jne 0x1401c9ac5
movsxd r13, dword [rsp + 0x70]
mov eax, dword [rsp + 0x5c]
mov rcx, qword [r15 + 8]
imul rax, r13
mov qword [rsp + 0xa0], rax
mov rax, qword [rcx]
test rax, rax
je 0x1401c9925
xor r8d, r8d
mov edx, 0x27
call qword [rax + 0x50]
mov rcx, qword [r15 + 8]
mov rax, qword [rcx]
lea rdx, [rsp + 0xc0]
call qword [rax + 0x30]
mov r14d, eax
test eax, eax
jne 0x1401c9ac5
mov rcx, qword [rsp + 0xc0]
mov rdx, qword [rsp + 0xa0]
cmp rcx, rdx
jge 0x1401c9985
mov eax, dword [r15 + 0x58]
imul rax, r13
lea rax, [rcx + rax + 0x10000]
cmp rdx, rax
jg 0x1401c9ce0
mov rcx, qword [r15 + 8]
mov rax, qword [rcx]
test rax, rax
je 0x1401c9985
lea r8, [rsp + 0xa0]
mov edx, 5
call qword [rax + 0x50]
mov rax, qword [rsp + 0x40]
mov dword [rsp + 0x48], r14d
xor ebx, ebx
lea r10, [rax - 0x20]
mov r14, rax
mov rdi, r10
nop dword [rax + rax]
mov edx, dword [r14 + 4]
mov ebp, dword [r14]
test edx, edx
jle 0x1401c946b
movsxd rax, edx
mov esi, 0xffffffff
shl rax, 5
lea r12, [rdi + rax]
lea r8, [r14 + rax]
lea eax, [rdx - 1]
shl rax, 5
sub r12, rax
nop dword [rax]
movsxd rcx, dword [r8 - 0x18]
mov edx, dword [r8]
cmp ecx, edx
jge 0x1401c9a23
sub edx, 1
lea eax, [rcx + 1]
mov r10, qword [r8 - 8]
mov r9, qword [r8 - 0x10]
sub edx, ecx
cdqe
lea r11, [rdx + rcx + 2]
jmp 0x1401c9a05
mov dword [r8 - 0x18], eax
add rax, 1
cmp r11, rax
je 0x1401c9a23
movzx edx, word [r9 + rax*2 - 2]
mov rcx, rdx
mov edx, dword [r10 + rdx*4]
cmp ebp, edx
jae 0x1401c99f8
cmp esi, edx
jbe 0x1401c9a23
movzx ebx, cx
mov esi, edx
add ebx, dword [r8 + 4]
sub r8, 0x20
cmp r12, r8
jne 0x1401c99d0
mov dword [r14], esi
cmp esi, 0xffffffff
je 0x1401c9c9c
mov rax, qword [rsp + 0x1e8]
mov eax, dword [rax + 0x188]
test eax, eax
jne 0x1401c9bdc
cmp dword [rsp + 0x3c], ebx
setb dl
cmp dword [rsp + 0x30], ebx
setae al
or dl, al
jne 0x1401c99a0
cmp dword [rsp + 0x5c], esi
jb 0x1401c99a0
mov ebp, dword [rsp + 0x70]
mov rcx, qword [r15 + 0x10]
lea eax, [rbx - 1]
lea edx, [rbp + 0x18]
mov r10, qword [rcx]
mov r8d, ebp
movsxd rdx, edx
imul rax, rdx
mov rdx, qword [rsp + 0x218]
lea r9, [rax + 0x38]
call qword [r10 + 0x10]
test eax, eax
jne 0x1401c9ac2
mov rcx, qword [r15 + 8]
lea r9d, [rsi - 1]
mov rdx, qword [rsp + 0x218]
mov r8d, ebp
imul r9, r13
mov rax, qword [rcx]
call qword [rax + 0x18]
test eax, eax
je 0x1401c99a0
mov r14d, eax
mov rcx, qword [r15 + 8]
mov rax, qword [rcx]
test rax, rax
je 0x1401c9adc
xor r8d, r8d
mov edx, 0x25
call qword [rax + 0x50]
cmp byte [r15 + 0x3f], 0
jne 0x1401c9bf8
mov rcx, qword [r15 + 8]
mov r9d, 9
mov r8d, 1
mov edx, 3
mov rax, qword [rcx]
call qword [rax + 0x70]
jmp 0x1401c9346
mov r8d, 1
xor edx, edx
jmp 0x1401c9799
mov esi, dword [rsp + 0x8c]
sub esi, eax
mov dword [rsp + 0x58], esi
jmp 0x1401c96a4
mfence
lea rdx, [rsp + 0xc0]
mov ecx, 4
call fcn.1401ace00
jmp 0x1401c9418
mov r14d, 7
xor ecx, ecx
call fcn.14015d2f0
mov byte [rsp + 0x3b], 1
jmp 0x1401c8fde
mov dword [rsi], ebp
cmp byte [r15 + 0x3f], 0
je 0x1401c9306
jmp 0x1401c92b5
cmp dword [rsp + 0x1f0], 3
mov ebx, 1
je 0x1401c9ca6
cmp byte [r15 + 0x3f], 0
jne 0x1401c9454
mov rcx, qword [r15 + 8]
mov r9d, 9
mov r8d, 4
mov edx, 4
mov rax, qword [rcx]
call qword [rax + 0x70]
jmp 0x1401c9454
xor ecx, ecx
mov r14d, 7
call fcn.14015d2f0
mov rcx, qword [rsp + 0x40]
call fcn.14015d2f0
mov qword [rsp + 0x40], 0
jmp 0x1401c9658
mfence
jmp 0x1401c9524
mfence
jmp 0x1401c958b
mov rax, qword [rsp + 0x1e8]
cmp byte [rax + 0x67], 1
sbb r14d, r14d
and r14d, 2
add r14d, 7
jmp 0x1401c9ac5
test r14d, r14d
sete bl
cmp r14d, 5
je 0x1401c94bd
test r14d, r14d
setne al
or byte [rsp + 0x3b], al
jmp 0x1401c9454
mov rdi, qword [rsp + 0x80]
mov ecx, 0x1a
xor eax, eax
mov dword [rsp + 0x94], 0
mov qword [rsp + 0x98], 0
mov esi, 1
rep stosq qword [rdi], rax
jmp 0x1401c97cc
mov rcx, qword [r15 + 8]
mov edx, dword [r15 + 0x5c]
mov rax, qword [rcx]
imul rdx, r13
call qword [rax + 0x20]
test eax, eax
jne 0x1401c9d2b
mov r11d, dword [rsp + 0x58]
test r11d, r11d
jne 0x1401c9d15
mov rax, qword [rsp + 0x60]
mov esi, dword [rsp + 0x3c]
mov dword [rax + 0x60], esi
cmp byte [r15 + 0x3f], 0
je 0x1401c9ae7
jmp 0x1401c94bd
mov qword [rsp + 0x40], 0
jmp 0x1401c94bd
mov r14d, dword [rsp + 0x48]
jmp 0x1401c947b
mov edx, dword [rsp + 0xc0]
mov rcx, r15
call fcn.140162e60
mov rcx, qword [r15 + 0x10]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
mov r14d, eax
sete bl
cmp eax, 5
sete al
or ebx, eax
test r14d, r14d
setne al
or byte [rsp + 0x3b], al
jmp 0x1401c9b7c
lea rax, [0x1403be9bc]
mov r9d, 0xf926
lea r8, str.database_corruption
mov ecx, 0xb
mov qword [rsp + 0x20], rax
lea rdx, str._s_at_line__d_of___.10s_
mov r14d, 0xb
call fcn.140197c10
jmp 0x1401c9ac5
mov rcx, qword [r15 + 8]
mov edx, dword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + 0x28]
test eax, eax
je 0x1401c94a6
mov r14d, eax
jmp 0x1401c9adc
mov byte [rsp + 0x3b], 1
jmp 0x1401c8fef