Function at 0x140130410
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
mov rax, qword [0x1404af540]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r14, r8
mov ebx, edx
mov rsi, rcx
cmp byte [0x1404baf90], 0
je 0x140130a9f
cmp qword [r8 + 0x10], 0
je 0x140130a9f
mov rax, qword [rcx]
call qword [rax + reloc.SinoSPE.dll_Ordinal_40]
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
xor r13d, r13d
mov qword [rbp + 7], r13
mov qword [rbp + 0xf], 7
mov word [rbp - 9], r13w
cmp ebx, 3
jne 0x1401304eb
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], r13
mov qword [rbp - 0x11], reloc.SinoSPE.dll_Ordinal_15
mov byte [rbp - 0x29], r13b
mov r8d, 0xfde9
lea rdx, [rbp - 0x29]
mov rcx, r14
call fcn.1401f61c0
cmp qword [rbp - 0x19], r13
jne 0x140130538
mov rdx, qword [rbp - 0x11]
cmp rdx, 0xf
jbe 0x1401304eb
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401304e6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140130755
call fcn.1403ca488
mov r15d, r13d
mov rdx, qword [rbp + 0xf]
cmp rdx, 7
jbe 0x140130a9a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140130a95
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140130a95
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov qword [rbp - 0x59], r13
mov dword [rsp + 0x28], r13d
mov byte [rsp + 0x20], 0
xor r9d, r9d
mov r15d, 1
mov r8d, r15d
xor edx, edx
lea rcx, [rbp - 0x59]
call fcn.14017ad90
test al, al
je 0x140130723
mov qword [rbp - 0x51], r13
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x39], r13
mov qword [rbp - 0x31], r13
mov r8d, Ordinal_51
lea rdx, str.SELECT_Content_FROM_ReportTemplate_WHERE_Name
lea rcx, [rbp - 0x49]
call fcn.1400da7b0
nop
lea r9, [rbp - 0x29]
cmp qword [rbp - 0x11], 0xf
cmova r9, qword [rbp - 0x29]
mov rdi, qword [rbp - 0x19]
mov rcx, qword [rbp - 0x39]
mov rdx, qword [rbp - 0x31]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x1401305e0
lea rax, [rcx + rdi]
mov qword [rbp - 0x39], rax
lea rbx, [rbp - 0x49]
cmp rdx, 0xf
cmova rbx, qword [rbp - 0x49]
add rbx, rcx
mov r8, rdi
mov rdx, r9
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + rbx], 0
jmp 0x1401305f1
mov qword [rsp + 0x20], rdi
mov rdx, rdi
lea rcx, [rbp - 0x49]
call fcn.140020b10
mov rcx, qword [rbp - 0x39]
mov rdx, qword [rbp - 0x31]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x140130622
lea rax, [rcx + 1]
mov qword [rbp - 0x39], rax
lea rax, [rbp - 0x49]
cmp rdx, 0xf
cmova rax, qword [rbp - 0x49]
mov word [rax + rcx], reloc.SinoSPE.dll_Ordinal_39
jmp 0x14013063a
mov qword [rsp + 0x20], r15
lea r9, reloc.SinoSPE.dll_Ordinal_39
mov rdx, r15
lea rcx, [rbp - 0x49]
call fcn.140020b10
lea rdx, [rbp - 0x49]
cmp qword [rbp - 0x31], 0xf
cmova rdx, qword [rbp - 0x49]
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x51]
mov rbx, 0xffffffffffffffff
mov r8d, ebx
mov rcx, qword [rbp - 0x59]
call fcn.1402884b0
test eax, eax
jne 0x1401306d1
mov rcx, qword [rbp - 0x51]
call fcn.14028a180
cmp eax, 0x64
jne 0x1401306d1
xor edx, edx
mov rcx, qword [rbp - 0x51]
call fcn.14028b480
test rax, rax
je 0x1401306d1
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140130686
mov rcx, qword [rbp + 0xf]
cmp rbx, rcx
ja 0x1401306c2
lea rdi, [rbp - 9]
cmp rcx, 7
cmova rdi, qword [rbp - 9]
mov qword [rbp + 7], rbx
add rbx, rbx
mov r8, rbx
mov rdx, rax
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi], r13w
jmp 0x1401306d1
mov r9, rax
mov rdx, rbx
lea rcx, [rbp - 9]
call fcn.140004f70
mov rcx, qword [rbp - 0x51]
call fcn.14028baa0
lea rcx, [rbp - 0x59]
call fcn.14017dd90
nop
mov rdx, qword [rbp - 0x31]
cmp rdx, 0xf
jbe 0x140130723
inc rdx
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14013071d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14013071d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1403ca488
nop
mov rdx, qword [rbp - 0x11]
cmp rdx, 0xf
jbe 0x140130761
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14013075c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14013075c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1403ca488
cmp qword [rbp + 7], 0
je 0x1401304eb
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x39], rax
movups xmmword [rbp - 0x79], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x69], xmm1
mov r8, r15
lea rdx, reloc.SinoSPE.dll_Ordinal_10
lea rcx, [rbp - 0x79]
call fcn.140006340
nop
lea r8, [rbp - 0x79]
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x49]
call fcn.1401f6d80
nop
mov rdx, qword [rbp - 0x61]
cmp rdx, 7
jbe 0x1401307ee
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x79]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401307e9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1401307e9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1403ca488
movdqa xmm0, xmmword [0x1404530e0]
movdqu xmmword [rbp - 0x69], xmm0
mov word [rbp - 0x79], r13w
mov rax, qword [rbp - 0x41]
cmp qword [rbp - 0x49], rax
je 0x140130a22
xor edx, edx
mov ecx, 4
call qword [sym.imp.api_ms_win_crt_locale_l1_1_0.dll__wsetlocale]
mov r12, rax
lea rdx, [0x140436b28]
mov ecx, 4
call qword [sym.imp.api_ms_win_crt_locale_l1_1_0.dll__wsetlocale]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], rax
mov r8d, 0x7c
mov rdx, qword [rbp - 0x49]
lea rcx, [rbp - 0x29]
call fcn.1401f6ae0
nop
mov rbx, qword [rbp - 0x29]
mov rdi, qword [rbp - 0x21]
cmp rbx, rdi
je 0x140130924
sub rdi, rbx
sar rdi, 5
cmp qword [rbx + 0x18], 7
jbe 0x140130873
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
cmp eax, 1
jne 0x140130920
cmp rdi, 1
jbe 0x140130909
mov rcx, qword [rbp - 0x29]
add rcx, 0x20
cmp qword [rcx + 0x18], 7
jbe 0x14013089d
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov dword [rsi + 0x4c], eax
cmp rdi, 2
jbe 0x140130909
mov rcx, qword [rbp - 0x29]
add rcx, 0x40
cmp qword [rcx + 0x18], 7
jbe 0x1401308be
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov dword [rsi + 0x58], eax
cmp rdi, 3
jbe 0x140130909
mov rcx, qword [rbp - 0x29]
add rcx, 0x60
cmp qword [rcx + 0x18], 7
jbe 0x1401308df
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov dword [rsi + 0x50], eax
cmp rdi, 4
jbe 0x140130909
mov rcx, qword [rbp - 0x29]
sub rcx, 0xffffffffffffff80
cmp qword [rcx + 0x18], 7
jbe 0x140130900
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov dword [rsi + 0x54], eax
cmp dword [rsi + 0x4c], 0x100
jne 0x140130916
mov dword [rsi + 0x58], r13d
cmp dword [rsi + 0x58], 1
je 0x140130920
mov dword [rsi + 0x58], r13d
mov rbx, qword [rbp - 0x29]
mov rdi, qword [rbp - 0x41]
sub rdi, qword [rbp - 0x49]
sar rdi, 5
cmp rdi, 1
jbe 0x140130984
mov ebx, reloc.SinoSPE.dll_Ordinal_32
dec rdi
nop
mov rcx, qword [rbp - 0x49]
add rcx, rbx
call fcn.14012f960
mov qword [rbp - 0x59], rax
test rax, rax
je 0x140130976
lea rcx, [rsi + 0x30]
mov rdx, qword [rcx + 8]
cmp rdx, qword [rcx + 0x10]
je 0x14013096d
mov qword [rdx], rax
add qword [rcx + 8], 8
jmp 0x140130976
lea r8, [rbp - 0x59]
call fcn.1400d2150
add rbx, 0x20
sub rdi, 1
jne 0x140130940
mov rbx, qword [rbp - 0x29]
test r12, r12
je 0x14013099b
mov rdx, r12
mov ecx, 4
call qword [sym.imp.api_ms_win_crt_locale_l1_1_0.dll__wsetlocale]
mov rbx, qword [rbp - 0x29]
lea rcx, [rsi + 0x10]
cmp rcx, r14
je 0x1401309be
mov rdx, r14
cmp qword [r14 + 0x18], 7
jbe 0x1401309b1
mov rdx, qword [r14]
mov r8, qword [r14 + 0x10]
call fcn.1400050d0
mov rbx, qword [rbp - 0x29]
test rbx, rbx
je 0x140130a25
mov rdi, qword [rbp - 0x21]
cmp rbx, rdi
je 0x1401309e5
nop dword [rax]
mov rcx, rbx
call fcn.140006060
add rbx, 0x20
cmp rbx, rdi
jne 0x1401309d0
mov rbx, qword [rbp - 0x29]
mov rdx, qword [rbp - 0x19]
sub rdx, rbx
and rdx, 0xffffffffffffffe0
mov rax, rbx
cmp rdx, 0x1000
jb 0x140130a18
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140130a18
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.1403ca488
jmp 0x140130a25
mov r15d, r13d
mov rbx, qword [rbp - 0x49]
test rbx, rbx
je 0x1401304ee
mov rdi, qword [rbp - 0x41]
cmp rbx, rdi
je 0x140130a51
nop dword [rax + rax]
mov rcx, rbx
call fcn.140006060
add rbx, 0x20
cmp rbx, rdi
jne 0x140130a40
mov rdx, qword [rbp - 0x39]
mov rbx, qword [rbp - 0x49]
sub rdx, rbx
and rdx, 0xffffffffffffffe0
mov rax, rbx
cmp rdx, 0x1000
jb 0x140130a88
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140130a88
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.1403ca488
jmp 0x1401304ee
call fcn.1403ca488
mov eax, r15d
jmp 0x140130aa7
mov rax, qword [rcx]
call qword [rax + reloc.SinoSPE.dll_Ordinal_40]
xor eax, eax
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1403ca460
mov rbx, qword [rsp + 0x118]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret