Function at 0x10026380
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c1eaf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x30], esi
mov ecx, dword [0x100fe0ec]
push edi
cmp byte [ecx + 8], 0
jne 0x100263d8
sub esp, 8
push 0x100f9b68
call fcn.1002f3c0
mov ecx, dword [0x100fe0ec]
cmp byte [ecx + 8], 0
jne 0x100263d8
push str.Cannot_connect_to_SQL_Server__Please_check_your_configuration__n
call fcn.1000eb40
add esp, 4
push 0x75
push str.SELECT_COUNT___as_TableCount_FROM_sys.objects_WHERE_object_id__OBJECT_ID_N_RefCustomCTFReward__AND_type_in__NU_
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
call fcn.1000a420
mov dword [ebp - 4], 0
lea edx, [ebp - 0x8c]
cmp dword [ebp - 0x78], 0x10
mov dword [ebp - 0x64], 0
cmovae edx, dword [ebp - 0x8c]
mov ecx, edx
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
lea edi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10026430
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x74]
call fcn.1000a420
sub esp, 8
mov byte [ebp - 4], 1
lea eax, [ebp - 0x74]
mov edx, 0x100fe0ec
lea ecx, [ebp - 0x14]
push eax
call fcn.10030e20
add esp, 0xc
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x60]
cmp edx, 0x10
jb 0x10026496
mov ecx, dword [ebp - 0x74]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002648c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10026a1f
push edx
push ecx
call fcn.1006cd71
add esp, 8
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
cmp dword [ecx + 0xc], 0
je 0x100264bc
inc dword [ecx + 0x18]
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 8]
jl 0x100264cb
sub esp, 0xc
mov dword [ecx + 0x18], 0
call fcn.100305b0
push 0xa
push str.TableCount
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
call fcn.1000a420
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.100367b0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x34]
cmp edx, 0x10
jb 0x10026538
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002652e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10026a24
push edx
push ecx
call fcn.1006cd71
add esp, 8
or ebx, 0xffffffff
cmp dword [ebp - 0x30], 0
jle 0x100269a5
call fcn.10028340
push 0x3f
push str.SELECT__FROM__RefCustomCTFReward_with_nolock__WHERE_Service1_
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
call fcn.1000a420
sub esp, 8
mov byte [ebp - 4], 5
lea eax, [ebp - 0x48]
mov edx, 0x100fe0ec
lea ecx, [ebp - 0x50]
push eax
call fcn.10030e20
mov eax, dword [ebp - 0x50]
add esp, 0xc
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x4c], edi
mov byte [ebp - 4], 6
test edi, edi
je 0x100265c5
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x100265c5
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x100265c5
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x34]
cmp edx, 0x10
jb 0x10026600
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100265f3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10026a29
push edx
push ecx
call fcn.1006cd71
add esp, 8
nop dword [eax]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xc]
test edx, edx
je 0x1002661d
mov eax, dword [ecx + 0x18]
inc eax
mov dword [ecx + 0x18], eax
cmp eax, dword [ecx + 8]
jge 0x1002661d
cmp eax, edx
setl al
jmp 0x1002662c
sub esp, 0xc
mov dword [ecx + 0x18], 0
call fcn.100305b0
test al, al
je 0x1002698d
push 0xc
push str.ItemCodename
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.1000a420
mov byte [ebp - 4], 8
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0x14]
or esi, 2
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x38], 0
push eax
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
mov dword [ebp - 0x30], esi
call fcn.100368f0
and esi, 0xfffffffd
mov dword [ebp - 4], 7
or esi, 1
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x100266c6
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100266bc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10026a1f
push edx
push ecx
call fcn.1006cd71
add esp, 8
push 6
push str.Amount
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.1000a420
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.100367b0
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x10026733
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10026729
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10026a1f
push edx
push ecx
call fcn.1006cd71
add esp, 8
push 9
push str.PlusLevel
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.1000a420
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.100367b0
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x100267a0
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10026796
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10026a1f
push edx
push ecx
call fcn.1006cd71
add esp, 8
push 0xb
push str.SelectRatio
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.1000a420
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.100367b0
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x1002680d
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10026803
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10026a1f
push edx
push ecx
call fcn.1006cd71
add esp, 8
push 0xe
push str.RandomizeStats
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.1000a420
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.100367b0
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x1002687a
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10026870
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10026a1f
push edx
push ecx
call fcn.1006cd71
add esp, 8
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 0xf
mov byte [ebp - 0xb4], 0
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x48]
cmp dword [ebp - 0x34], 0x10
lea ecx, [ebp - 0xb4]
push dword [ebp - 0x38]
cmovae eax, dword [ebp - 0x48]
push eax
call fcn.1000a420
movsx eax, word [ebp - 0x54]
mov edi, dword [0x100fe0fc]
mov dword [ebp - 0x9c], eax
movzx eax, byte [ebp - 0x58]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x5c]
mov ebx, dword [edi + 4]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0xb4]
push eax
push ebx
push edi
call fcn.1002b080
mov edx, dword [0x100fe100]
mov ecx, 0x5555554
sub ecx, edx
cmp ecx, 1
jb 0x10026a2e
lea ecx, [edx + 1]
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0xa0]
mov dword [0x100fe100], ecx
mov dword [edi + 4], eax
mov dword [ebx], eax
cmp edx, 0x10
jb 0x10026952
mov ecx, dword [ebp - 0xb4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10026948
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10026a1f
push edx
push ecx
call fcn.1006cd71
add esp, 8
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x34]
cmp edx, 0x10
jb 0x10026600
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100265f3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10026a1f
jmp 0x100265f3
push dword [0x100fe100]
push str.Loaded__RefCustomCTFReward_successfully.___d__n
call fcn.1000eb40
add esp, 8
or ebx, 0xffffffff
jmp 0x100269b2
push str.ERROR:_Cannot_load__RefCustomCTFReward_because_table_does_not_exist__n
call fcn.1000eb40
add esp, 4
mov byte [ebp - 4], 0x10
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x100269db
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x100269db
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x100269db
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edx, dword [ebp - 0x78]
pop edi
pop esi
pop ebx
cmp edx, 0x10
jb 0x10026a11
mov ecx, dword [ebp - 0x8c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10026a07
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10026a38
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
push str.list_T__too_long
call fcn.1006df8f
call fcn.10087f1c
int3