Function at 0x1d561a0
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x1d74ce8
mov eax, dword fs:[0]
push eax
sub esp, 0x58c
mov eax, dword [0x1dbb89c]
xor eax, esp
mov dword [esp + 0x588], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1dbb89c]
xor eax, esp
push eax
lea eax, [esp + 0x5a0]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x5b0]
push 0
push 0
push str.msi.dll
mov esi, ecx
mov dword [esp + 0x2c], ebx
call dword [0x1da3a98]
mov dword [esi + 0x39c], eax
test eax, eax
je 0x1d563d2
push str.MsiOpenDatabaseW
push eax
call fcn.01cc1730
mov dword [esi + 0x3a0], eax
mov eax, dword [esi + 0x39c]
push str.MsiDatabaseOpenViewW
push eax
call fcn.01cc1730
mov ecx, dword [esi + 0x39c]
push str.MsiViewExecute
push ecx
mov dword [esi + 0x3a4], eax
call fcn.01cc1730
mov edx, dword [esi + 0x39c]
push str.MsiViewFetch
push edx
mov dword [esi + 0x3a8], eax
call fcn.01cc1730
mov dword [esi + 0x3ac], eax
mov eax, dword [esi + 0x39c]
push str.MsiViewClose
push eax
call fcn.01cc1730
mov ecx, dword [esi + 0x39c]
push str.MsiCreateRecord
push ecx
mov dword [esi + 0x3b0], eax
call fcn.01cc1730
mov edx, dword [esi + 0x39c]
push str.MsiRecordSetStringW
push edx
mov dword [esi + 0x3b4], eax
call fcn.01cc1730
mov dword [esi + 0x3b8], eax
mov eax, dword [esi + 0x39c]
push str.MsiRecordIsNull
push eax
call fcn.01cc1730
mov ecx, dword [esi + 0x39c]
add esp, 0x40
push str.MsiRecordGetStringW
push ecx
mov dword [esi + 0x3bc], eax
call fcn.01cc1730
mov edx, dword [esi + 0x39c]
push str.MsiRecordReadStream
push edx
mov dword [esi + 0x3c0], eax
call fcn.01cc1730
mov dword [esi + 0x3c4], eax
mov eax, dword [esi + 0x39c]
push str.MsiCloseHandle
push eax
call fcn.01cc1730
mov ecx, dword [esi + 0x3a0]
add esp, 0x18
mov dword [esi + 0x3c8], eax
test ecx, ecx
je 0x1d563d2
cmp dword [esi + 0x3a4], 0
je 0x1d563d2
cmp dword [esi + 0x3a8], 0
je 0x1d563d2
cmp dword [esi + 0x3ac], 0
je 0x1d563d2
cmp dword [esi + 0x3b0], 0
je 0x1d563d2
cmp dword [esi + 0x3b4], 0
je 0x1d563d2
cmp dword [esi + 0x3b8], 0
je 0x1d563d2
cmp dword [esi + 0x3bc], 0
je 0x1d563d2
cmp dword [esi + 0x3c0], 0
je 0x1d563d2
cmp dword [esi + 0x3c4], 0
je 0x1d563d2
test eax, eax
je 0x1d563d2
lea edi, [esi + 0x390]
push edi
push 0
push ebx
call ecx
test eax, eax
jne 0x1d563d2
mov edx, dword [edi]
mov eax, dword [esi + 0x3a4]
lea ecx, [esp + 0x14]
push ecx
push str.SELECT__Name__FROM__Binary__WHERE__Name___thinreg
push edx
call eax
test eax, eax
jne 0x1d563c1
mov ecx, dword [esi + 0x3a8]
push eax
mov eax, dword [esp + 0x18]
push eax
call ecx
test eax, eax
je 0x1d563fe
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x3c8]
push edx
call eax
mov ecx, dword [edi]
mov edx, dword [esi + 0x3c8]
push ecx
call edx
mov dword [edi], 0
xor al, al
mov ecx, dword [esp + 0x5a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x588]
xor ecx, esp
call fcn.01d389aa
add esp, 0x598
ret 4
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x3ac]
lea eax, [esp + 0x18]
push eax
push ecx
call edx
mov ecx, dword [esi + 0x3c8]
mov ebp, eax
mov eax, dword [esp + 0x14]
push eax
call ecx
test ebp, ebp
je 0x1d56430
mov edx, dword [edi]
mov eax, dword [esi + 0x3c8]
push edx
call eax
jmp 0x1d563cc
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x3c8]
push ecx
call edx
push 0
push 0
push 3
push 0
push 1
push 1
push ebx
call dword [0x1da3afc]
mov dword [esi + 0x394], eax
cmp eax, 0xffffffff
je 0x1d565db
mov ebp, dword [0x1da3d20]
push 2
push 0
push 0xffffffffffffffe8
push eax
call ebp
mov edx, dword [esi + 0x394]
mov ebx, dword [0x1da3b4c]
push 0
lea eax, [esp + 0x20]
push eax
push 0x18
lea ecx, [esp + 0x30]
push ecx
push edx
call ebx
test eax, eax
je 0x1d565c0
cmp dword [esp + 0x1c], 0x18
jne 0x1d565c0
cmp dword [esp + 0x38], 0xf757e2d2
jne 0x1d565c0
cmp dword [esp + 0x34], 1
jne 0x1d565c0
mov eax, dword [esp + 0x2c]
push eax
call fcn.01c60210
add esp, 4
mov dword [esi + 0x398], eax
test eax, eax
je 0x1d565c0
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 0x394]
push 0
lea ecx, [esp + 0x2c]
push ecx
push edx
push eax
call ebp
cmp eax, 0xffffffff
jne 0x1d564fa
call dword [0x1da3abc]
test eax, eax
jne 0x1d565a7
mov edx, dword [esp + 0x2c]
mov eax, dword [esi + 0x398]
push 0
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esi + 0x394]
push edx
push eax
push ecx
call ebx
test eax, eax
je 0x1d565a7
mov edx, dword [esp + 0x1c]
cmp edx, dword [esp + 0x2c]
jne 0x1d565a7
push 0x48
call fcn.01c60170
add esp, 4
mov dword [esp + 0x3c], eax
mov dword [esp + 0x5a8], 0
test eax, eax
je 0x1d5655c
mov ecx, dword [esi + 0x398]
mov edx, dword [esi + 0x394]
push ecx
push edx
mov ecx, eax
call fcn.01d493e0
jmp 0x1d5655e
xor eax, eax
mov dword [esp + 0x5a8], 0xffffffff
mov edx, dword [esi + 0x29c]
lea ecx, [esi + 0x29c]
push eax
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1d565a7
mov ecx, dword [esi + 0x398]
add ecx, 0x20
push 0xffffffffffffffff
push ecx
lea ecx, [esi + 0xac]
call fcn.01c51210
mov dword [esi + 0x298], 3
mov al, 1
jmp 0x1d563d4
mov eax, dword [esi + 0x398]
push eax
call fcn.01c60200
add esp, 4
mov dword [esi + 0x398], 0
mov edx, dword [esi + 0x394]
push edx
call dword [0x1da3ad4]
mov ebx, dword [esp + 0x20]
mov dword [esi + 0x394], 0xffffffff
mov ecx, dword [edi]
mov edx, dword [esi + 0x3a4]
lea eax, [esp + 0x14]
push eax
push str.SELECT__Cabinet__FROM__Media__ORDER_BY__DiskId_
push ecx
call edx
test eax, eax
jne 0x1d56613
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esi + 0x3a8]
push edx
call eax
test eax, eax
je 0x1d56623
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x3c8]
push ecx
call edx
mov eax, dword [edi]
mov ecx, dword [esi + 0x3c8]
push eax
call ecx
jmp 0x1d563cc
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x3ac]
lea edx, [esp + 0x18]
push edx
push eax
call ecx
test eax, eax
jne 0x1d563b4
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x3bc]
push 1
push eax
call ecx
neg eax
sbb eax, eax
add eax, 1
je 0x1d567da
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esi + 0x3c0]
lea eax, [esp + 0x190]
push eax
push 1
mov ebx, 0x104
push ecx
mov dword [esp + 0x2c], ebx
call edx
mov ecx, dword [esi + 0x3c8]
mov ebp, eax
mov eax, dword [esp + 0x18]
push eax
call ecx
test ebp, ebp
jne 0x1d563b4
lea ecx, [esp + 0x24]
call fcn.01d110a0
mov dword [esp + 0x5a8], 1
lea eax, [esp + 0x18c]
push eax
lea ecx, [esp + 0x48]
call fcn.01d27240
mov byte [esp + 0x5a8], 2
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x28]
call fcn.01c6c1e0
mov byte [esp + 0x5a8], 1
lea ecx, [esp + 0x44]
call fcn.01d26680
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x3ac]
lea edx, [esp + 0x18]
push edx
push eax
call ecx
mov ebp, eax
test ebp, ebp
jne 0x1d5678a
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esi + 0x3c0]
lea eax, [esp + 0x190]
push eax
push 1
push ecx
mov dword [esp + 0x2c], ebx
call edx
mov ecx, dword [esi + 0x3c8]
mov ebp, eax
mov eax, dword [esp + 0x18]
push eax
call ecx
test ebp, ebp
jne 0x1d56753
lea edx, [esp + 0x18c]
push edx
lea ecx, [esp + 0x48]
call fcn.01d27240
mov byte [esp + 0x5a8], 3
lea eax, [esp + 0x44]
push eax
jmp 0x1d566c7
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x3c8]
push ecx
call edx
mov eax, dword [edi]
mov ecx, dword [esi + 0x3c8]
push eax
call ecx
mov dword [edi], 0
mov dword [esp + 0x5a8], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.01c52e60
jmp 0x1d563d2
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x3c8]
push edx
call eax
cmp ebp, 0x103
je 0x1d567ac
mov ecx, dword [edi]
mov edx, dword [esi + 0x3c8]
push ecx
call edx
jmp 0x1d5676b
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call fcn.01d55730
mov bl, al
mov dword [esp + 0x5a8], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.01c52e60
mov al, bl
jmp 0x1d563d4
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x3c8]
push edx
call eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x3c8]
push ecx
call edx
mov ecx, dword [edi]
mov edx, dword [esi + 0x3a4]
lea eax, [esp + 0x14]
push eax
push str.SELECT__FileName__FROM__File__WHERE__File___F0000001
push ecx
call edx
test eax, eax
jne 0x1d56613
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esi + 0x3a8]
push edx
call eax
test eax, eax
jne 0x1d56606
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x3ac]
lea edx, [esp + 0x18]
push edx
push eax
call ecx
test eax, eax
jne 0x1d563b4
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x40]
push eax
mov eax, dword [esi + 0x3c0]
lea ecx, [esp + 0x398]
push ecx
push 1
push edx
mov dword [esp + 0x50], 0x104
call eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x3c8]
push ecx
mov ebp, eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x3c8]
push eax
call ecx
test ebp, ebp
jne 0x1d56423
lea ecx, [esp + 0x394]
push 0x7c
push ecx
call fcn.01d38393
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x1d568aa
lea ebp, [esp + 0x394]
jmp 0x1d568ad
add ebp, 2
push ebx
call fcn.01d2f050
sub eax, ebx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0xf0]
call fcn.01d27200
mov ebx, 4
mov dword [esp + 0x5a8], ebx
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0xf0]
call fcn.01d26f00
push 0x28
call fcn.01c60170
add esp, 4
mov dword [esp + 0x3c], eax
mov byte [esp + 0x5a8], 5
test eax, eax
je 0x1d5690b
mov edx, dword [esp + 0xe8]
push edx
mov ecx, eax
call fcn.01d2a500
jmp 0x1d5690d
xor eax, eax
mov byte [esp + 0x5a8], bl
mov edx, dword [esi + 0x29c]
lea ecx, [esi + 0x29c]
push eax
mov eax, dword [edx + 4]
call eax
test al, al
jne 0x1d56957
mov ecx, dword [edi]
mov edx, dword [esi + 0x3c8]
push ecx
call edx
mov dword [edi], 0
mov dword [esp + 0x5a8], 0xffffffff
lea ecx, [esp + 0xe8]
call fcn.01d26680
jmp 0x1d563d2
push 0xffffffffffffffff
push 0
lea eax, [esp + 0xf0]
push eax
lea ecx, [esi + 0xac]
call fcn.01c52310
mov dword [esi + 0x298], 2
mov dword [esp + 0x5a8], 0xffffffff
lea ecx, [esp + 0xe8]
call fcn.01d26680
mov al, 1
jmp 0x1d563d4