Function at 0x40c215
Capabilities:
Reference sql statements

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004553e0
push dword [0x60ac0c]
call fcn.00442234
push edx
call fcn.00455240
pop edx
push eax
push 2
mov eax, 0x57a126
push eax
mov eax, 0x57a126
push eax
push edx
call fcn.00455240
pop edx
push eax
push edx
call fcn.00455240
pop edx
push eax
push edx
call fcn.00455240
pop edx
push eax
push edx
call fcn.00455240
pop edx
push eax
call fcn.0043ab77
call fcn.0041e692
add dword [esp], edx
call fcn.0044a0a1
mov edx, str.msact.db
push edx
call fcn.00455280
call fcn.00455370
push 0xffffffff
call fcn.0041e692
add dword [esp + 4], edx
call fcn.0044bec7
call fcn.0041e6b0
mov dword [esp], eax
cmp dword [esp], 0
je 0x40c4a9
push edx
call fcn.00455240
pop edx
push eax
push edx
call fcn.00455240
pop edx
push eax
mov edx, str.SELECT_GROUPS__PRODUCT_FROM_keys_WHERE_key_And_PRODUCT
push edx
call fcn.00455280
push edx
call fcn.00455240
pop edx
push eax
push edx
call fcn.00455240
pop edx
push eax
mov eax, dword [esp + 0x2c]
cdq
push edx
push eax
call fcn.004533c0
pop eax
mov edx, str._ORDER_BY_GROUPS_ASC
push edx
call fcn.00455280
call fcn.00455370
push dword [esp + 8]
call fcn.0041e692
add dword [esp + 4], edx
call fcn.0044bd6a
call fcn.0041e6b0
mov ebx, eax
and ebx, ebx
je 0x40c4a1
push dword [esp]
call fcn.0044bd7c
and eax, eax
je 0x40c496
push edx
call fcn.00455240
pop edx
push eax
push edx
call fcn.00455240
pop edx
push eax
push 0
push dword [esp + 0xc]
call fcn.0044bda4
lea eax, [esp + 8]
push eax
call fcn.004552e0
mov dword [esp + 8], 0
push edx
call fcn.00455240
pop edx
push eax
push edx
call fcn.00455240
pop edx
push eax
mov edx, str.SELECT_key__GROUPS__PRODUCT_FROM_keys_WHERE_NOT_key_AND_Blocked_AND_GROUPS
push edx
call fcn.00455280
mov edx, dword [esp + 0xc]
push edx
call fcn.00455280
mov edx, str._AND_PRODUCT
push edx
call fcn.00455280
push edx
call fcn.00455240
pop edx
push eax
push edx
call fcn.00455240
pop edx
push eax
mov eax, dword [esp + 0x2c]
cdq
push edx
push eax
call fcn.004533c0
pop eax
mov edx, str._ORDER_BY_GROUPS_ASC
push edx
call fcn.00455280
call fcn.00455370
push dword [0x60adb4]
call fcn.0041e692
add dword [esp + 4], edx
call fcn.0044bd6a
call fcn.0041e6b0
mov ebx, eax
and ebx, ebx
je 0x40c421
push dword [0x60adb4]
call fcn.0044bd7c
and eax, eax
je 0x40c416
push edx
call fcn.00455240
pop edx
push eax
push edx
call fcn.00455240
pop edx
push eax
push 0
push dword [0x60adb4]
call fcn.0044bda4
lea eax, [esp + 0x10]
push eax
call fcn.004552e0
mov ebx, dword [esp + 8]
inc ebx
mov dword [esp + 8], ebx
jmp 0x40c3d2
push dword [0x60adb4]
call fcn.0044bdd1
push edx
call fcn.00455240
pop edx
push eax
mov edx, dword [esp + 8]
push edx
call fcn.00455240
pop edx
push eax
push edx
call fcn.00455280
mov edx, 0x57a4f8
push edx
call fcn.00455280
push edx
call fcn.00455240
pop edx
push eax
push edx
call fcn.00455240
pop edx
push eax
mov eax, dword [esp + 0x18]
cdq
push edx
push eax
call fcn.004533c0
pop eax
mov edx, 0x57aa02
push edx
call fcn.00455280
call fcn.00455370
push 0xffffffff
push dword [0x60ac0c]
call fcn.0041e692
add dword [esp + 8], edx
call fcn.004451d0
call fcn.0041e6b0
jmp 0x40c316
push dword [0x60adb4]
call fcn.0044bdd1
push dword [esp]
call fcn.0044bc3f
push edx
call fcn.00455240
pop edx
push eax
push 2
mov eax, 0x57a126
push eax
mov eax, 0x57a126
push eax
push edx
call fcn.00455240
pop edx
push eax
push edx
call fcn.00455240
pop edx
push eax
push edx
call fcn.00455240
pop edx
push eax
push edx
call fcn.00455240
pop edx
push eax
call fcn.0043ab77
call fcn.0041e692
add dword [esp], edx
call fcn.0044a0a1
mov edx, str.msact.db
push edx
call fcn.00455280
call fcn.00455370
push 0xffffffff
call fcn.0041e692
add dword [esp + 4], edx
call fcn.0044bec7
call fcn.0041e6b0
mov dword [esp], eax
cmp dword [esp], 0
je 0x40c789
push edx
call fcn.00455240
pop edx
push eax
push edx
call fcn.00455240
pop edx
push eax
mov edx, str.SELECT_GROUPS__PRODUCT_FROM_backup_WHERE_key_And_PRODUCT
push edx
call fcn.00455280
push edx
call fcn.00455240
pop edx
push eax
push edx
call fcn.00455240
pop edx
push eax
mov eax, dword [esp + 0x2c]
cdq
push edx
push eax
call fcn.004533c0
pop eax
mov edx, str._ORDER_BY_GROUPS_ASC
push edx
call fcn.00455280
call fcn.00455370
push dword [esp + 8]
call fcn.0041e692
add dword [esp + 4], edx
call fcn.0044bd6a
call fcn.0041e6b0
mov ebx, eax
and ebx, ebx
je 0x40c781
push dword [esp]
call fcn.0044bd7c
and eax, eax
je 0x40c776
push edx
call fcn.00455240
pop edx
push eax
push edx
call fcn.00455240
pop edx
push eax
push 0
push dword [esp + 0xc]
call fcn.0044bda4
lea eax, [esp + 8]
push eax
call fcn.004552e0
mov dword [esp + 8], 0
push edx
call fcn.00455240
pop edx
push eax
push edx
call fcn.00455240
pop edx
push eax
mov edx, str.SELECT_key__UUID__GROUPS__PRODUCT_FROM_backup_WHERE_NOT_key_AND_GROUPS
push edx
call fcn.00455280
mov edx, dword [esp + 0xc]
push edx
call fcn.00455280
mov edx, str._AND_PRODUCT
push edx
call fcn.00455280
push edx
call fcn.00455240
pop edx
push eax
push edx
call fcn.00455240
pop edx
push eax
mov eax, dword [esp + 0x2c]
cdq
push edx
push eax
call fcn.004533c0
pop eax
mov edx, str._ORDER_BY_GROUPS_ASC
push edx
call fcn.00455280
call fcn.00455370
push dword [0x60adb4]
call fcn.0041e692
add dword [esp + 4], edx
call fcn.0044bd6a
call fcn.0041e6b0
mov ebx, eax
and ebx, ebx
je 0x40c6f9
push dword [0x60adb4]
call fcn.0044bd7c
and eax, eax
je 0x40c6ee
push edx
call fcn.00455240
pop edx
push eax
push edx
call fcn.00455240
pop edx
push eax
push 0
push dword [0x60adb4]
call fcn.0044bda4
lea eax, [esp + 0x10]
push eax
call fcn.004552e0
push edx
call fcn.00455240
pop edx
push eax
push edx
call fcn.00455240
pop edx
push eax
push 1
push dword [0x60adb4]
call fcn.0044bda4
lea eax, [esp + 0x14]
push eax
call fcn.004552e0
mov ebx, dword [0x60ad70]
and ebx, ebx
jle 0x40c6e0
push dword [esp + 0x10]
mov edx, dword [0x60abd0]
pop ecx
call fcn.0041e640
je 0x40c6de
mov ebx, dword [esp + 8]
inc ebx
mov dword [esp + 8], ebx
jmp 0x40c6e9
mov ebx, dword [esp + 8]
inc ebx
mov dword [esp + 8], ebx
jmp 0x40c652
push dword [0x60adb4]
call fcn.0044bdd1
mov ebx, dword [esp + 8]
and ebx, ebx
jle 0x40c771
push edx
call fcn.00455240
pop edx
push eax
mov edx, dword [esp + 8]
push edx
call fcn.00455240
pop edx
push eax
push edx
call fcn.00455280
mov edx, 0x57a4f8
push edx
call fcn.00455280
push edx
call fcn.00455240
pop edx
push eax
push edx
call fcn.00455240
pop edx
push eax
mov eax, dword [esp + 0x18]
cdq
push edx
push eax
call fcn.004533c0
pop eax
mov edx, 0x57aa02
push edx
call fcn.00455280
call fcn.00455370
push 0xffffffff
push dword [0x60ac0c]
call fcn.0041e692
add dword [esp + 8], edx
call fcn.004451d0
call fcn.0041e6b0
jmp 0x40c592
push dword [0x60adb4]
call fcn.0044bdd1
push dword [esp]
call fcn.0044bc3f
mov dword [esp + 8], 0
mov eax, str.SELECT_key__GROUPS__PRODUCT__Blocked_FROM_keys_WHERE_NOT_key_AND_BlockedKey_Blocked__ORDER_BY_GROUPS_ASC
push eax
push dword [0x60adb4]
call fcn.0044bd6a
mov ebx, eax
and ebx, ebx
je 0x40c7f7
push dword [0x60adb4]
call fcn.0044bd7c
and eax, eax
je 0x40c7ec
push edx
call fcn.00455240
pop edx
push eax
push edx
call fcn.00455240
pop edx
push eax
push 0
push dword [0x60adb4]
call fcn.0044bda4
lea eax, [esp + 0x10]
push eax
call fcn.004552e0
mov ebx, dword [esp + 8]
inc ebx
mov dword [esp + 8], ebx
jmp 0x40c7a8
push dword [0x60adb4]
call fcn.0044bdd1
push edx
call fcn.00455240
pop edx
push eax
mov edx, dword [0x60aee8]
push edx
call fcn.00455240
pop edx
push eax
push edx
call fcn.00455280
mov edx, 0x57a4f8
push edx
call fcn.00455280
push edx
call fcn.00455240
pop edx
push eax
push edx
call fcn.00455240
pop edx
push eax
mov eax, dword [esp + 0x18]
cdq
push edx
push eax
call fcn.004533c0
pop eax
mov edx, 0x57aa02
push edx
call fcn.00455280
call fcn.00455370
push 0xffffffff
push dword [0x60ac0c]
call fcn.0041e692
add dword [esp + 8], edx
call fcn.004451d0
call fcn.0041e6b0
mov ebx, dword [esp + 0x1c]
cmp ebx, 1
jne 0x40c88a
push dword [0x60aab4]
push 0xffffffff
push dword [0x60ac0c]
call fcn.0044539d
jmp 0x40c8a0
push dword [0x60aea8]
push 0xffffffff
push dword [0x60ac0c]
call fcn.0044539d
xor eax, eax
push dword [esp + 0x10]
call fcn.00455440
push dword [esp + 4]
call fcn.00455440
push dword [esp + 0xc]
call fcn.00455440
add esp, 0x14
pop ebx
ret 4