Function at 0x402560
Capabilities:
Read .ini file
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x41b7ad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x228
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor ebp, ebp
call fcn.00415332
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x240], ebp
call fcn.00415332
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x244], 1
call fcn.00407060
add esp, 4
xor bl, bl
jmp 0x4025d0
push str.lang_d
call fcn.00408c0d
add esp, 4
push eax
push str.lang_d
lea ecx, [esp + 0x1c]
call fcn.00401300
mov ecx, dword [esp + 0x14]
inc ebp
push ebp
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.004020a0
mov eax, dword [esi + 8]
mov edi, dword [esp + 0x20]
push 0x1450
push eax
lea eax, [esp + 0x30]
push eax
push 0x41c490
push edi
push str.Language
call fcn.00406cd0
add esp, 0x24
test eax, eax
je 0x40269e
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004093ab
add esp, 4
mov edi, eax
mov eax, dword [esi + 0x4c]
lea ecx, [esi + 0x44]
push edi
push eax
call fcn.004149ec
test bl, bl
mov ecx, dword [esp + 0x28]
jne 0x40268e
mov edx, edi
xor edx, ecx
test edx, 0x3ff
jne 0x40268e
mov ax, cx
shr ax, 0xa
cmp ax, 2
jne 0x402673
mov edx, edi
and edx, 0xfc00
cmp edx, 0x400
je 0x40268e
cmp ax, 1
jne 0x402687
mov eax, edi
and eax, 0xfc00
cmp eax, 0x800
je 0x40268e
mov word [0x424780], di
cmp cx, di
jne 0x4025d0
mov bl, 1
jmp 0x4025d0
mov eax, dword [esi + 8]
push 0x1450
push eax
lea ebp, [esi + 0x10]
push ebp
push 0
push 0x41c4a8
push 0x41c494
call fcn.00406cd0
add esp, 0x18
test eax, eax
je 0x4026e8
mov eax, dword [esi + 8]
push 0x1450
push eax
lea ecx, [esi + 0x14]
push ecx
push 0
push str.ProductName
push 0x41c494
call fcn.00406cd0
add esp, 0x18
test eax, eax
jne 0x402716
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x240], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40270e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
jmp 0x4029c4
mov eax, dword [esi + 8]
push eax
push 0x105
lea eax, [esp + 0x34]
push eax
push 0
push 0x41c56c
push 0x41c494
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esi + 0xc]
test eax, eax
lea edi, [esi + 0x24]
push ecx
mov ecx, edi
seta bl
call fcn.00402030
mov eax, dword [ebp]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, edi
call fcn.00401ee0
test bl, bl
jne 0x402764
push edi
mov ecx, ebp
call fcn.00402030
mov ebp, dword [ebp]
lea edx, [esp + 0x24]
push edx
xor ebx, ebx
push ebx
push ebp
mov dword [esp + 0x30], ebx
call sub.msi.dll_MsiOpenProductW
test eax, eax
jne 0x402894
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x18]
push eax
push str.SELECT__Property___Value__FROM__Property__WHERE__Property__
push ecx
mov dword [esp + 0x24], ebx
call sub.msi.dll_MsiEnumClientsA
test eax, eax
jne 0x402886
mov dword [esp + 0x20], ebx
push 2
call sub.msi.dll_MsiDatabaseExportA
push eax
lea ecx, [esp + 0x24]
call fcn.00401cc0
mov edi, dword [esp + 0x20]
push str.ProductCode
push 1
push edi
call sub.msi.dll_MsiReinstallFeatureW
mov edx, dword [esp + 0x18]
push edi
push edx
call sub.msi.dll_MsiViewModify
test eax, eax
jne 0x40281b
mov dword [esp + 0x10], ebx
mov ebp, dword [esp + 0x18]
lea ecx, [esp + 0x10]
mov byte [esp + 0x240], 5
call fcn.00401cf0
push eax
push ebp
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
jne 0x40280d
mov ecx, dword [esp + 0x10]
lea eax, [esi + 0x40]
push eax
push 2
push ecx
call fcn.00407230
add esp, 0xc
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40281b
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
push 0x41c5a8
push 1
push edi
call sub.msi.dll_MsiReinstallFeatureW
mov edx, dword [esp + 0x18]
push edi
push edx
call sub.msi.dll_MsiViewModify
test eax, eax
jne 0x40287c
mov dword [esp + 0x10], ebx
mov ebp, dword [esp + 0x18]
lea ecx, [esp + 0x10]
mov byte [esp + 0x240], 6
call fcn.00401cf0
push eax
push ebp
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
jne 0x40286e
lea eax, [esi + 0x14]
push eax
mov eax, dword [esp + 0x14]
push 2
push eax
call fcn.00407230
add esp, 0xc
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40287c
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp edi, ebx
je 0x402886
push edi
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x402894
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, dword [esp + 0x24]
cmp eax, ebx
mov byte [esp + 0x240], 1
je 0x4028aa
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, dword [esi + 8]
push 0x1450
push eax
lea edi, [esi + 0x28]
push edi
push ebx
push str.MsiMajorVersion
push 0x41c494
call fcn.00406cd0
add esp, 0x18
test eax, eax
jne 0x4028da
push 0x41c5a4
mov ecx, edi
call fcn.004015a0
mov eax, dword [esi + 8]
push 0x1450
push eax
lea edi, [esi + 0x2c]
push edi
push ebx
push str.MsiMinorVersion
push 0x41c494
call fcn.00406cd0
add esp, 0x18
test eax, eax
jne 0x40290a
push 0x41c5a0
mov ecx, edi
call fcn.004015a0
mov eax, dword [esi + 8]
push 0x1450
push eax
lea edi, [esi + 0x30]
push edi
push ebx
push str.MsiBuildNumber
push 0x41c494
call fcn.00406cd0
add esp, 0x18
test eax, eax
jne 0x40293a
push 0x41c5a0
mov ecx, edi
call fcn.004015a0
mov eax, dword [esi + 8]
push 0x1450
push eax
add esi, 0x34
push esi
push ebx
push str.TempFilePrefix
push 0x41c494
call fcn.00406cd0
add esp, 0x18
cmp eax, ebx
jne 0x4029ea
movzx edx, word [0x424780]
lea ecx, [esp + 0x20]
push ecx
push edx
mov dword [esp + 0x28], ebx
call fcn.00406bc0
mov eax, dword [esp + 0x28]
mov ecx, dword [0x424728]
add esp, 8
push eax
push 0x76
push ecx
mov ecx, esi
call fcn.00401410
mov edx, dword [esi]
cmp dword [edx - 0xc], ebx
jne 0x4029ea
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x240], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4029bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x240], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4029e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x402a3e
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x240], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402a10
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x240], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402a39
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0x238]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x234
ret