Function at 0x100240f0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100c1c1b
push eax
mov dword fs:[0], esp
sub esp, 0x88
mov ecx, dword [0x100fe0ec]
cmp byte [ecx + 8], 0
jne 0x10024140
sub esp, 8
push 0x100f9b68
call fcn.1002f3c0
mov ecx, dword [0x100fe0ec]
cmp byte [ecx + 8], 0
jne 0x10024140
push str.Cannot_connect_to_SQL_Server__Please_check_your_configuration__n
call fcn.1000eb40
add esp, 4
push ebx
push esi
push 0x75
push str.SELECT_COUNT___as_TableCount_FROM_sys.objects_WHERE_object_id__OBJECT_ID_N_RefCustomPlusLimit__AND_type_in__NU_
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
call fcn.1000a420
mov dword [ebp - 4], 0
lea edx, [ebp - 0x74]
cmp dword [ebp - 0x60], 0x10
mov dword [ebp - 0x4c], 0
cmovae edx, dword [ebp - 0x74]
mov ecx, edx
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10024190
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x5c]
call fcn.1000a420
sub esp, 8
mov byte [ebp - 4], 1
lea eax, [ebp - 0x5c]
mov edx, 0x100fe0ec
lea ecx, [ebp - 0x44]
push eax
call fcn.10030e20
add esp, 0xc
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x48]
cmp edx, 0x10
jb 0x100241f6
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100241ec
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100245b1
push edx
push ecx
call fcn.1006cd71
add esp, 8
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
cmp dword [ecx + 0xc], 0
je 0x1002421c
inc dword [ecx + 0x18]
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 8]
jl 0x1002422b
sub esp, 0xc
mov dword [ecx + 0x18], 0
call fcn.100305b0
push 0xa
push str.TableCount
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.1000a420
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.100367b0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x10024298
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002428e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100245b6
push edx
push ecx
call fcn.1006cd71
add esp, 8
or ebx, 0xffffffff
cmp dword [ebp - 0x2c], 0
jle 0x10024548
push 0x2f
push str.SELECT__FROM__RefCustomPlusLimit_with_nolock__
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.1000a420
sub esp, 8
mov byte [ebp - 4], 5
lea eax, [ebp - 0x28]
mov edx, 0x100fe0ec
lea ecx, [ebp - 0x3c]
push eax
call fcn.10030e20
add esp, 0xc
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x10024319
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002430f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100245bb
push edx
push ecx
call fcn.1006cd71
add esp, 8
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.1000e230
mov byte [ebp - 4], 8
nop word [eax + eax]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 0xc]
test edx, edx
je 0x1002435d
mov eax, dword [ecx + 0x18]
inc eax
mov dword [ecx + 0x18], eax
cmp eax, dword [ecx + 8]
jge 0x1002435d
cmp eax, edx
setl al
jmp 0x1002436c
sub esp, 0xc
mov dword [ecx + 0x18], 0
call fcn.100305b0
test al, al
je 0x1002446d
push 7
push str.TypeID3
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.1000a420
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.100367b0
mov al, byte [ebp - 0x2c]
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x14]
mov byte [ebp - 0xd], al
cmp edx, 0x10
jb 0x100243e7
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100243dd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100245b1
push edx
push ecx
call fcn.1006cd71
add esp, 8
push 9
push str.PlusLimit
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.1000a420
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.100367b0
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x10024454
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002444a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100245b1
push edx
push ecx
call fcn.1006cd71
add esp, 8
lea eax, [ebp - 0xd]
push eax
lea ecx, [ebp - 0x94]
call fcn.100283d0
mov cl, byte [ebp - 0x30]
mov byte [eax], cl
jmp 0x10024340
push edi
push 0
push 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
call fcn.1000e2d0
mov edi, eax
mov dword [ebp - 0x34], edi
push edi
mov byte [ebp - 4], 0xb
mov ecx, 0x100fe484
push dword [edi]
call fcn.1002a320
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 0xc
mov ecx, 0x100fe48c
push dword [ebp - 0x30]
push 0
push 0
call fcn.1001d670
lea eax, [ebp - 0x94]
push eax
call fcn.100291e0
lea ecx, [ebp - 0x1c]
call fcn.1000e0c0
mov eax, dword [edi]
mov dword [edi], edi
mov dword [edi + 4], edi
cmp eax, edi
je 0x100244f7
mov esi, dword [eax]
push 0xc
push eax
call fcn.1006cd71
add esp, 8
mov eax, esi
cmp esi, edi
jne 0x100244e4
push 0xc
push edi
call fcn.1006cd71
push dword [ebp - 0x8c]
push str.Loaded__RefCustomPlusLimit_successfully.___d__n
call fcn.1000eb40
add esp, 0x10
lea ecx, [ebp - 0x94]
call fcn.1000def0
mov byte [ebp - 4], 0xd
mov esi, dword [ebp - 0x38]
pop edi
test esi, esi
je 0x10024548
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x10024548
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x10024548
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 0xe
mov esi, dword [ebp - 0x40]
test esi, esi
je 0x10024571
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x10024571
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x10024571
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edx, dword [ebp - 0x60]
pop esi
pop ebx
cmp edx, 0x10
jb 0x100245a3
mov ecx, dword [ebp - 0x74]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10024599
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100245c0
push edx
push ecx
call fcn.1006cd71
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.10087f1c
call fcn.10087f1c
call fcn.10087f1c
call fcn.10087f1c
int3