Function at 0x4080b9
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
mov dword [esi + 0xcc], eax
call fcn.0040d7eb
test al, al
jne 0x4080e0
push 2
jmp 0x40818e
mov eax, dword [esi + 4]
test eax, eax
je 0x408135
mov ecx, dword [esi + 8]
sub ecx, eax
test ecx, 0xfffffff8
je 0x408135
push str.LANGUAGE
lea ecx, [ebp + 8]
call fcn.0040168c
mov edi, dword [esi + 4]
lea eax, [ebp + 8]
push eax
lea ecx, [esi + 0x30]
call fcn.0040f10f
mov ebx, eax
mov eax, dword [edi]
test eax, eax
je 0x40811b
inc dword [eax + 4]
mov edi, dword [edi]
mov ecx, ebx
call fcn.0040178c
lea ecx, [ebp + 8]
mov dword [ebx], edi
call fcn.0040178c
mov ecx, esi
call fcn.0040d630
lea ebx, [esi + 0x24]
lea edi, [esi + 0x18]
xor eax, eax
mov ecx, edi
mov dword [ebx], eax
mov dword [esi + 0x28], eax
mov dword [ebp - 0x2c], eax
call fcn.0040917d
test eax, eax
je 0x408169
mov eax, dword [edi]
test eax, eax
je 0x408159
lea edi, [eax + 0xd]
lea eax, [esi + 0x28]
mov ecx, esi
push eax
push ebx
push edi
call fcn.00407556
mov dword [ebp - 0x2c], eax
push esi
push 0x408d4d
push 0
push str.IDD_BACKGROUND
push dword [esi + 0xcc]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
test eax, eax
mov dword [esi + 0xd0], eax
jne 0x408194
push 1
pop eax
jmp 0x408bbc
cmp dword [ebp - 0x2c], 0
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
je 0x4081c4
push 0x41e
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push dword [ebp - 0x2c]
mov ebx, eax
push 0
push 0x172
push ebx
call edi
push 5
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x69
push dword [esi + 0xcc]
call dword [sym.imp.USER32.dll_LoadIconA]
push eax
push 1
push 0x80
push dword [esi + 0xd0]
call edi
push str.APP_NAME
lea ecx, [ebp + 8]
call fcn.0040168c
lea eax, [ebp + 8]
lea ecx, [esi + 0x30]
push eax
call fcn.0040f10f
mov ecx, dword [eax]
test ecx, ecx
je 0x408204
lea eax, [ecx + 0xd]
push eax
lea eax, [ebp - 8]
push str._s___Setup
push eax
call fcn.00407807
mov ecx, dword [eax]
add esp, 0xc
test ecx, ecx
je 0x40821f
lea eax, [ecx + 0xd]
push eax
push 0
push 0xc
push dword [esi + 0xd0]
call edi
lea ecx, [ebp - 8]
call fcn.0040178c
lea ecx, [ebp + 8]
call fcn.0040178c
mov eax, dword [esi + 0xd8]
test eax, eax
mov dword [ebp + 8], eax
je 0x40824c
inc dword [eax + 4]
mov edi, str.PUBLISHER
lea ecx, [ebp - 4]
push edi
call fcn.0040168c
lea eax, [ebp - 4]
lea ecx, [esi + 0x30]
push eax
call fcn.0040f10f
mov ecx, eax
call fcn.0040917d
lea ecx, [ebp - 4]
mov dword [ebp - 8], eax
call fcn.0040178c
cmp dword [ebp - 8], 0
mov ebx, 0x42935c
je 0x4082df
push edi
lea ecx, [ebp - 4]
call fcn.0040168c
lea eax, [ebp - 4]
lea ecx, [esi + 0x30]
push eax
call fcn.0040f10f
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x34]
push ebx
push eax
lea ecx, [ebp + 8]
call fcn.00409100
mov ecx, eax
call fcn.00409069
mov ecx, dword [eax]
test ecx, ecx
je 0x4082ba
inc dword [ecx + 4]
mov edi, dword [eax]
lea ecx, [ebp + 8]
call fcn.0040178c
lea ecx, [ebp - 8]
mov dword [ebp + 8], edi
call fcn.0040178c
lea ecx, [ebp - 0x34]
call fcn.0040178c
lea ecx, [ebp - 4]
call fcn.0040178c
lea eax, [ebp - 8]
push ebx
push eax
lea ecx, [ebp + 8]
call fcn.00409100
mov ecx, dword [eax]
test ecx, ecx
je 0x4082f5
inc dword [ecx + 4]
mov edi, dword [eax]
lea ecx, [ebp + 8]
call fcn.0040178c
lea ecx, [ebp - 8]
mov dword [ebp + 8], edi
call fcn.0040178c
mov edi, str.APP_NAME
lea ecx, [ebp - 4]
push edi
call fcn.0040168c
lea eax, [ebp - 4]
lea ecx, [esi + 0x30]
push eax
call fcn.0040f10f
mov ecx, eax
call fcn.0040917d
lea ecx, [ebp - 4]
mov dword [ebp - 8], eax
call fcn.0040178c
cmp dword [ebp - 8], 0
je 0x408376
push edi
lea ecx, [ebp - 4]
call fcn.0040168c
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 4]
push eax
lea ecx, [esi + 0x30]
call fcn.0040f10f
mov ecx, eax
call fcn.00409100
push eax
lea ecx, [ebp + 8]
call fcn.00408f7d
lea ecx, [ebp - 8]
call fcn.0040178c
lea ecx, [ebp - 4]
call fcn.0040178c
push str.TARGET_DIR
lea ecx, [ebp - 4]
call fcn.0040168c
lea eax, [ebp - 4]
lea ecx, [esi + 0x30]
push eax
call fcn.0040f10f
mov ebx, dword [ebp + 8]
mov edi, eax
test ebx, ebx
je 0x40839e
inc dword [ebx + 4]
mov ebx, dword [ebp + 8]
mov ecx, edi
call fcn.0040178c
lea ecx, [ebp - 4]
mov dword [edi], ebx
call fcn.0040178c
lea ecx, [ebp + 8]
call fcn.0040178c
push 5
push dword [esi + 0xd0]
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [ebp + 8], 0
push 0x118
lea ecx, [esi + 0xd4]
call fcn.00420040
mov byte [ebp - 0x19], al
mov byte [ebp - 0x11], 1
mov edi, 0x40af54
mov eax, dword [0x426438]
and dword [ebp - 0x28], 0
test eax, eax
je 0x40840c
mov ecx, 0x426438
cmp eax, dword [esi + 0xf4]
je 0x40840c
mov eax, dword [ecx + 8]
inc dword [ebp - 0x28]
add ecx, 8
test eax, eax
jne 0x4083f7
and dword [esi + 0xf8], 0
mov eax, dword [ebp - 0x28]
cmp byte [ebp - 0x19], 0
mov ebx, eax
jne 0x408434
push esi
push edi
push dword [esi + 0xd0]
shl ebx, 3
mov dword [ebp - 0x34], ebx
push dword [ebx + 0x42643c]
jmp 0x40849e
shl ebx, 3
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x34], ebx
push dword [ebx + 0x42643c]
call fcn.0040168c
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x90]
call fcn.0040adfa
mov ecx, dword [eax]
test ecx, ecx
je 0x40845f
lea eax, [ecx + 0xd]
push esi
push edi
push dword [esi + 0xd0]
push eax
push dword [esi + 0xcc]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
lea ecx, [ebp - 0x90]
mov dword [ebp - 0xc], eax
call fcn.0040178c
lea ecx, [ebp - 0x54]
call fcn.0040178c
cmp dword [ebp - 0xc], 0
jne 0x4084b5
push esi
push edi
push dword [esi + 0xd0]
push dword [ebx + 0x42643c]
push dword [esi + 0xcc]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
test eax, eax
mov dword [ebp - 0xc], eax
je 0x408b85
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_SetFocus]
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [ebp + 8], 0
je 0x4084d6
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [esi + 0xd0]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [esi + 0xf4], 6
jne 0x408acd
push str.TARGET_DIR
lea ecx, [ebp - 0x58]
call fcn.0040168c
lea eax, [ebp - 0x10]
push str.install.log
lea edi, [esi + 0x1c]
push eax
lea eax, [ebp - 0x6c]
push edi
push eax
lea eax, [ebp - 0x58]
lea ebx, [esi + 0x30]
push eax
mov ecx, ebx
call fcn.0040f10f
mov ecx, eax
call fcn.00409069
mov ecx, eax
call fcn.00409100
lea ecx, [ebp - 0x6c]
call fcn.0040178c
lea ecx, [ebp - 0x58]
call fcn.0040178c
push str.TARGET_DIR
lea ecx, [ebp - 0x60]
call fcn.0040168c
lea eax, [ebp - 0x18]
push str.IIUninst.exe
push eax
lea eax, [ebp - 0x74]
push edi
push eax
lea eax, [ebp - 0x60]
mov ecx, ebx
push eax
call fcn.0040f10f
mov ecx, eax
call fcn.00409069
mov ecx, eax
call fcn.00409100
lea ecx, [ebp - 0x74]
call fcn.0040178c
lea ecx, [ebp - 0x60]
call fcn.0040178c
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
test eax, eax
je 0x40858a
lea ecx, [eax + 0xd]
push 0
push 0
push 1
xor dl, dl
call fcn.00412ebd
lea eax, [ebp - 0x70]
push 1
push eax
lea edi, [esi + 0x104]
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
call fcn.0040fa09
push 0x4949
mov ecx, edi
call fcn.004100d7
push str.APP_NAME
lea ecx, [ebp - 0x5c]
call fcn.0040168c
lea eax, [ebp - 0x5c]
mov ecx, ebx
push eax
call fcn.0040f10f
mov ecx, dword [eax]
test ecx, ecx
je 0x4085db
lea eax, [ecx + 0xd]
push eax
push 0x800
mov ecx, edi
call fcn.0041024d
lea ecx, [ebp - 0x5c]
call fcn.0040178c
push str.DEVELOPER
lea ecx, [ebp - 0x68]
call fcn.0040168c
lea eax, [ebp - 0x68]
mov ecx, ebx
push eax
call fcn.0040f10f
mov ecx, dword [eax]
test ecx, ecx
je 0x408611
lea eax, [ecx + 0xd]
push eax
push 0x801
mov ecx, edi
call fcn.0041024d
lea ecx, [ebp - 0x68]
call fcn.0040178c
push str.PUBLISHER
lea ecx, [ebp - 0x48]
call fcn.0040168c
lea eax, [ebp - 0x48]
mov ecx, ebx
push eax
call fcn.0040f10f
mov ecx, dword [eax]
test ecx, ecx
je 0x408647
lea eax, [ecx + 0xd]
push eax
push 0x802
mov ecx, edi
call fcn.0041024d
lea ecx, [ebp - 0x48]
call fcn.0040178c
push str.LANGUAGE
lea ecx, [ebp - 0x64]
call fcn.0040168c
lea eax, [ebp - 0x64]
mov ecx, ebx
push eax
call fcn.0040f10f
mov ecx, dword [eax]
test ecx, ecx
je 0x40867d
lea eax, [ecx + 0xd]
push eax
push 0x803
mov ecx, edi
call fcn.0041024d
lea ecx, [ebp - 0x64]
call fcn.0040178c
push dword [ebp - 0xc]
mov ecx, esi
call fcn.00409192
test al, al
mov byte [ebp + 0xb], al
je 0x4087fe
xor edi, edi
push str.APP_NAME
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
call fcn.0040168c
lea eax, [ebp - 0x4c]
mov ecx, ebx
push eax
call fcn.0040f10f
mov ecx, dword [eax]
cmp ecx, edi
je 0x4086d3
lea eax, [ecx + 0xd]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
lea eax, [ebp - 0x84]
push str.HKEY_LOCAL_MACHINE_s_s
push eax
call fcn.00407807
mov ecx, dword [eax]
add esp, 0x10
cmp ecx, edi
je 0x4086f6
inc dword [ecx + 4]
mov edi, dword [eax]
lea ecx, [ebp - 0x44]
call fcn.0040178c
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x44], edi
call fcn.0040178c
lea ecx, [ebp - 0x4c]
call fcn.0040178c
push str.DisplayName
lea ecx, [ebp - 0x40]
call fcn.00407845
push str.APP_NAME
lea ecx, [ebp - 0x50]
call fcn.0040168c
lea eax, [ebp - 0x50]
mov ecx, ebx
push eax
call fcn.0040f10f
mov ecx, dword [eax]
test ecx, ecx
je 0x408744
inc dword [ecx + 4]
mov edi, dword [eax]
lea ecx, [ebp - 0x3c]
call fcn.0040178c
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], edi
call fcn.0040178c
and dword [ebp - 0x38], 0
lea eax, [ebp - 0x44]
lea edi, [esi + 0x70]
push eax
mov ecx, edi
push dword [edi + 8]
call fcn.0040f9af
push str.UninstallString
lea ecx, [ebp - 0x40]
call fcn.00407845
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
test eax, eax
je 0x408788
lea ecx, [eax + 0xd]
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x408794
lea eax, [ebp - 0x18]
jmp 0x408797
add eax, 0xd
push ecx
push eax
lea eax, [ebp - 0x7c]
push str.__s___s
push eax
call fcn.00407807
mov ecx, dword [eax]
add esp, 0x10
test ecx, ecx
je 0x4087b3
inc dword [ecx + 4]
mov ebx, dword [eax]
lea ecx, [ebp - 0x3c]
call fcn.0040178c
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x3c], ebx
call fcn.0040178c
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
push dword [edi + 8]
call fcn.0040f9af
push dword [ebp - 0xc]
mov ecx, esi
call fcn.00409f72
lea ecx, [ebp - 0x44]
mov byte [ebp + 0xb], al
call fcn.0040eb19
cmp byte [ebp + 0xb], 0
je 0x4087fe
push dword [ebp - 0xc]
mov ecx, esi
call fcn.0040a3eb
mov byte [ebp + 0xb], al
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x40880a
lea eax, [ebp - 0x10]
jmp 0x40880d
add eax, 0xd
push eax
mov ecx, esi
call fcn.00408bc3
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x408821
lea eax, [ebp - 0x10]
jmp 0x408824
add eax, 0xd
mov ebx, 0x1100
lea edi, [esi + 0x104]
push eax
push ebx
mov ecx, edi
call fcn.0041024d
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x408844
lea eax, [ebp - 0x18]
jmp 0x408847
add eax, 0xd
push eax
push ebx
mov ecx, edi
call fcn.0041024d
cmp byte [ebp + 0xb], 0
je 0x4088de
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x408866
lea eax, [ebp - 0x18]
jmp 0x408869
add eax, 0xd
push eax
mov ecx, esi
call fcn.00408bc3
push 0
push str.iiuninst.exe
call fcn.00413c78
mov edi, eax
test edi, edi
je 0x4088de
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x10]
mov ebx, eax
push ebx
call fcn.00414e25
mov edx, dword [edi]
pop ecx
push ebx
push eax
mov ecx, edi
mov dword [ebp - 0x20], eax
call dword [edx + 8]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4088b2
lea eax, [ebp - 0x18]
jmp 0x4088b5
add eax, 0xd
push 1
push eax
call fcn.00413c78
mov edi, eax
test edi, edi
je 0x4088d5
mov eax, dword [edi]
push ebx
push dword [ebp - 0x20]
mov ecx, edi
call dword [eax + 0x18]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
push dword [ebp - 0x20]
call fcn.004148d0
pop ecx
mov eax, dword [esi + 0x128]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], eax
call fcn.0041009b
lea ebx, [esi + 0x124]
mov eax, dword [ebp - 0x20]
add eax, 0xc
mov ecx, dword [eax]
test ecx, ecx
je 0x408904
lea eax, [ecx + 0xd]
lea edi, [esi + 0x104]
push eax
push 0x1200
mov ecx, edi
call fcn.0041024d
lea eax, [ebp - 0x8c]
mov ecx, ebx
push eax
call fcn.0040ff6e
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x8c]
je 0x40893a
lea ecx, [ebp - 0x20]
call fcn.0041009b
jmp 0x4088f5
mov ecx, edi
call fcn.00410181
mov ecx, edi
call fcn.00410221
cmp dword [ebp - 0x30], 0
je 0x4089b6
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x40895a
lea eax, [ebp - 0x10]
jmp 0x40895d
add eax, 0xd
push 1
push eax
call fcn.00413c78
mov edi, eax
test edi, edi
je 0x40897f
push dword [ebp - 0x70]
mov eax, dword [edi]
mov ecx, edi
push dword [ebp - 0x30]
call dword [eax + 0x18]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [esi + 0x114]
push dword [ebp - 0x30]
lea ecx, [esi + 0x114]
call dword [eax + 4]
and dword [ebp - 0x30], 0
cmp byte [ebp + 0xb], 0
jne 0x4089c0
mov ecx, dword [ebp - 0x10]
xor eax, eax
cmp ecx, eax
jne 0x4089a9
lea ecx, [ebp - 0x10]
jmp 0x4089ac
add ecx, 0xd
push eax
push eax
push eax
xor dl, dl
call fcn.00412ebd
cmp byte [ebp + 0xb], 0
je 0x408a96
xor ebx, ebx
mov eax, dword [esi + 0xa8]
test eax, eax
je 0x408a96
mov ecx, dword [esi + 0xac]
sub ecx, eax
sar ecx, 3
cmp ebx, ecx
jae 0x408a96
mov ecx, dword [eax + ebx*8]
lea eax, [eax + ebx*8]
test ecx, ecx
mov dword [ebp - 4], ecx
je 0x4089f3
inc dword [ecx + 4]
mov eax, dword [eax + 4]
test eax, eax
mov dword [ebp - 0x24], eax
je 0x408a00
inc dword [eax + 4]
lea eax, [ebp - 4]
mov ecx, esi
push eax
push dword [ebp - 0xc]
call fcn.00409c36
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
push dword [ebp - 0xc]
call fcn.00409c36
lea eax, [ebp - 0x24]
lea ecx, [ebp - 4]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x80]
push 0x4292a0
push eax
call fcn.00409100
mov ecx, eax
call fcn.00409069
mov ecx, dword [eax]
test ecx, ecx
je 0x408a45
inc dword [ecx + 4]
mov edi, dword [eax]
lea ecx, [ebp - 0x24]
call fcn.0040178c
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x24], edi
call fcn.0040178c
lea ecx, [ebp - 0x80]
call fcn.0040178c
push 0
lea ecx, [ebp - 0x24]
call fcn.00408d41
push eax
lea ecx, [ebp - 4]
call fcn.00408d41
push eax
push 0
call fcn.00415021
add esp, 0x10
lea ecx, [ebp - 0x24]
call fcn.0040178c
lea ecx, [ebp - 4]
call fcn.0040178c
inc ebx
jmp 0x4089c2
lea ecx, [ebp - 0x18]
call fcn.0040178c
lea ecx, [ebp - 0x10]
call fcn.0040178c
mov ebx, dword [ebp - 0x34]
mov edi, 0x40af54
mov eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0xf8]
dec eax
je 0x408afd
dec eax
je 0x408ae4
dec eax
dec eax
je 0x408b85
jmp 0x408b7b
cmp dword [esi + 0xf8], 0
jne 0x408aae
push 0
mov ecx, esi
push dword [ebp - 0xc]
call fcn.00408ec9
jmp 0x408acd
mov ebx, dword [ebx + 0x426440]
test ebx, ebx
mov dword [esi + 0xf4], ebx
jne 0x408b7b
and byte [ebp - 0x11], bl
jmp 0x408b7b
mov ebx, dword [ebx + 0x426430]
cmp ebx, 2
mov dword [esi + 0xf4], ebx
jne 0x408b7b
push str.LANGUAGE
lea ecx, [ebp - 8]
call fcn.0040168c
lea eax, [ebp - 8]
push 0
push eax
lea ecx, [esi + 0x30]
call fcn.0040f10f
mov ecx, eax
call fcn.00408d41
push eax
lea eax, [ebp - 0x88]
push str.license__s.txt
push eax
call fcn.00407807
add esp, 0xc
mov ecx, eax
call fcn.00408d41
push eax
call fcn.00413c78
lea ecx, [ebp - 0x88]
mov ebx, eax
call fcn.0040178c
lea ecx, [ebp - 8]
call fcn.0040178c
test ebx, ebx
jne 0x408b7b
mov eax, dword [ebp - 0x28]
mov eax, dword [eax*8 + str.MS_Gothic]
mov dword [esi + 0xf4], eax
cmp byte [ebp - 0x11], 0
jne 0x4083e5
cmp dword [ebp + 8], 0
je 0x408b94
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [esi + 0xd0]
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp dword [ebp - 0x2c], 0
je 0x408baf
push dword [ebp - 0x2c]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp + 0xc]
mov al, byte [esi + 0x100]
mov byte [ecx], al
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8