Function at 0x407030
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
test ecx, ecx
je 0x407226
test edx, edx
je 0x407226
cmp dword [ebp + 8], 0
je 0x407226
mov ebx, dword [ecx]
test ebx, ebx
jne 0x407063
lea eax, [ebx + 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx], 0
jne 0x4070bc
push edx
push str.SELECT_payloadID__productFamily__productName__version__signature__installState__installTime_FROM_payloads_WHERE_PayloadID___q
call fcn.0040c250
mov esi, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push dword [ebx + 4]
call fcn.00468450
push esi
mov edi, eax
call fcn.0040a630
add esp, 0x24
test edi, edi
je 0x4070ab
mov ecx, edi
call fcn.00403770
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 8], 1
jge 0x4070c8
push dword [ebp - 4]
call fcn.004685f0
add esp, 4
mov eax, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0xc], 7
je 0x4070e5
push dword [ebp - 4]
call fcn.004685f0
add esp, 4
mov eax, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov edi, eax
mov dword [ebp - 0xc], eax
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4070f3
sub edi, ecx
lea eax, [ebx + 0xc]
inc edi
push edi
mov ecx, eax
mov dword [ebp - 8], eax
call fcn.004039b0
push dword [ebp - 0xc]
mov esi, eax
push edi
push esi
call fcn.004a3c20
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov dword [ebx], esi
mov eax, dword [eax + 0x20]
mov edi, eax
add esp, 0xc
mov dword [ebp - 0xc], eax
lea ecx, [edi + 1]
lea ecx, [ecx]
mov al, byte [edi]
inc edi
test al, al
jne 0x407130
sub edi, ecx
mov ecx, dword [ebp - 8]
inc edi
push edi
call fcn.004039b0
push dword [ebp - 0xc]
mov esi, eax
push edi
push esi
call fcn.004a3c20
mov eax, dword [ebp - 4]
mov dword [ebx + 4], esi
mov eax, dword [eax + 0x24]
mov edi, eax
add esp, 0xc
mov dword [ebp - 0xc], eax
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x407163
sub edi, ecx
mov ecx, dword [ebp - 8]
inc edi
push edi
call fcn.004039b0
push dword [ebp - 0xc]
mov esi, eax
push edi
push esi
call fcn.004a3c20
mov eax, dword [ebp - 4]
mov dword [ebx + 8], esi
mov eax, dword [eax + 0x28]
mov edi, eax
add esp, 0xc
mov dword [ebp - 0xc], eax
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x407196
sub edi, ecx
mov ecx, dword [ebp - 8]
inc edi
push edi
call fcn.004039b0
push dword [ebp - 0xc]
mov esi, eax
push edi
push esi
call fcn.004a3c20
mov eax, dword [ebp - 4]
mov dword [ebx + 0xc], esi
mov eax, dword [eax + 0x2c]
mov edi, eax
add esp, 0xc
mov dword [ebp - 0xc], eax
lea ecx, [edi + 1]
lea esp, [esp]
mov al, byte [edi]
inc edi
test al, al
jne 0x4071d0
sub edi, ecx
mov ecx, dword [ebp - 8]
inc edi
push edi
call fcn.004039b0
push dword [ebp - 0xc]
mov esi, eax
push edi
push esi
call fcn.004a3c20
mov dword [ebx + 0x10], esi
mov esi, dword [ebp - 4]
add esp, 0xc
push dword [esi + 0x30]
call fcn.004a3c03
add esp, 4
mov dword [ebx + 0x14], eax
push dword [esi + 0x34]
call fcn.004a3c03
add esp, 4
mov dword [ebx + 0x18], eax
push esi
call fcn.004685f0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xa
pop ebx
mov esp, ebp
pop ebp
ret