Function at 0x3a1c5c0
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x3a38228
mov eax, dword fs:[0]
push eax
sub esp, 0x58c
mov eax, dword [0x3a7682c]
xor eax, esp
mov dword [esp + 0x588], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x3a7682c]
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 [0x3a5fd60]
mov dword [esi + 0x2f4], eax
test eax, eax
je 0x3a1c7f2
push str.MsiOpenDatabaseW
push eax
call fcn.039971f0
mov dword [esi + 0x2f8], eax
mov eax, dword [esi + 0x2f4]
push str.MsiDatabaseOpenViewW
push eax
call fcn.039971f0
mov ecx, dword [esi + 0x2f4]
push str.MsiViewExecute
push ecx
mov dword [esi + 0x2fc], eax
call fcn.039971f0
mov edx, dword [esi + 0x2f4]
push str.MsiViewFetch
push edx
mov dword [esi + 0x300], eax
call fcn.039971f0
mov dword [esi + 0x304], eax
mov eax, dword [esi + 0x2f4]
push str.MsiViewClose
push eax
call fcn.039971f0
mov ecx, dword [esi + 0x2f4]
push str.MsiCreateRecord
push ecx
mov dword [esi + 0x308], eax
call fcn.039971f0
mov edx, dword [esi + 0x2f4]
push str.MsiRecordSetStringW
push edx
mov dword [esi + 0x30c], eax
call fcn.039971f0
mov dword [esi + 0x310], eax
mov eax, dword [esi + 0x2f4]
push str.MsiRecordIsNull
push eax
call fcn.039971f0
mov ecx, dword [esi + 0x2f4]
add esp, 0x40
push str.MsiRecordGetStringW
push ecx
mov dword [esi + 0x314], eax
call fcn.039971f0
mov edx, dword [esi + 0x2f4]
push str.MsiRecordReadStream
push edx
mov dword [esi + 0x318], eax
call fcn.039971f0
mov dword [esi + 0x31c], eax
mov eax, dword [esi + 0x2f4]
push str.MsiCloseHandle
push eax
call fcn.039971f0
mov ecx, dword [esi + 0x2f8]
add esp, 0x18
mov dword [esi + 0x320], eax
test ecx, ecx
je 0x3a1c7f2
cmp dword [esi + 0x2fc], 0
je 0x3a1c7f2
cmp dword [esi + 0x300], 0
je 0x3a1c7f2
cmp dword [esi + 0x304], 0
je 0x3a1c7f2
cmp dword [esi + 0x308], 0
je 0x3a1c7f2
cmp dword [esi + 0x30c], 0
je 0x3a1c7f2
cmp dword [esi + 0x310], 0
je 0x3a1c7f2
cmp dword [esi + 0x314], 0
je 0x3a1c7f2
cmp dword [esi + 0x318], 0
je 0x3a1c7f2
cmp dword [esi + 0x31c], 0
je 0x3a1c7f2
test eax, eax
je 0x3a1c7f2
lea edi, [esi + 0x2e8]
push edi
push 0
push ebx
call ecx
test eax, eax
jne 0x3a1c7f2
mov edx, dword [edi]
mov eax, dword [esi + 0x2fc]
lea ecx, [esp + 0x14]
push ecx
push str.SELECT__Name__FROM__Binary__WHERE__Name___thinreg
push edx
call eax
test eax, eax
jne 0x3a1c7e1
mov ecx, dword [esi + 0x300]
push eax
mov eax, dword [esp + 0x18]
push eax
call ecx
test eax, eax
je 0x3a1c81e
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x320]
push edx
call eax
mov ecx, dword [edi]
mov edx, dword [esi + 0x320]
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.03a00f6a
add esp, 0x598
ret 4
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x304]
lea eax, [esp + 0x18]
push eax
push ecx
call edx
mov ecx, dword [esi + 0x320]
mov ebp, eax
mov eax, dword [esp + 0x14]
push eax
call ecx
test ebp, ebp
jne 0x3a1ca4a
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x320]
push ecx
call edx
push ebp
push ebp
push 3
push ebp
push 1
push 1
push ebx
call dword [0x3a5fdb0]
mov dword [esi + 0x2ec], eax
cmp eax, 0xffffffff
je 0x3a1c9f4
push 2
push ebp
mov ebp, dword [0x3a5ffb0]
push 0xffffffffffffffe8
push eax
call ebp
mov edx, dword [esi + 0x2ec]
mov ebx, dword [0x3a5fe08]
push 0
lea eax, [esp + 0x20]
push eax
push 0x18
lea ecx, [esp + 0x30]
push ecx
push edx
call ebx
test eax, eax
je 0x3a1c9d9
cmp dword [esp + 0x1c], 0x18
jne 0x3a1c9d9
cmp dword [esp + 0x38], 0xf757e2d2
jne 0x3a1c9d9
cmp dword [esp + 0x34], 1
jne 0x3a1c9d9
mov eax, dword [esp + 0x2c]
push eax
call fcn.0393d9d0
add esp, 4
mov dword [esi + 0x2f0], eax
test eax, eax
je 0x3a1c9d9
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 0x2ec]
push 0
lea ecx, [esp + 0x2c]
push ecx
push edx
push eax
call ebp
cmp eax, 0xffffffff
jne 0x3a1c90d
call dword [0x3a5fd78]
test eax, eax
jne 0x3a1c9c0
mov edx, dword [esp + 0x2c]
mov eax, dword [esi + 0x2f0]
push 0
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esi + 0x2ec]
push edx
push eax
push ecx
call ebx
test eax, eax
je 0x3a1c9c0
mov edx, dword [esp + 0x1c]
cmp edx, dword [esp + 0x2c]
jne 0x3a1c9c0
push 0x48
call fcn.0393d940
add esp, 4
mov dword [esp + 0x3c], eax
mov dword [esp + 0x5a8], 0
test eax, eax
je 0x3a1c973
mov ecx, dword [esi + 0x2f0]
mov edx, dword [esi + 0x2ec]
push ecx
push edx
mov ecx, eax
call fcn.03a119b0
jmp 0x3a1c975
xor eax, eax
mov dword [esp + 0x5a8], 0xffffffff
mov edx, dword [esi + 0x1f4]
lea ecx, [esi + 0x1f4]
push eax
mov eax, dword [edx + 4]
call eax
test al, al
je 0x3a1c9c0
mov ecx, dword [0x3a56b80]
mov edx, dword [esi + 0x2f0]
push ecx
add edx, 0x20
push edx
lea ecx, [esi + 4]
call fcn.03931210
mov dword [esi + 0x1f0], 3
mov al, 1
jmp 0x3a1c7f4
mov eax, dword [esi + 0x2f0]
push eax
call fcn.0393d9e0
add esp, 4
mov dword [esi + 0x2f0], 0
mov eax, dword [esi + 0x2ec]
push eax
call dword [0x3a5fd90]
mov ebx, dword [esp + 0x20]
mov dword [esi + 0x2ec], 0xffffffff
mov edx, dword [edi]
mov eax, dword [esi + 0x2fc]
lea ecx, [esp + 0x14]
push ecx
push str.SELECT__Cabinet__FROM__Media__ORDER_BY__DiskId_
push edx
call eax
test eax, eax
jne 0x3a1c7e1
mov ecx, dword [esi + 0x300]
push eax
mov eax, dword [esp + 0x18]
push eax
call ecx
test eax, eax
jne 0x3a1c7d4
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x304]
lea eax, [esp + 0x18]
push eax
push ecx
call edx
test eax, eax
je 0x3a1ca5a
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x320]
push eax
call ecx
mov edx, dword [edi]
mov eax, dword [esi + 0x320]
push edx
call eax
jmp 0x3a1c7ec
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x314]
push 1
push ecx
call edx
neg eax
sbb eax, eax
add eax, 1
je 0x3a1cbf3
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esi + 0x318]
lea ecx, [esp + 0x190]
push ecx
push 1
mov ebx, 0x104
push edx
mov dword [esp + 0x2c], ebx
call eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x320]
push ecx
mov ebp, eax
call edx
test ebp, ebp
jne 0x3a1ca3d
lea ecx, [esp + 0x24]
call fcn.039d9be0
mov dword [esp + 0x5a8], 1
lea ecx, [esp + 0x18c]
push ecx
lea ecx, [esp + 0x48]
call fcn.039f0100
mov byte [esp + 0x5a8], 2
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x28]
call fcn.03949b60
mov byte [esp + 0x5a8], 1
lea ecx, [esp + 0x44]
call fcn.039ef660
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x304]
lea eax, [esp + 0x18]
push eax
push ecx
call edx
mov ebp, eax
test ebp, ebp
jne 0x3a1cba3
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esi + 0x318]
lea ecx, [esp + 0x190]
push ecx
push 1
push edx
mov dword [esp + 0x2c], ebx
call eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x320]
push ecx
mov ebp, eax
call edx
test ebp, ebp
jne 0x3a1cb6c
lea eax, [esp + 0x18c]
push eax
lea ecx, [esp + 0x48]
call fcn.039f0100
mov byte [esp + 0x5a8], 3
lea ecx, [esp + 0x44]
push ecx
jmp 0x3a1cae0
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x320]
push edx
call eax
mov ecx, dword [edi]
mov edx, dword [esi + 0x320]
push ecx
call edx
mov dword [edi], 0
mov dword [esp + 0x5a8], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.03932d60
jmp 0x3a1c7f2
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x320]
push eax
call ecx
cmp ebp, 0x103
je 0x3a1cbc5
mov edx, dword [edi]
mov eax, dword [esi + 0x320]
push edx
call eax
jmp 0x3a1cb84
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
mov ecx, esi
call fcn.03a1bb30
mov bl, al
mov dword [esp + 0x5a8], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.03932d60
mov al, bl
jmp 0x3a1c7f4
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x320]
push eax
call ecx
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x320]
push edx
call eax
mov edx, dword [edi]
mov eax, dword [esi + 0x2fc]
lea ecx, [esp + 0x14]
push ecx
push str.SELECT__FileName__FROM__File__WHERE__File___F0000001
push edx
call eax
test eax, eax
jne 0x3a1c7e1
mov ecx, dword [esi + 0x300]
push eax
mov eax, dword [esp + 0x18]
push eax
call ecx
test eax, eax
jne 0x3a1c7d4
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x304]
lea eax, [esp + 0x18]
push eax
push ecx
call edx
test eax, eax
jne 0x3a1ca3d
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esi + 0x318]
lea edx, [esp + 0x398]
push edx
push 1
push eax
mov dword [esp + 0x50], 0x104
call ecx
mov edx, dword [esp + 0x18]
mov ebp, eax
mov eax, dword [esi + 0x320]
push edx
call eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x320]
push ecx
call edx
test ebp, ebp
je 0x3a1ccae
mov eax, dword [edi]
mov ecx, dword [esi + 0x320]
push eax
call ecx
jmp 0x3a1c7ec
lea edx, [esp + 0x394]
push 0x7c
push edx
call fcn.03a00953
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x3a1cccf
lea ebp, [esp + 0x394]
jmp 0x3a1ccd2
add ebp, 2
push ebx
call fcn.039f7560
sub eax, ebx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0xf0]
call fcn.039f00c0
mov ebx, 4
mov dword [esp + 0x5a8], ebx
mov eax, dword [0x3a56b80]
push eax
push ebp
lea ecx, [esp + 0xf0]
call fcn.039efdd0
push 0x28
call fcn.0393d940
add esp, 4
mov dword [esp + 0x3c], eax
mov byte [esp + 0x5a8], 5
test eax, eax
je 0x3a1cd34
mov ecx, dword [esp + 0xe8]
push ecx
mov ecx, eax
call fcn.039f2ef0
jmp 0x3a1cd36
xor eax, eax
mov byte [esp + 0x5a8], bl
mov edx, dword [esi + 0x1f4]
lea ecx, [esi + 0x1f4]
push eax
mov eax, dword [edx + 4]
call eax
test al, al
jne 0x3a1cd80
mov ecx, dword [edi]
mov edx, dword [esi + 0x320]
push ecx
call edx
mov dword [edi], 0
mov dword [esp + 0x5a8], 0xffffffff
lea ecx, [esp + 0xe8]
call fcn.039ef660
jmp 0x3a1c7f2
mov eax, dword [0x3a56b80]
push eax
push 0
lea ecx, [esp + 0xf0]
push ecx
lea ecx, [esi + 4]
call fcn.039321e0
mov dword [esi + 0x1f0], 2
mov dword [esp + 0x5a8], 0xffffffff
lea ecx, [esp + 0xe8]
call fcn.039ef660
mov al, 1
jmp 0x3a1c7f4