Function at 0x10044afc0
Capabilities:
Create thread

Disassembly:
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x2020]
mov eax, 0x2120
call fcn.10046b370
sub rsp, rax
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x2158], rbx
mov qword [rsp + 0x2160], rsi
mov rax, qword [0x100499010]
xor rax, rsp
mov qword [rbp + 0x2010], rax
mov r13, rcx
xor ebx, ebx
mov r15d, ebx
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x410]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0xc10]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x10]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x810]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x1c10]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x1810]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x1410]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x1010]
call sub.VCRUNTIME140.dll_memset
mov r9d, 0x200
lea r8, [rbp + 0x810]
mov edx, 0x171
mov rcx, qword [0x1004a90d8]
call qword [sym.imp.USER32.dll_LoadStringW]
mov r9d, 0x200
lea r8, [rbp + 0x1c10]
mov edx, 0x172
mov rcx, qword [0x1004a90d8]
call qword [sym.imp.USER32.dll_LoadStringW]
mov edx, 0x200
lea rcx, [rbp + 0x10]
lea r8, [rbp + 0x10]
mov rax, r13
sub rax, r8
lea r8, [rax + 0x420]
lea rax, [rdx + 0x7ffffdfe]
test rax, rax
je 0x10044b127
movzx eax, word [r8 + rcx]
test ax, ax
je 0x10044b127
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x10044b104
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], bx
movzx ecx, word [r13 + 2]
sub ecx, 0x45
je 0x10044b6b3
sub ecx, 8
je 0x10044b67a
sub ecx, 1
je 0x10044b52a
cmp ecx, 2
jne 0x10044b723
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], bx
lea r8d, [rcx + 0x12]
lea rdx, str.AlertPagerToTemplate
lea rcx, [rsp + 0x48]
call fcn.10040da90
nop
call fcn.10044da70
mov rcx, rax
lea r8, [rsp + 0x48]
lea rdx, [rbp - 0x10]
call fcn.10040a3c0
nop
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x78], rbx
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], bx
mov r8d, 0x14
lea rdx, str.AlertPagerCCTemplate
lea rcx, [rsp + 0x68]
call fcn.10040da90
nop
call fcn.10044da70
mov rcx, rax
lea r8, [rsp + 0x68]
lea rdx, [rbp - 0x30]
call fcn.10040a3c0
nop
lea rax, [rbp - 0x78]
mov qword [rsp + 0x40], rax
mov qword [rbp - 0x68], rbx
mov qword [rbp - 0x60], 7
mov word [rbp - 0x78], bx
mov r8d, 0x19
lea rdx, str.AlertPagerSubjectTemplate
lea rcx, [rbp - 0x78]
call fcn.10040da90
nop
call fcn.10044da70
mov rcx, rax
lea r8, [rbp - 0x78]
lea rdx, [rbp - 0x50]
call fcn.10040a3c0
nop
lea rcx, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae rcx, qword [rbp - 0x10]
mov dword [rsp + 0x20], 0x400
lea r9, [rbp + 0xc10]
lea r8, [rbp + 0x10]
lea rdx, str._A_
call fcn.10044bd60
mov rdx, rax
mov r8d, 0x200
lea rcx, [rbp + 0x1810]
lea rax, [rbp + 0x1810]
sub rdx, rax
lea rax, [r8 + 0x7ffffdfe]
test rax, rax
je 0x10044b2a2
movzx eax, word [rdx + rcx]
test ax, ax
je 0x10044b2a2
mov word [rcx], ax
add rcx, 2
sub r8, 1
jne 0x10044b280
lea rax, [rcx - 2]
test r8, r8
cmovne rax, rcx
mov word [rax], bx
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
mov dword [rsp + 0x20], 0x400
lea r9, [rbp + 0xc10]
lea r8, [rbp + 0x10]
lea rdx, str._A_
call fcn.10044bd60
mov r8, rax
mov edx, 0x200
lea rcx, [rbp + 0x1410]
lea rax, [rbp + 0x1410]
sub r8, rax
nop word [rax + rax]
lea rax, [rdx + 0x7ffffdfe]
test rax, rax
je 0x10044b323
movzx eax, word [r8 + rcx]
test ax, ax
je 0x10044b323
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x10044b300
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], bx
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rcx, qword [rbp - 0x50]
mov dword [rsp + 0x20], 0x400
lea r9, [rbp + 0xc10]
lea r8, [rbp + 0x1c10]
lea rdx, str._S_
call fcn.10044bd60
mov r8, rax
mov edx, 0x200
lea rcx, [rbp + 0x1010]
lea rax, [rbp + 0x1010]
sub r8, rax
nop word [rax + rax]
lea rax, [rdx + 0x7ffffdfe]
test rax, rax
je 0x10044b3a3
movzx eax, word [r8 + rcx]
test ax, ax
je 0x10044b3a3
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x10044b380
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], bx
mov dword [rsp + 0x30], 0x200
lea rax, [rbp + 0x410]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x810]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x1010]
lea r8, [rbp + 0x1410]
lea rdx, [rbp + 0x1810]
xor ecx, ecx
call fcn.100431390
mov r15d, eax
mov rax, qword [rbp + 0x410]
test r15d, r15d
je 0x10044b406
test ax, ax
jne 0x10044b406
mov rdx, rbx
jmp 0x10044b414
lea rdx, [rbp + 0x410]
test ax, ax
cmove rdx, rbx
mov r9d, SQLBindParameter
mov r8d, 0x200
mov rcx, r13
call fcn.10044adb0
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x10044b46c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x10044b467
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x10044b467
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.100469388
movdqa xmm0, xmmword [0x100482320]
movdqu xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], bx
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x10044b4c0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x10044b4bb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x10044b4bb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.100469388
movdqa xmm0, xmmword [0x100482320]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], bx
mov rdx, qword [rbp + 8]
cmp rdx, 8
jb 0x10044b514
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x10044b50f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x10044b50f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.100469388
movdqa xmm0, xmmword [0x100482320]
movdqu xmmword [rbp], xmm0
mov word [rbp - 0x10], bx
jmp 0x10044b723
mov r8d, 0x904
lea rdx, str.SendNetSend
mov ecx, reloc.ODBC32.dll_SQLFreeStmt
call fcn.10043acf0
mov r14, rax
test rax, rax
je 0x10044b670
xor eax, eax
mov qword [r14], rax
mov qword [r14 + 8], rax
lea rax, [rbp + 0x10]
mov rsi, 0xffffffffffffffff
mov rdi, rsi
inc rdi
cmp word [rax + rdi*2], bx
jne 0x10044b564
add rdi, 1
je 0x10044b64a
lea ecx, [rdi + rdi]
mov r8d, 0x60
lea rdx, str.AllocateAndCopyString
call fcn.10043acf0
mov qword [r14], rax
test rax, rax
je 0x10044b64a
lea r8, [rbp + 0x10]
mov rdx, rdi
mov rcx, rax
call fcn.10040d530
mov ecx, ebx
test eax, eax
setns cl
test ecx, ecx
je 0x10044b64a
mov rcx, qword [r14 + 8]
test rcx, rcx
je 0x10044b5c8
call fcn.10043b3b0
mov qword [r14 + 8], rbx
lea rax, [rbp + 0x810]
nop
inc rsi
cmp word [rax + rsi*2], bx
jne 0x10044b5d0
add rsi, 1
je 0x10044b641
lea ecx, [rsi + rsi]
mov r8d, 0x60
lea rdx, str.AllocateAndCopyString
call fcn.10043acf0
mov qword [r14 + 8], rax
test rax, rax
je 0x10044b641
lea r8, [rbp + 0x810]
mov rdx, rsi
mov rcx, rax
call fcn.10040d530
mov ecx, ebx
test eax, eax
setns cl
test ecx, ecx
je 0x10044b641
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
mov r9, r14
lea r8, [0x100432be0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
lea r8, [r13 + 4]
cmp word [r8], r15w
jmp 0x10044b682
mov qword [r14 + 8], rbx
mov rbx, qword [r14]
jmp 0x10044b64d
mov qword [r14], rbx
test rbx, rbx
je 0x10044b65a
mov rcx, rbx
call fcn.10043b3b0
mov rcx, qword [r14 + 8]
test rcx, rcx
je 0x10044b668
call fcn.10043b3b0
mov rcx, r14
call fcn.10043b3b0
lea r8, [r13 + 4]
cmp word [r8], r15w
jmp 0x10044b682
lea r8, [r13 + 4]
cmp word [r8], bx
je 0x10044b723
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov rbx, rax
test rax, rax
je 0x10044b723
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10044b723
mov dword [rsp + 0x30], 0x200
lea rax, [rbp + 0x410]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x810]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x1c10]
xor r8d, r8d
lea rdx, [rbp + 0x10]
xor ecx, ecx
call fcn.100431390
mov r15d, eax
mov rcx, qword [rbp + 0x410]
test eax, eax
je 0x10044b6fb
test cx, cx
je 0x10044b70c
lea rax, [rbp + 0x410]
test cx, cx
cmove rax, rbx
mov rbx, rax
mov r9d, SQLBindParameter
mov r8d, 0x200
mov rdx, rbx
mov rcx, r13
call fcn.10044adb0
mov eax, r15d
mov rcx, qword [rbp + 0x2010]
xor rcx, rsp
call fcn.100469360
lea r11, [rsp + 0x2120]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret