Function at 0x40a8e7
Capabilities:
Reference sql statements

Disassembly:
push 0x6c
mov eax, 0x41f8f1
call fcn.0040dc60
mov dword [ebp - 0x4c], ecx
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x74], ecx
xor eax, eax
mov word [ebp - 0x6c], ax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ecx
mov word [ebp - 0x48], ax
mov byte [ebp - 4], 4
test edi, edi
jne 0x40a954
mov dword [ebp - 0x4c], 0x4018e8
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x60]
call fcn.00411a50
mov dword [ebp - 0x60], 0x401468
push 0x4207a4
lea eax, [ebp - 0x60]
push eax
call fcn.00411a50
test ebx, ebx
jne 0x40a961
mov dword [ebp - 0x4c], 0x401908
jmp 0x40a933
mov esi, 0x80
push esi
push edi
call fcn.00411a50
pop ecx
pop ecx
cmp eax, esi
jne 0x40a994
mov dword [ebp - 0x4c], 0x401580
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x60]
call fcn.00411a50
mov dword [ebp - 0x60], 0x4011e8
push 0x42046c
jmp 0x40a94b
lea esi, [eax + 0x3d]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00411a50
pop ecx
push eax
lea ecx, [ebp - 0x74]
call fcn.00411a50
push edi
push 0x401868
push esi
mov esi, dword [ebp - 0x74]
push esi
call fcn.00411a50
add esp, 0x10
cmp eax, 0xffffffff
jne 0x40a9d8
mov dword [ebp - 0x4c], 0x4012bc
jmp 0x40a97a
cmp dword [ebp - 0x54], 0
je 0x40a9e6
push dword [ebp - 0x54]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
and dword [ebp - 0x54], 0
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x4c]
push esi
push dword [eax]
call sub.msi.dll_MsiEnumClientsA
mov edi, eax
test edi, edi
je 0x40aa53
and dword [ebp - 0x1c], 0
push 0x1c
push 0x401928
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.00411a50
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 5
jae 0x40aa2d
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x64]
call fcn.00411a50
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x64], 0x4017e4
push 0x420ef4
lea eax, [ebp - 0x64]
jmp 0x40a94e
cmp dword [ebp - 0x50], 0
je 0x40aa61
push dword [ebp - 0x50]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x4c]
and dword [ebp - 0x50], 0
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x54]
call fcn.0040ae9e
mov edi, eax
cmp edi, 1
jne 0x40aab4
push 0
push eax
lea ecx, [ebp - 0x48]
call fcn.00411a50
test esi, esi
je 0x40aa91
push esi
call fcn.00411a50
pop ecx
cmp dword [ebp - 0x50], 0
je 0x40aa9f
push dword [ebp - 0x50]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x54], 0
je 0x40aaad
push dword [ebp - 0x54]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
xor al, al
jmp 0x40abcc
test edi, edi
je 0x40aaec
and dword [ebp - 0x1c], 0
push 0x1b
push 0x401948
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.00411a50
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 6
jae 0x40aa2d
jmp 0x40aa2a
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
push 1
push dword [ebp - 0x50]
call sub.msi.dll_MsiRecordSetStreamA
mov eax, dword [ebp - 0x68]
inc eax
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 0x68], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00411a50
pop ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.00411a50
mov edi, dword [ebp - 0x70]
lea eax, [ebp - 0x68]
push eax
push edi
push 1
push dword [ebp - 0x50]
call sub.msi.dll_MsiRecordSetStreamA
mov dword [ebp - 0x78], eax
test eax, eax
je 0x40ab84
and dword [ebp - 0x1c], 0
push 0x1b
push 0x401964
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.00411a50
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 7
jae 0x40ab6a
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x64]
call fcn.00411a50
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x58], eax
jmp 0x40aa3f
push edi
mov ecx, ebx
call fcn.00411a50
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00411a50
test esi, esi
je 0x40aba3
push esi
call fcn.00411a50
pop ecx
test edi, edi
je 0x40abae
push edi
call fcn.00411a50
pop ecx
cmp dword [ebp - 0x50], 0
je 0x40abbc
push dword [ebp - 0x50]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x54], 0
je 0x40abca
push dword [ebp - 0x54]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov al, 1
call fcn.0040dce3
ret 8