Function at 0x435a24
Capabilities:
Check if file exists
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x48c]
sub esp, 0x504
mov eax, dword [0x4b7f10]
xor eax, ebp
mov dword [ebp + 0x488], eax
mov eax, dword [ebp + 0x494]
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], ebx
call fcn.0041e3fd
mov ecx, edi
call fcn.0042d282
test eax, eax
jne 0x435a6d
xor eax, eax
inc eax
jmp 0x4363f1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push str.RICHED20.DLL
mov dword [edi + 0x128], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, edi
call fcn.00432656
push ebx
push ecx
mov eax, esp
push ebx
push ebx
push ebx
mov dword [eax], ebx
push ecx
mov eax, esp
mov dword [eax], ebx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
lea ecx, [edi + 8]
call fcn.0040dabe
push ebx
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [edi + 0x90]
push eax
call fcn.00439edd
mov ecx, eax
call fcn.0043a1ab
test al, al
je 0x435a65
call fcn.00439edd
mov ecx, eax
call fcn.00439cf5
push str.InstallResource.zip
lea ecx, [ebp + 0x5c]
call fcn.004018f6
lea eax, [ebp + 0x5c]
push eax
call fcn.00439edd
mov ecx, eax
call fcn.0043a2aa
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp + 0x5c]
call fcn.00401a58
xor eax, eax
push 0x206
mov word [ebp + 0x280], ax
lea eax, [ebp + 0x282]
push ebx
push eax
call fcn.0046cbb0
push 0x208
lea eax, [ebp + 0x280]
push ebx
push eax
call fcn.0046cbb0
add esp, 0x18
call fcn.00439edd
mov ecx, eax
call fcn.00439b68
cmp dword [eax + 0x18], 8
jb 0x435b46
mov eax, dword [eax + 4]
jmp 0x435b49
add eax, 4
push str.InstallConfig.xml
push eax
lea eax, [ebp + 0x280]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp + 0x280]
push eax
call fcn.00402999
mov ecx, eax
call fcn.00402b75
test eax, eax
je 0x435b7a
mov eax, esi
jmp 0x4363f1
mov ecx, edi
call fcn.0043274a
lea eax, [edi + 0x74]
push eax
lea eax, [edi + 0x58]
push eax
call fcn.0043cb31
mov ecx, eax
call fcn.0043c6e2
mov ecx, edi
call fcn.004321cb
lea eax, [ebp - 0x1f]
push eax
mov byte [ebp - 0x1f], bl
call fcn.00404069
mov ecx, eax
call fcn.0040414f
cmp byte [ebp - 0x1f], bl
je 0x435c09
xor eax, eax
push 0x206
mov word [ebp + 0x78], ax
lea eax, [ebp + 0x7a]
push ebx
push eax
call fcn.0046cbb0
add esp, 0xc
push 0x104
lea eax, [ebp + 0x78]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push dword [edi + 0xc]
lea eax, [ebp + 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp + 0x5c]
call fcn.004018f6
push eax
call fcn.00445dbc
mov ecx, eax
call fcn.0044635c
push ebx
push esi
lea ecx, [ebp + 0x5c]
call fcn.00401a58
lea eax, [ebp - 0x1d]
push eax
mov byte [ebp - 0x1d], bl
call fcn.00404069
mov ecx, eax
call fcn.0040410d
cmp byte [ebp - 0x1d], bl
jne 0x435d3e
push ebx
lea ecx, [ebp + 0x24]
mov dword [ebp + 0x3c], 7
call fcn.00401cdf
lea eax, [ebp + 0x24]
push eax
call fcn.004341a8
mov ecx, eax
call fcn.00432547
push str._InstallInfo
lea ecx, [ebp + 0x24]
call fcn.0040197d
push ebx
sub esp, 0x1c
lea eax, [ebp + 0x24]
mov ecx, esp
push eax
call fcn.00401918
mov ecx, edi
call fcn.004341d1
mov edi, 0x4a7ca0
push edi
lea ecx, [ebp + 0x24]
call fcn.0040a395
test eax, eax
je 0x435c8f
cmp dword [ebp + 0x3c], 8
mov eax, dword [ebp + 0x28]
jae 0x435c86
lea eax, [ebp + 0x28]
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp + 0x5c]
push eax
call fcn.0044a4ad
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x24]
call fcn.004019a1
push ebx
push esi
lea ecx, [ebp + 0x5c]
call fcn.00401a58
push str.tp_InstallInfo_tp_
lea ecx, [ebp + 0x24]
call fcn.0040197d
push esi
sub esp, 0x1c
lea eax, [ebp + 0x24]
mov ecx, esp
push eax
call fcn.00401918
mov ecx, dword [ebp - 0x50]
call fcn.004341d1
push edi
lea ecx, [ebp + 0x24]
call fcn.0040a395
test eax, eax
je 0x435d31
lea eax, [ebp + 0x40]
push 0x49d024
push eax
call fcn.0044a4ad
pop ecx
push eax
lea eax, [ebp + 0x5c]
push eax
call fcn.0040f161
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x24]
call fcn.004019a1
push ebx
push esi
lea ecx, [ebp + 0x5c]
call fcn.00401a58
push ebx
push esi
lea ecx, [ebp + 0x40]
call fcn.00401a58
cmp dword [ebp + 0x3c], 8
mov eax, dword [ebp + 0x28]
jae 0x435d28
lea eax, [ebp + 0x28]
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push esi
lea ecx, [ebp + 0x24]
call fcn.00401a58
mov edi, dword [ebp - 0x50]
call fcn.00439edd
mov ecx, eax
call fcn.0043b8cc
call fcn.00439edd
mov ecx, eax
call fcn.0043abf7
call fcn.0042d24f
mov ecx, eax
call fcn.0042d11b
lea ecx, [ebp - 0x4c]
call fcn.00433cbd
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x24]
mov ecx, edi
call fcn.00433d7e
lea eax, [ebp - 0x1e]
push eax
mov byte [ebp - 0x1e], bl
call fcn.00404069
mov ecx, eax
call fcn.0040414f
push 0x49d020
lea ecx, [ebp + 0x40]
call fcn.004018f6
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x34]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x1c], esi
call fcn.004497b8
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0043198a
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.0043f7c2
test al, al
je 0x435e0e
push str.Repair
lea ecx, [ebp + 0x5c]
call fcn.004018f6
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x34]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x1c], 3
call fcn.004497b8
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0043198a
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.0043f7c2
mov byte [ebp - 0x15], bl
test al, al
jne 0x435e12
mov byte [ebp - 0x15], 1
test byte [ebp - 0x1c], 2
je 0x435e26
and dword [ebp - 0x1c], 0xfffffffd
push ebx
push esi
lea ecx, [ebp + 0x5c]
call fcn.00401a58
test byte [ebp - 0x1c], 1
je 0x435e3a
and dword [ebp - 0x1c], 0xfffffffe
push ebx
push esi
lea ecx, [ebp + 0x40]
call fcn.00401a58
cmp byte [ebp - 0x15], bl
je 0x435e45
mov dword [edi + 0x144], esi
push 0x4a88bc
lea ecx, [ebp + 0x40]
call fcn.004018f6
or dword [ebp - 0x1c], 4
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x34]
lea ecx, [ebp - 0x28]
call fcn.004497b8
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0043198a
mov ecx, eax
call fcn.0043f7c2
test al, al
je 0x435ec7
push str.Silent
lea ecx, [ebp + 0x5c]
call fcn.004018f6
or dword [ebp - 0x1c], 8
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x34]
lea ecx, [ebp - 0x28]
call fcn.004497b8
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0043198a
mov ecx, eax
call fcn.0043f7c2
mov byte [ebp - 0x15], 1
test al, al
jne 0x435eca
mov byte [ebp - 0x15], bl
test byte [ebp - 0x1c], 8
je 0x435ede
and dword [ebp - 0x1c], 0xfffffff7
push ebx
push esi
lea ecx, [ebp + 0x5c]
call fcn.00401a58
test byte [ebp - 0x1c], 4
je 0x435ef2
and dword [ebp - 0x1c], 0xfffffffb
push ebx
push esi
lea ecx, [ebp + 0x40]
call fcn.00401a58
cmp byte [ebp - 0x15], bl
je 0x4360b4
cmp byte [ebp - 0x1e], bl
je 0x4360cf
cmp byte [ebp - 0x1d], bl
je 0x4360cf
push ebx
lea ecx, [ebp + 0x40]
mov dword [edi + 0x164], esi
mov dword [ebp + 0x58], 7
call fcn.00401cdf
lea eax, [ebp + 0x40]
push eax
call fcn.0040339f
pop ecx
test eax, eax
je 0x436052
push ebx
lea ecx, [ebp + 8]
mov dword [ebp + 0x20], 7
call fcn.00401cdf
push ebx
lea ecx, [ebp + 0x5c]
mov dword [ebp + 0x74], 7
call fcn.00401cdf
push ebx
lea ecx, [ebp + 0x24]
mov dword [ebp + 0x3c], 7
call fcn.00401cdf
push 0x49cfd8
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0040f161
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 8]
call fcn.004019a1
push ebx
push esi
lea ecx, [ebp - 0x78]
call fcn.00401a58
push str.BHOBHOInstall.exe
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0040f161
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x5c]
call fcn.004019a1
push ebx
push esi
lea ecx, [ebp - 0x78]
call fcn.00401a58
push 0x49b810
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0040f161
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x24]
call fcn.004019a1
push ebx
push esi
lea ecx, [ebp - 0x78]
call fcn.00401a58
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
jae 0x435ff2
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x436021
cmp dword [ebp + 0x3c], 8
mov eax, dword [ebp + 0x28]
jae 0x436009
lea eax, [ebp + 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x436021
mov dword [edi + 0x144], esi
push 0x25e
jmp 0x436026
push 0x25f
call fcn.0043cb31
mov ecx, eax
call fcn.0043cdd1
push ebx
push esi
lea ecx, [ebp + 0x24]
call fcn.00401a58
push ebx
push esi
lea ecx, [ebp + 0x5c]
call fcn.00401a58
push ebx
push esi
lea ecx, [ebp + 8]
call fcn.00401a58
jmp 0x436063
push 0x25f
call fcn.0043cb31
mov ecx, eax
call fcn.0043cdd1
push ebx
lea ecx, [ebp - 0x14]
mov dword [ebp + 4], 7
call fcn.00401cdf
lea eax, [ebp - 0x14]
push eax
call fcn.00403465
pop ecx
test eax, eax
je 0x43609e
cmp dword [ebp + 4], 8
mov eax, dword [ebp - 0x10]
jae 0x43608d
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43609e
mov dword [edi + 0x160], esi
push ebx
push esi
lea ecx, [ebp - 0x14]
call fcn.00401a58
push ebx
push esi
lea ecx, [ebp + 0x40]
call fcn.00401a58
jmp 0x4360cf
cmp byte [ebp - 0x1e], bl
je 0x4360cf
cmp byte [ebp - 0x1d], bl
je 0x4360cf
push 0x25f
call fcn.0043cb31
mov ecx, eax
call fcn.0043cdd1
call fcn.0040b2d8
mov ecx, eax
call fcn.0040b3a5
test eax, eax
jne 0x436114
lea eax, [ebp - 0x78]
push eax
call fcn.0040b2d8
mov ecx, eax
call fcn.0040b3d9
cmp dword [eax + 0x18], 8
jb 0x4360fa
mov eax, dword [eax + 4]
jmp 0x4360fd
add eax, 4
push eax
call fcn.0040b2d8
mov ecx, eax
call fcn.0040b351
push ebx
push esi
lea ecx, [ebp - 0x78]
call fcn.00401a58
push str.InstallPath
lea ecx, [ebp + 0x5c]
call fcn.004018f6
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x34]
lea ecx, [ebp - 0x28]
call fcn.004497b8
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0043198a
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.0043f7c2
neg al
sbb al, al
push ebx
inc al
push esi
lea ecx, [ebp + 0x5c]
mov byte [ebp - 0x15], al
call fcn.00401a58
cmp byte [ebp - 0x15], bl
je 0x436191
push str.InstallPath
lea ecx, [ebp + 0x5c]
call fcn.004018f6
lea eax, [ebp + 0x5c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00433cd7
push eax
lea ecx, [ebp + 0x40]
call fcn.00401918
push ebx
push esi
lea ecx, [ebp + 0x5c]
call fcn.00401a58
jmp 0x4361ac
push ebx
lea ecx, [ebp + 0x40]
mov dword [ebp + 0x58], 7
call fcn.00401cdf
lea eax, [ebp + 0x40]
push eax
mov ecx, edi
call fcn.00432547
cmp dword [ebp + 0x58], 8
mov eax, dword [ebp + 0x44]
jae 0x4361b8
lea eax, [ebp + 0x44]
push eax
call fcn.00404069
mov ecx, eax
call fcn.004040aa
push ebx
push esi
lea ecx, [ebp + 0x40]
call fcn.00401a58
push str.LiveUpdate
lea ecx, [ebp + 0x5c]
call fcn.004018f6
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x34]
lea ecx, [ebp - 0x28]
call fcn.004497b8
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0043198a
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.0043f7c2
neg al
sbb al, al
push ebx
inc al
push esi
lea ecx, [ebp + 0x5c]
mov byte [ebp - 0x15], al
call fcn.00401a58
xor eax, eax
cmp byte [ebp - 0x15], bl
mov byte [ebp - 0x2c], 1
setne al
mov dword [edi + 0x48], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00404069
mov ecx, eax
call fcn.0040410d
lea eax, [edi + 0x90]
cmp dword [eax + 0x18], 8
jb 0x436249
mov eax, dword [eax + 4]
jmp 0x43624c
add eax, 4
push dword [ebp - 0x2c]
push eax
call fcn.0040b796
mov ecx, eax
call fcn.0040b7c1
push 0x4a88bc
lea ecx, [ebp + 0x40]
call fcn.004018f6
or dword [ebp - 0x1c], 0x10
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x34]
lea ecx, [ebp - 0x28]
call fcn.004497b8
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0043198a
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.0043f7c2
test al, al
je 0x4362dd
push str.Silent
lea ecx, [ebp + 0x5c]
call fcn.004018f6
or dword [ebp - 0x1c], 0x20
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x34]
lea ecx, [ebp - 0x28]
call fcn.004497b8
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0043198a
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.0043f7c2
mov byte [ebp - 0x15], bl
test al, al
jne 0x4362e1
mov byte [ebp - 0x15], 1
test byte [ebp - 0x1c], 0x20
je 0x4362f5
and dword [ebp - 0x1c], 0xffffffdf
push ebx
push esi
lea ecx, [ebp + 0x5c]
call fcn.00401a58
test byte [ebp - 0x1c], 0x10
je 0x436305
push ebx
push esi
lea ecx, [ebp + 0x40]
call fcn.00401a58
cmp byte [ebp - 0x15], bl
je 0x43634b
cmp byte [ebp - 0x2c], bl
je 0x436316
push 0x2de
jmp 0x43631b
push 0x2da
call fcn.0043cb31
mov ecx, eax
call fcn.0043d3d4
push edi
mov dword [edi + 0x44], esi
call fcn.0040b796
mov ecx, eax
call fcn.0040b80a
push edi
mov ecx, edi
call fcn.004336e0
mov ecx, edi
call fcn.00434c25
jmp 0x4363de
push 0xffffffffffffffff
push ebx
push esi
call fcn.0043cb31
mov ecx, eax
call fcn.0043cef6
mov ecx, 0x4c5c30
mov dword [edi + 0x44], ebx
call fcn.00415b5b
cmp byte [ebp - 0x1e], bl
je 0x4363a1
cmp byte [ebp - 0x2c], bl
je 0x4363a1
call fcn.00445dbc
mov ecx, eax
call fcn.00445b55
cmp eax, ebx
je 0x4363a1
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4363a1
call fcn.00445dbc
mov ecx, eax
call fcn.00445b1e
call fcn.00439edd
mov ecx, eax
call fcn.00439b68
cmp dword [eax + 0x18], 8
jb 0x4363b8
mov eax, dword [eax + 4]
jmp 0x4363bb
add eax, 4
push ebx
push 0x2000000
push 3
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, edi
call fcn.00433957
lea ecx, [ebp - 0x4c]
call fcn.004335a9
push dword [ebp - 0x4c]
call fcn.0046c701
pop ecx
xor eax, eax
mov ecx, dword [ebp + 0x488]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046cc2a
add ebp, 0x48c
leave
ret 4