Function at 0x404464
Capabilities:
Reference sql statements

Disassembly:
push 0xb8
mov eax, 0x406712
call fcn.00405e37
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [0x40b0e8]
cmp dword [eax + 0x80], ebx
je 0x40449d
cmp byte [eax + 0x24], bl
je 0x404495
push str._I___checkVer__Not_installing
call fcn.00404212
pop ecx
mov al, 1
call fcn.00405e93
ret
lea eax, [ebp - 0xa4]
push eax
push ebx
push ecx
call dword [0x40b0e4]
cmp eax, ebx
je 0x4044be
push eax
push str._E___checkVer__Could_not_open_pkg:__u
call fcn.00404212
pop ecx
jmp 0x404494
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x78], eax
xor ecx, ecx
cmp eax, ebx
setne cl
mov byte [ebp - 0x74], cl
mov edi, dword [0x40b0d4]
mov dword [ebp - 0x70], edi
mov byte [ebp - 4], 1
mov eax, dword [0x40b0e8]
cmp eax, ebx
je 0x4044f7
cmp byte [eax + 0x24], bl
je 0x4044f7
push str._I___checkVer__Database_opened
call fcn.00404212
pop ecx
lea eax, [ebp - 0x98]
push eax
push str.SELECT_Value_FROM_Property_WHERE_PropertyProductVersion
push dword [ebp - 0xa4]
call dword [0x40b0f8]
cmp eax, ebx
je 0x404536
push eax
push str._E___checkVer__Could_not_open_view:__u
call fcn.00404212
pop ecx
pop ecx
mov byte [ebp - 4], bl
cmp byte [ebp - 0x74], bl
je 0x404495
push dword [ebp - 0x78]
call edi
jmp 0x404495
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x84], eax
xor ecx, ecx
cmp eax, ebx
setne cl
mov byte [ebp - 0x80], cl
mov esi, dword [0x40b0d4]
mov dword [ebp - 0x7c], esi
mov byte [ebp - 4], 2
mov eax, dword [0x40b0e8]
cmp eax, ebx
je 0x404572
cmp byte [eax + 0x24], bl
je 0x404572
push str._I___checkVer__View_opened
call fcn.00404212
pop ecx
push ebx
push dword [ebp - 0x98]
call dword [0x40b0e0]
cmp eax, ebx
je 0x4045a6
push eax
push str._E___checkVer__Could_not_exec_view:__u
call fcn.00404212
pop ecx
pop ecx
mov byte [ebp - 4], 1
cmp byte [ebp - 0x80], bl
je 0x404520
push dword [ebp - 0x84]
call esi
jmp 0x404520
mov eax, dword [0x40b0e8]
cmp eax, ebx
je 0x4045bf
cmp byte [eax + 0x24], bl
je 0x4045bf
push str._I___checkVer__View_exec
call fcn.00404212
pop ecx
lea eax, [ebp - 0xa0]
push eax
push dword [ebp - 0x98]
call dword [0x40b0dc]
cmp eax, ebx
jne 0x404583
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x90], eax
xor ecx, ecx
cmp eax, ebx
setne cl
mov byte [ebp - 0x8c], cl
mov edi, dword [0x40b0d4]
mov dword [ebp - 0x88], edi
mov byte [ebp - 4], 3
mov eax, dword [0x40b0e8]
cmp eax, ebx
je 0x404618
cmp byte [eax + 0x24], bl
je 0x404618
push str._I___checkVer__Record_fetched
call fcn.00404212
pop ecx
mov dword [ebp - 0x9c], 0x100
lea eax, [ebp - 0x9c]
push eax
mov esi, 0x40b100
push esi
push 1
push dword [ebp - 0xa0]
call dword [0x40b0d8]
cmp eax, ebx
je 0x40468b
push eax
push str._E___checkVer__Could_not_get_version_str:__u
call fcn.00404212
pop ecx
pop ecx
mov byte [ebp - 4], 2
cmp byte [ebp - 0x8c], bl
je 0x404662
push dword [ebp - 0x90]
call edi
mov byte [ebp - 4], 1
cmp byte [ebp - 0x80], bl
je 0x404674
push dword [ebp - 0x84]
call dword [ebp - 0x7c]
mov byte [ebp - 4], bl
cmp byte [ebp - 0x74], bl
je 0x404495
push dword [ebp - 0x78]
call dword [ebp - 0x70]
jmp 0x404495
mov eax, dword [0x40b0e8]
cmp eax, ebx
je 0x4046a6
cmp byte [eax + 0x24], bl
je 0x4046a6
push esi
push str._I___checkVer__ProductVersion__s
call fcn.00404212
pop ecx
pop ecx
push 0xc
push ebx
lea eax, [ebp - 0x60]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov edi, esi
mov dword [ebp - 0x94], ebx
cmp byte [edi], bl
je 0x40470e
push 0x2e
push edi
call dword [sym.imp.MSVCR100.dll_strchr]
pop ecx
pop ecx
mov dword [ebp - 0xa8], eax
cmp eax, ebx
je 0x4046d8
mov byte [eax], bl
push edi
call dword [sym.imp.MSVCR100.dll_atoi]
pop ecx
mov ecx, dword [ebp - 0x94]
mov dword [ebp + ecx*4 - 0x60], eax
inc dword [ebp - 0x94]
cmp dword [ebp - 0x94], 2
jg 0x40470e
cmp dword [ebp - 0xa8], ebx
je 0x40470e
push edi
call sub.MSVCR100.dll_strlen
pop ecx
lea edi, [edi + eax + 1]
jmp 0x4046bd
mov eax, dword [0x40b0e8]
cmp eax, ebx
je 0x404732
cmp byte [eax + 0x24], bl
je 0x404732
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
push str._I___checkVer__Parsed_version:__d._d._d
call fcn.00404212
add esp, 0x10
lea eax, [ebp - 0x98]
push eax
push str.SELECT_Value_FROM_Property_WHERE_PropertyProductCode
push dword [ebp - 0xa4]
call dword [0x40b0f8]
cmp eax, ebx
je 0x40477c
push eax
push str._E___checkVer__Could_not_open_view:__u
call fcn.00404212
pop ecx
pop ecx
mov byte [ebp - 4], 2
cmp byte [ebp - 0x8c], bl
je 0x404662
push dword [ebp - 0x90]
call dword [ebp - 0x88]
jmp 0x404662
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xb4], eax
xor ecx, ecx
cmp eax, ebx
setne cl
mov byte [ebp - 0xb0], cl
mov eax, dword [0x40b0d4]
mov dword [ebp - 0xac], eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0xb4]
push eax
lea ecx, [ebp - 0x84]
call fcn.00404338
mov byte [ebp - 4], 3
cmp byte [ebp - 0xb0], bl
je 0x4047ce
push dword [ebp - 0xb4]
call dword [ebp - 0xac]
mov eax, dword [0x40b0e8]
cmp eax, ebx
je 0x4047e7
cmp byte [eax + 0x24], bl
je 0x4047e7
push str._I___checkVer__View_opened
call fcn.00404212
pop ecx
push ebx
push dword [ebp - 0x98]
call dword [0x40b0e0]
cmp eax, ebx
je 0x404803
push eax
push str._E___checkVer__Could_not_exec_view:__u
jmp 0x404754
mov eax, dword [0x40b0e8]
cmp eax, ebx
je 0x40481c
cmp byte [eax + 0x24], bl
je 0x40481c
push str._I___checkVer__View_exec
call fcn.00404212
pop ecx
lea eax, [ebp - 0xa0]
push eax
push dword [ebp - 0x98]
call dword [0x40b0dc]
cmp eax, ebx
jne 0x4047f8
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xc0], eax
xor ecx, ecx
cmp eax, ebx
setne cl
mov byte [ebp - 0xbc], cl
mov eax, dword [0x40b0d4]
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0xc0]
push eax
lea ecx, [ebp - 0x90]
call fcn.00404338
mov byte [ebp - 4], 3
cmp byte [ebp - 0xbc], bl
je 0x404885
push dword [ebp - 0xc0]
call dword [ebp - 0xb8]
mov eax, dword [0x40b0e8]
cmp eax, ebx
je 0x40489e
cmp byte [eax + 0x24], bl
je 0x40489e
push str._I___checkVer__Record_fetched
call fcn.00404212
pop ecx
mov dword [ebp - 0x9c], 0x100
lea eax, [ebp - 0x9c]
push eax
push esi
push 1
push dword [ebp - 0xa0]
call dword [0x40b0d8]
cmp eax, ebx
je 0x4048cd
push eax
push str._E___checkVer__Could_not_get_code_str:__u
jmp 0x404754
mov eax, dword [0x40b0e8]
cmp eax, ebx
je 0x4048e8
cmp byte [eax + 0x24], bl
je 0x4048e8
push esi
push str._I___checkVer__ProductCode__s
call fcn.00404212
pop ecx
pop ecx
mov dword [ebp - 0x9c], 0x40
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x54]
push eax
push str.VersionString
push esi
call dword [0x40b0ec]
cmp eax, 0x645
je 0x40475b
cmp eax, ebx
je 0x404923
push eax
push str._E___checkVer__Could_not_get_installed_version:__u
jmp 0x404754
mov eax, dword [0x40b0e8]
cmp eax, ebx
je 0x404941
cmp byte [eax + 0x24], bl
je 0x404941
lea eax, [ebp - 0x54]
push eax
push str._I___checkVer__ProductVersion__s
call fcn.00404212
pop ecx
pop ecx
push 0xc
push ebx
lea eax, [ebp - 0x6c]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea esi, [ebp - 0x54]
mov dword [ebp - 0x94], ebx
cmp byte [esi], bl
je 0x4049a2
push 0x2e
push esi
call dword [sym.imp.MSVCR100.dll_strchr]
pop ecx
pop ecx
mov edi, eax
cmp edi, ebx
je 0x404970
mov byte [edi], bl
push esi
call dword [sym.imp.MSVCR100.dll_atoi]
pop ecx
mov ecx, dword [ebp - 0x94]
mov dword [ebp + ecx*4 - 0x6c], eax
inc dword [ebp - 0x94]
cmp dword [ebp - 0x94], 2
jg 0x4049a2
cmp edi, ebx
je 0x4049a2
push esi
call sub.MSVCR100.dll_strlen
pop ecx
lea esi, [esi + eax + 1]
jmp 0x404959
mov eax, dword [0x40b0e8]
cmp eax, ebx
je 0x4049cb
cmp byte [eax + 0x24], bl
je 0x4049cb
push dword [ebp - 0x64]
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
push str._I___checkVer__Parsed_version:__d._d._d
call fcn.00404212
add esp, 0x10
mov eax, dword [0x40b0e8]
xor esi, esi
mov dword [ebp - 0x94], esi
cmp esi, 3
jge 0x404ab4
mov ecx, dword [ebp + esi*4 - 0x60]
cmp ecx, dword [ebp + esi*4 - 0x6c]
jne 0x4049e9
inc esi
jmp 0x4049cd
jge 0x404a54
cmp eax, ebx
je 0x404a04
cmp byte [eax + 0x24], bl
je 0x404a04
push str._I___checkVer__Downgrade
call fcn.00404212
pop ecx
mov eax, dword [0x40b0e8]
cmp byte [eax + 0x86], bl
je 0x404a3e
cmp byte [eax + 0x24], bl
je 0x404a21
push str._I___checkVer__Will_downgrade
call fcn.00404212
pop ecx
mov eax, dword [0x40b0e8]
mov esi, str._REINSTALLALL_REINSTALLMODEvdmus
lea edi, [eax + 4]
push esi
call sub.MSVCR100.dll_strlen
pop ecx
push eax
push esi
mov ecx, edi
call fcn.004029b0
jmp 0x40475b
cmp byte [eax + 0x7c], bl
jne 0x404ab1
push 0x1040
push str.Check_Version
push str.Product_already_installed_and_downgrade__install_over_a_newer_version__is_NOT_allowed__use__down_to_allow_downgrades_.
jmp 0x404aa5
cmp eax, ebx
je 0x404a6d
cmp byte [eax + 0x24], bl
je 0x404a6d
push str._I___checkVer__Upgrade
call fcn.00404212
pop ecx
mov eax, dword [0x40b0e8]
cmp byte [eax + 0x85], bl
je 0x404a91
cmp byte [eax + 0x24], bl
je 0x404a8a
push str._I___checkVer__Will_upgrade
call fcn.00404212
pop ecx
mov eax, dword [0x40b0e8]
mov esi, str._REINSTALLALL_REINSTALLMODEvomus
jmp 0x404a26
cmp byte [eax + 0x7c], bl
jne 0x404ab1
push 0x1040
push str.Check_Version
push str.Product_already_installed_and_upgrade_is_NOT_allowed.
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x40b0e8]
cmp esi, 3
jne 0x404afe
cmp eax, ebx
je 0x404acf
cmp byte [eax + 0x24], bl
je 0x404acf
push str._I___checkVer__Already_installed
call fcn.00404212
pop ecx
mov eax, dword [0x40b0e8]
cmp byte [eax + 0x87], bl
je 0x404ae3
cmp byte [eax + 0x24], bl
je 0x404a8a
push str._I___checkVer__Will_reinstall
jmp 0x404a7f
cmp byte [eax + 0x7c], bl
jne 0x404afe
push 0x1040
push str.Check_Version
push str.Product_already_installed.
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov byte [ebp - 4], 2
cmp byte [ebp - 0x8c], bl
je 0x404b16
push dword [ebp - 0x90]
call dword [ebp - 0x88]
mov byte [ebp - 4], 1
cmp byte [ebp - 0x80], bl
je 0x404b28
push dword [ebp - 0x84]
call dword [ebp - 0x7c]
mov byte [ebp - 4], bl
cmp byte [ebp - 0x74], bl
je 0x404b36
push dword [ebp - 0x78]
call dword [ebp - 0x70]
xor al, al
jmp 0x404497