Function at 0x40b040
Capabilities:
Link many functions at runtime
Reference sql statements
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526c2e
mov eax, dword fs:[0]
push eax
sub esp, 0x194
mov eax, dword [0x587730]
xor eax, ebp
mov dword [ebp - 0x68], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x190], ecx
push str.Compsetupstarter
lea ecx, [ebp - 0x30]
call fcn.00406480
mov dword [ebp - 4], 0
push str.msi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x10]
call fcn.00406440
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x20]
call fcn.00406480
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00406480
mov byte [ebp - 4], 3
mov dword [ebp - 0x4c], 0
cmp dword [ebp - 0x18], 0
jne 0x40b114
mov dword [ebp - 0x178], 0xfffffff6
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.00406500
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00406500
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00406500
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00406500
mov eax, dword [ebp - 0x178]
jmp 0x40b462
push str.MsiOpenDatabaseW
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x40], eax
push str.MsiDatabaseOpenViewW
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x54], eax
push str.MsiViewExecute
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
push str.MsiViewFetch
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
push str.MsiViewClose
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x28], eax
push str.MsiCloseHandle
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x3c], eax
push str.MsiCreateRecord
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x38], eax
push str.MsiRecordReadStream
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x48]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 0x40]
push 0x53b77c
lea eax, [ebp - 0x20]
push eax
push 0x53b738
lea ecx, [ebp - 0x17c]
push ecx
call fcn.00405d20
add esp, 0xc
mov dword [ebp - 0x194], eax
mov edx, dword [ebp - 0x194]
mov dword [ebp - 0x198], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x198]
push eax
lea ecx, [ebp - 0x180]
push ecx
call fcn.00405c70
add esp, 0xc
mov dword [ebp - 0x19c], eax
mov edx, dword [ebp - 0x19c]
mov dword [ebp - 0x1a0], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1a0]
push eax
lea ecx, [ebp - 0x10]
call fcn.00406520
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x180]
call fcn.00406500
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x17c]
call fcn.00406500
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00406580
push eax
mov edx, dword [ebp - 0x48]
push edx
call dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x40b412
push 0
mov eax, dword [ebp - 0x50]
push eax
call dword [ebp - 0x14]
test eax, eax
jne 0x40b3fb
push 3
call dword [ebp - 0x38]
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x50]
push edx
call dword [ebp - 0x1c]
test eax, eax
jne 0x40b3e5
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
push eax
push 0
push 2
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [ebp - 0x44]
test eax, eax
jne 0x40b3dc
lea ecx, [ebp - 0x60]
call fcn.00406440
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x34]
add edx, 1
push edx
call fcn.0041730b
add esp, 4
mov dword [ebp - 0x184], eax
mov eax, dword [ebp - 0x184]
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
push 2
mov eax, dword [ebp - 0x2c]
push eax
call dword [ebp - 0x44]
test eax, eax
jne 0x40b3c7
push 0x104
push 0
lea ecx, [ebp - 0x174]
push ecx
call fcn.0050c850
add esp, 0xc
push 0
push 0
push 0x104
lea edx, [ebp - 0x174]
push edx
lea ecx, [ebp - 0x24]
call fcn.004065e0
push eax
push 0
lea ecx, [ebp - 0x24]
call fcn.00406590
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0x53b734
lea eax, [ebp - 0x174]
push eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.0050e820
add esp, 0xc
cmp dword [ebp - 0x64], 0
je 0x40b371
mov edx, dword [ebp - 0x64]
push edx
mov eax, dword [ebp - 0x34]
push eax
push 1
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.0050e6ea
add esp, 0x10
mov edx, dword [ebp - 0x64]
push edx
call fcn.0050e51f
add esp, 4
jmp 0x40b3c5
mov dword [ebp - 0x188], 0xffffffff
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x60]
call fcn.00406500
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.00406500
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00406500
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00406500
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00406500
mov eax, dword [ebp - 0x188]
jmp 0x40b462
jmp 0x40b3ce
mov dword [ebp - 0x4c], 0xfffffffe
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x60]
call fcn.00406500
jmp 0x40b3e3
mov dword [ebp - 0x4c], 0xfffffffd
jmp 0x40b3ec
mov dword [ebp - 0x4c], 0xfffffffc
cmp dword [ebp - 0x2c], 0
je 0x40b3f9
mov eax, dword [ebp - 0x2c]
push eax
call dword [ebp - 0x3c]
jmp 0x40b402
mov dword [ebp - 0x4c], 0xfffffffb
mov ecx, dword [ebp - 0x50]
push ecx
call dword [ebp - 0x28]
mov edx, dword [ebp - 0x50]
push edx
call dword [ebp - 0x3c]
jmp 0x40b419
mov dword [ebp - 0x4c], 0xfffffffa
mov eax, dword [ebp - 0x48]
push eax
call dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x18c], ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.00406500
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00406500
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00406500
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00406500
mov eax, dword [ebp - 0x18c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x68]
xor ecx, ebp
call fcn.0050c838
mov esp, ebp
pop ebp
ret 0xc