Function at 0x10040ace0
Capabilities:
Get memory capacity
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x10042d0d0]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov rcx, qword [0x10042d108]
add rcx, 0x5010
call qword [sym.imp.sqlmin.dll_Ordinal_347]
mov r11, qword [0x10042d108]
mov eax, dword [r11 + 0x99d4]
test al, 1
jne 0x10040ad4d
test al, 2
jne 0x10040ad4d
cmp dword [r11 + 0x4f04], 0
jne 0x10040ad4d
mov cl, 1
jmp 0x10040ad4f
xor cl, cl
mov rax, qword [sym.imp.sqldk.dll_Ordinal_998]
mov byte [rax], cl
mov rax, qword [sym.imp.sqldk.dll_Ordinal_1043]
lea rcx, [0x10040ab70]
mov qword [rax], rcx
mov rax, qword [sym.imp.sqldk.dll_Ordinal_1009]
lea rcx, [0x10040aae0]
mov qword [rax], rcx
lea rcx, [rsp + 0x38]
call fcn.1004115a0
lea rcx, [rsp + 0x38]
call qword [sym.imp.sqlmin.dll_Ordinal_1439]
call fcn.10040bb20
call fcn.10040a910
call qword [sym.imp.sqldk.dll_Ordinal_872_1]
call qword [sym.imp.sqldk.dll_Ordinal_846]
call qword [sym.imp.sqldk.dll_Ordinal_830]
mov r11, qword [0x10042d0c8]
test byte [r11 + 0x1c9], 1
je 0x10040add4
mov rax, qword [sym.imp.sqldk.dll_Ordinal_800]
mov rcx, qword [sym.imp.sqllang.dll_Ordinal_376]
mov qword [rax], rcx
mov r11, qword [0x10042d0c8]
mov rax, qword [sym.imp.sqldk.dll_Ordinal_1002]
mov rcx, qword [rax]
mov eax, dword [rcx + 0x10]
test eax, eax
je 0x10040adf0
cmp eax, 3
je 0x10040adf0
cmp dword [rcx + 0x14], 2
jne 0x10040ae04
test byte [r11 + 0x1c8], 0x40
jne 0x10040ae04
mov rax, qword [sym.imp.sqldk.dll_Ordinal_1089_1]
and dword [rax], 0xfffffffb
mov rax, qword [0x10042d108]
cmp dword [rax + 0x4ed4], 0
je 0x10040ae32
mov rax, qword [sym.imp.sqldk.dll_Ordinal_1089_1]
mov ecx, 0x1f79
xor r9d, r9d
or dword [rax], 8
xor r8d, r8d
or edx, 0xffffffff
call qword [sym.imp.sqldk.dll_Ordinal_926]
mov rax, qword [sym.imp.sqldk.dll_Ordinal_769]
lea rcx, [0x100407a80]
lea rbx, [rbp - 0x80]
mov qword [rax], rcx
mov rax, qword [sym.imp.sqldk.dll_Ordinal_776]
lea rcx, [fcn.1004137c0]
mov qword [rax], rcx
mov rax, qword [sym.imp.sqldk.dll_Ordinal_788]
lea rcx, [fcn.1004138d0]
mov qword [rax], rcx
mov rax, qword [sym.imp.sqldk.dll_Ordinal_1019]
lea rcx, [0x10040d410]
mov qword [rax], rcx
mov rax, qword [sym.imp.sqldk.dll_Ordinal_777]
mov rcx, qword [sym.imp.sqllang.dll_Ordinal_1354]
mov qword [rax], rcx
mov rax, qword [sym.imp.sqldk.dll_Ordinal_799]
lea rcx, [0x100401340]
mov qword [rax], rcx
mov rax, qword [sym.imp.sqldk.dll_Ordinal_801]
mov rcx, qword [sym.imp.sqllang.dll_Ordinal_1380]
mov qword [rax], rcx
mov rax, qword [sym.imp.sqldk.dll_Ordinal_780_1]
lea rcx, [0x100413bc0]
mov qword [rax], rcx
mov rax, qword [sym.imp.sqldk.dll_Ordinal_807]
lea rcx, [0x100413740]
mov qword [rax], rcx
mov rax, qword [sym.imp.sqldk.dll_Ordinal_779]
mov rcx, qword [sym.imp.sqllang.dll_Ordinal_1352]
mov qword [rax], rcx
mov rax, qword [sym.imp.sqldk.dll_Ordinal_778]
mov rcx, qword [sym.imp.sqllang.dll_Ordinal_1351]
mov qword [rax], rcx
mov rax, qword [sym.imp.sqldk.dll_Ordinal_1051]
lea rcx, [0x10040cd70]
mov qword [rax], rcx
mov rax, qword [sym.imp.sqldk.dll_Ordinal_774]
lea rcx, [0x100407a90]
mov qword [rax], rcx
mov rax, qword [sym.imp.sqldk.dll_Ordinal_1020]
mov rcx, qword [sym.imp.sqldk.dll_Ordinal_815]
mov qword [rax], rcx
mov rax, qword [sym.imp.sqldk.dll_Ordinal_802]
mov rcx, qword [sym.imp.sqllang.dll_Ordinal_1269_1]
mov qword [rax], rcx
mov rax, qword [sym.imp.sqldk.dll_Ordinal_770]
lea rcx, [0x1004048b0]
mov qword [rax], rcx
mov edi, Ordinal_66
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.sqldk.dll_Ordinal_69]
add rbx, 0x10
dec edi
jns 0x10040af50
mov rax, qword [0x10042d108]
xor r14d, r14d
movzx edx, r14w
mov word [rsp + 0x24], dx
cmp dword [rax + 0x4f04], r14d
jne 0x10040afaa
cmp dword [rax + 0x4f08], r14d
jne 0x10040afa1
lea rdx, [rsp + 0x24]
lea rcx, [rbp - 0x80]
call qword [sym.imp.sqlmin.dll_Ordinal_1273]
movzx edx, word [rsp + 0x24]
mov rax, qword [0x10042d108]
cmp dword [rax + 0x4f04], r14d
je 0x10040afb2
mov word [rsp + 0x24], r14w
jmp 0x10040afc8
test dx, dx
je 0x10040afc8
lea rcx, [rbp - 0x80]
call qword [sym.imp.sqldk.dll_Ordinal_855_1]
mov rax, qword [0x10042d108]
mov rcx, qword [sym.imp.sqldk.dll_Ordinal_1002]
lea rdi, [rax + 0x801c]
mov ebx, 1
mov rdx, qword [rcx]
mov ecx, dword [rdx + 0x10]
test ecx, ecx
je 0x10040b039
cmp ecx, 3
je 0x10040b039
test byte [rax + 0x99d4], 0x20
jne 0x10040b039
mov rcx, qword [0x10042d0c8]
test byte [rcx + 0xc9], 0x20
jne 0x10040b02d
cmp word [rdi + 0x92], r14w
je 0x10040b039
call fcn.10040d3d0
test eax, eax
je 0x10040b032
mov rax, qword [0x10042d0c8]
test byte [rax + 0xc9], 0x80
jne 0x10040b032
mov rax, qword [0x10042d108]
mov dword [rax + 0x2c], ebx
jmp 0x10040b03d
mov rax, qword [0x10042d108]
mov dword [rax + 0x2c], r14d
mov rax, qword [0x10042d108]
test byte [rax + 0x99d4], 0x20
je 0x10040b077
xor r9d, r9d
mov ecx, 0x1f4f
xor r8d, r8d
lea edx, [r9 - 2]
call qword [sym.imp.sqldk.dll_Ordinal_926]
xor r9d, r9d
mov ecx, 0x342
lea edx, [r9 - 2]
xor r8d, r8d
call qword [sym.imp.sqldk.dll_Ordinal_921_2]
mov rax, qword [sym.imp.sqldk.dll_Ordinal_1002]
mov rcx, qword [rax]
cmp dword [rcx + 0x10], 2
jne 0x10040b0eb
mov rax, qword [sym.imp.sqldk.dll_Ordinal_647]
cmp qword [rax], r14
je 0x10040b0eb
xor eax, eax
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
mov dword [rsp + Ordinal_66], 0x40
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
movabs r11, 0x200000000
cmp qword [rsp + 0x48], r11
jb 0x10040b0eb
mov rax, qword [sym.imp.sqldk.dll_Ordinal_1091_1]
or dword [rax], 0x10
call qword [sym.imp.sqlmin.dll_Ordinal_1008]
mov rcx, qword [sym.imp.sqldk.dll_Ordinal_1002]
mov r8, qword [sym.imp.sqldk.dll_Ordinal_1091_1]
mov rdx, qword [rcx]
mov rcx, qword [0x10042d0c8]
cmp dword [rdx + 0x10], 2
jne 0x10040b124
test byte [rcx + 0x68], 4
je 0x10040b124
test byte [r8], 0x10
je 0x10040b124
mov esi, ebx
mov ecx, Ordinal_851
jmp 0x10040b14d
test dword [r8], 0x800
je 0x10040b143
test byte [rcx + 0x68], 8
jne 0x10040b143
test eax, eax
je 0x10040b143
mov esi, 2
mov ecx, Ordinal_851
jmp 0x10040b14d
mov esi, 3
mov ecx, Ordinal_855
call fcn.1004137c0
mov rax, qword [sym.imp.sqldk.dll_Ordinal_791]
mov dword [rax], esi
mov rax, qword [0x10042d0c8]
test byte [rax + 0x65], 8
je 0x10040b175
mov rax, qword [sym.imp.sqldk.dll_Ordinal_1091_1]
or dword [rax], 0x2000
mov rax, qword [sym.imp.sqldk.dll_Ordinal_1044]
mov ecx, 9
mov esi, 7
mov word [rax], cx
mov rax, qword [sym.imp.sqldk.dll_Ordinal_1061]
mov rcx, qword [sym.imp.sqlmin.dll_Ordinal_595]
mov word [rax], si
mov rax, qword [sym.imp.sqldk.dll_Ordinal_1057]
mov dword [rax + 0xc], 3
mov rax, qword [sym.imp.sqldk.dll_Ordinal_1057]
mov dword [rax + 0x10], ebx
mov rax, qword [sym.imp.sqldk.dll_Ordinal_1057]
mov qword [rax + 0x18], rcx
mov rax, qword [sym.imp.sqldk.dll_Ordinal_1057]
mov rcx, qword [sym.imp.sqlmin.dll_Ordinal_921]
mov qword [rax + 0x20], rcx
call qword [sym.imp.sqldk.dll_Ordinal_445]
mov rcx, qword [sym.imp.sqlmin.dll_Ordinal_1091]
mov qword [rax], rcx
call qword [sym.imp.sqldk.dll_Ordinal_445]
mov rcx, qword [sym.imp.sqlmin.dll_Ordinal_1199]
mov qword [rax + 8], rcx
lea rcx, [0x10040d850]
call qword [sym.imp.sqldk.dll_Ordinal_851_1]
mov r11, qword [sym.imp.sqldk.dll_Ordinal_790]
mov dword [r11], esi
movzx ecx, word [rdi + 0xac]
call fcn.1004135f0
test eax, eax
jne 0x10040b232
mov rax, qword [sym.imp.sqldk.dll_Ordinal_1032]
movzx edx, word [rdi + 0xac]
mov ecx, 0xc2ed
mov r8d, dword [rax]
call fcn.1004137c0
mov dword [rsp + 0x30], ebx
mov ecx, dword [rsp + 0x30]
mov rax, qword [sym.imp.sqldk.dll_Ordinal_1040]
mov dword [rax], ecx
mov rax, qword [sym.imp.sqldk.dll_Ordinal_1095]
mov ecx, 0xdbba0
test byte [rax + 0xbc], 0x20
mov eax, 0x493e0
cmovne ecx, eax
call fcn.1004136c0
mov rax, qword [0x10042d108]
mov r8d, r14d
cmp dword [rax + 0x2c], r14d
mov rax, qword [sym.imp.sqldk.dll_Ordinal_1072]
lea rcx, [0x100401250]
sete r8b
mov dword [rax], r8d
mov rax, qword [sym.imp.sqldk.dll_Ordinal_1064]
mov qword [rax], 0x2710
mov rax, qword [sym.imp.sqldk.dll_Ordinal_1066]
mov qword [rax], rcx
mov rax, qword [sym.imp.sqldk.dll_Ordinal_1056]
lea rcx, [0x100411a70]
mov qword [rax], rcx
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.HeapQueryInformation
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [sym.imp.sqldk.dll_Ordinal_782]
lea rdx, [0x100458348]
mov qword [rcx], rax
mov rcx, qword [sym.imp.sqldk.dll_Ordinal_1063]
mov rax, qword [rcx + 8]
mov qword [0x100458350], rax
mov rax, qword [rcx + 8]
mov qword [rax], rdx
mov qword [rcx + 8], rdx
mov qword [0x100458348], rcx
mov rcx, qword [sym.imp.sqldk.dll_Ordinal_1048]
lea rdx, [0x100454ac0]
mov rax, qword [rcx + 8]
mov qword [0x100454ac8], rax
mov rax, qword [rcx + 8]
mov qword [rax], rdx
mov qword [rcx + 8], rdx
mov qword [0x100454ac0], rcx
mov rcx, qword [sym.imp.sqldk.dll_Ordinal_1018]
lea rdx, [0x100454ad8]
mov rax, qword [rcx + 8]
mov qword [0x100454ae0], rax
mov rax, qword [rcx + 8]
mov qword [rax], rdx
mov qword [rcx + 8], rdx
mov qword [0x100454ad8], rcx
mov rcx, qword [sym.imp.sqldk.dll_Ordinal_1046]
lea rdx, [0x100454af0]
mov rax, qword [rcx + 8]
mov qword [0x100454af8], rax
mov rax, qword [rcx + 8]
mov qword [rax], rdx
mov qword [rcx + 8], rdx
mov qword [0x100454af0], rcx
mov rcx, qword [sym.imp.sqldk.dll_Ordinal_1024]
lea rdx, [0x100454b08]
mov rax, qword [rcx + 8]
mov qword [0x100454b10], rax
mov rax, qword [rcx + 8]
mov qword [rax], rdx
mov qword [rcx + 8], rdx
mov qword [0x100454b08], rcx
mov rcx, qword [sym.imp.sqldk.dll_Ordinal_1024]
lea rdx, [0x100458a10]
mov rax, qword [rcx + 8]
mov qword [0x100458a18], rax
mov rax, qword [rcx + 8]
mov qword [rax], rdx
mov qword [rcx + 8], rdx
mov qword [0x100458a10], rcx
mov rcx, qword [sym.imp.sqldk.dll_Ordinal_1037]
mov rax, qword [rcx + 8]
mov qword [0x100454218], rax
mov rax, qword [rcx + 8]
lea rdx, [0x100454210]
mov qword [rax], rdx
mov qword [rcx + 8], rdx
mov qword [0x100454210], rcx
mov rcx, qword [sym.imp.sqldk.dll_Ordinal_1047]
lea rdx, [0x10042d110]
mov rax, qword [rcx + 8]
mov qword [0x10042d118], rax
mov rax, qword [rcx + 8]
mov qword [rax], rdx
mov qword [rcx + 8], rdx
mov qword [0x10042d110], rcx
lea rcx, [0x100454b20]
call qword [sym.imp.sqldk.dll_Ordinal_169_1]
lea rcx, [0x100458a28]
call qword [sym.imp.sqldk.dll_Ordinal_163]
mov r11, qword [sym.imp.sqldk.dll_Ordinal_1025]
lea rcx, [0x100454b38]
mov rax, qword [r11 + 8]
lea rdx, [0x1004589f8]
mov qword [0x100454b40], rax
mov rax, qword [r11 + 8]
mov qword [rax], rcx
mov qword [r11 + 8], rcx
mov rcx, qword [sym.imp.sqldk.dll_Ordinal_1048]
mov qword [0x100454b38], r11
mov rax, qword [rcx + 8]
mov qword [0x100458a00], rax
mov rax, qword [rcx + 8]
mov qword [rax], rdx
mov qword [rcx + 8], rdx
mov rax, qword [sym.imp.sqldk.dll_Ordinal_797]
mov qword [0x1004589f8], rcx
lea rcx, [0x100402e70]
mov qword [rax], rcx
mov rax, qword [0x10042d108]
cmp dword [rax + 0x4f04], r14d
jne 0x10040b4e6
mov rax, qword [sym.imp.sqldk.dll_Ordinal_1002]
mov rcx, qword [rax]
mov rax, qword [rcx]
call qword [rax + Ordinal_219]
mov rcx, rax
call qword [sym.imp.sqllang.dll_Ordinal_455]
test eax, eax
je 0x10040b4e6
call fcn.10040aba0
jmp 0x10040b4f0
mov rax, qword [sym.imp.sqldk.dll_Ordinal_1091_1]
and dword [rax], 0xfffffff7
cmp byte [rdi + 0xfb], bl
jne 0x10040b50b
mov rax, qword [sym.imp.sqldk.dll_Ordinal_1013]
mov ecx, 0x42d2
mov dword [rax], ebx
call fcn.1004137c0
mov rcx, qword [0x10042d0c8]
test byte [rcx + 0x3ec], bl
je 0x10040b527
call qword [sym.imp.sqldk.dll_Ordinal_833]
mov rcx, qword [0x10042d0c8]
mov rax, qword [0x10042d108]
cmp dword [rax + 0x2c], r14d
jne 0x10040b555
test byte [rcx + reloc.sqldk.dll_Ordinal_1006], 8
jne 0x10040b555
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, ebx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetProcessPriorityBoost]
mov rax, qword [0x10042d108]
test byte [rax + 0x99d4], 0x21
je 0x10040b57a
xor r9d, r9d
mov ecx, 0x1f68
xor r8d, r8d
lea edx, [r9 - 2]
call qword [sym.imp.sqldk.dll_Ordinal_926]
mov rax, qword [0x10042d108]
cmp dword [rax + 0x4f04], r14d
jne 0x10040b59d
mov rax, qword [sym.imp.sqldk.dll_Ordinal_1002]
mov rcx, qword [rax]
cmp dword [rcx + 0x10], 2
je 0x10040b59d
mov rax, qword [sym.imp.sqldk.dll_Ordinal_812]
mov dword [rax], r14d
mov rax, qword [sym.imp.sqldk.dll_Ordinal_808]
mov rcx, qword [sym.imp.sqlmin.dll_Ordinal_1610]
mov edx, r14d
mov qword [rax], rcx
mov rax, qword [sym.imp.sqldk.dll_Ordinal_1002]
mov rcx, qword [rax]
mov rax, qword [sym.imp.sqldk.dll_Ordinal_1028]
cmp dword [rcx + 0x10], 2
sete dl
mov dword [rax], edx
mov rax, qword [sym.imp.sqldk.dll_Ordinal_1002]
mov rcx, qword [rax]
cmp dword [rcx + 0x10], ebx
jne 0x10040b5f5
call qword [sym.imp.sqlmin.dll_Ordinal_883]
test eax, eax
je 0x10040b5f5
mov rax, qword [sym.imp.sqldk.dll_Ordinal_1091_1]
mov edx, ebx
test dword [rax], 0x4000
je 0x10040b5f8
mov edx, r14d
mov rax, qword [sym.imp.sqldk.dll_Ordinal_1002]
mov rcx, qword [rax]
cmp dword [rcx + 0x10], 2
je 0x10040b60f
test edx, edx
jne 0x10040b60f
mov ebx, r14d
mov rax, qword [sym.imp.sqldk.dll_Ordinal_1029]
mov dword [rax], ebx
mov rax, qword [sym.imp.sqldk.dll_Ordinal_1002]
mov rcx, qword [rax]
mov eax, dword [rcx + 0x10]
cmp eax, 3
je 0x10040b62e
test eax, eax
jne 0x10040b638
mov rax, qword [sym.imp.sqldk.dll_Ordinal_1089_1]
and dword [rax], 0xfffffffe
call qword [sym.imp.sqldk.dll_Ordinal_226]
test eax, eax
je 0x10040b659
dec eax
jne 0x10040b650
mov ecx, 0x4333
call fcn.1004137c0
or ecx, 0xffffffff
call qword [sym.imp.sqldk.dll_Ordinal_815]
call qword [sym.imp.sqlmin.dll_Ordinal_750]
mov rcx, rax
call qword [sym.imp.sqlmin.dll_Ordinal_1271]
xor ecx, ecx
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.sqldk.dll_Ordinal_605]
cmp dword [rsp + 0x20], r14d
je 0x10040b70f
lea rdx, [0x100421f18]
mov ecx, 0x42f3
call fcn.1004137c0
lea rcx, [0x100421f00]
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.sqldk.dll_Ordinal_605]
cmp dword [rsp + 0x20], r14d
je 0x10040b6d7
lea rdx, [0x100421f00]
mov ecx, 0x42f3
call fcn.1004137c0
lea rcx, [0x100421ee0]
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.sqldk.dll_Ordinal_605]
cmp dword [rsp + 0x20], r14d
je 0x10040b70f
lea rdx, [0x100421ee0]
mov ecx, 0x42f3
call fcn.1004137c0
mov rax, qword [0x10042d108]
cmp dword [rax + 0x2c], r14d
je 0x10040b723
mov ecx, 0x42e4
jmp 0x10040b737
mov rax, qword [sym.imp.sqldk.dll_Ordinal_1091_1]
test dword [rax], 0x1000
je 0x10040b73c
mov ecx, 0x43ff
call fcn.1004137c0
mov rax, qword [0x10042d0c0]
mov rdx, qword gs:[0x30]
add rdx, rax
cmp rax, 0x1480
jge 0x10040b762
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
mov rax, qword [rdx + 0xe8]
mov qword [rdx + 8], r14
mov rax, qword [rax + 0x38]
mov qword [rax + 8], r14
call fcn.10040d280
mov rax, qword [sym.imp.sqldk.dll_Ordinal_1003]
mov qword [rsp + 0x28], r14
mov rcx, qword [rax]
xchg qword [rsp + 0x28], rcx
mov rax, qword [0x10042d108]
mov edx, dword [rax + 0x4ed4]
test edx, edx
jne 0x10040b7bf
mov rcx, qword [sym.imp.sqldk.dll_Ordinal_812]
cmp dword [rcx], r14d
je 0x10040b7bf
mov rcx, qword [sym.imp.sqldk.dll_Ordinal_1095]
test byte [rcx + 0xc0], 0x10
jne 0x10040b7bf
mov bl, 1
jmp 0x10040b7c1
xor bl, bl
test edx, edx
je 0x10040b7f6
mov rcx, qword [sym.imp.sqldk.dll_Ordinal_1006]
lea rax, [0x10040ab10]
xchg qword [rcx + 0xd0], rax
mov rcx, qword [sym.imp.sqldk.dll_Ordinal_1006]
lea rax, [0x10040ab40]
xchg qword [rcx + 0xd8], rax
mov rax, qword [0x10042d108]
mov rdi, qword [rsp + 0x28]
cmp dword [rax + 0x4ed4], r14d
je 0x10040b80a
test byte [rdi + 3], 4
jne 0x10040b80e
test bl, bl
je 0x10040b81a
call qword [sym.imp.sqldk.dll_Ordinal_445]
or dword [rax + 0x40], 2
jmp 0x10040b824
call qword [sym.imp.sqldk.dll_Ordinal_445]
and dword [rax + 0x40], 0xfffffffd
mov rax, qword [0x10042d108]
cmp dword [rax + 0x4ed4], r14d
je 0x10040b83a
test byte [rdi + 3], 8
jne 0x10040b83e
test bl, bl
je 0x10040b84a
call qword [sym.imp.sqldk.dll_Ordinal_445]
or dword [rax + 0x40], 1
jmp 0x10040b854
call qword [sym.imp.sqldk.dll_Ordinal_445]
and dword [rax + 0x40], 0xfffffffe
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.1004013c0
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret