Function at 0x4565c0
Capabilities:
Check if file exists
Get graphical window text
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4959a2
mov eax, dword fs:[0]
push eax
sub esp, 0x510
mov eax, dword [0x4c4074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x468], esi
xor edi, edi
mov dword [ebp - 0x47c], edi
mov dword [ebp - 4], edi
mov eax, dword [esi]
cmp dword [eax - 0xc], edi
jne 0x456768
lea eax, [ebp - 0x464]
push eax
call fcn.0045a120
mov byte [ebp - 4], 1
lea ecx, [esi + 0xc]
mov edx, dword [eax]
mov edi, dword [ecx]
sub edi, 0x10
lea eax, [edx - 0x10]
mov dword [ebp - 0x458], eax
cmp eax, edi
je 0x45667f
cmp dword [edi + 0xc], 0
jl 0x456676
mov eax, dword [eax]
cmp eax, dword [edi]
jne 0x456676
mov ecx, dword [ebp - 0x458]
call fcn.004025a0
mov dword [ebp - 0x458], eax
lea ecx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x456666
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x458]
lea edi, [esi + 0xc]
add eax, 0x10
mov dword [edi], eax
jmp 0x456682
push dword [edx - 0xc]
push edx
call fcn.00407350
lea edi, [esi + 0xc]
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x464]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4566a4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0xe8
call fcn.0046e3d9
add esp, 4
mov dword [ebp - 0x494], eax
mov byte [ebp - 4], 3
mov ecx, eax
push edi
call fcn.00431d60
mov edi, eax
mov byte [ebp - 4], 0
mov ecx, edi
mov dword [ebp - 0x47c], edi
call fcn.00432350
mov dword [ebp - 0x45c], eax
test eax, eax
jne 0x457813
mov edx, dword [edi + 0x40]
cmp dword [edx - 0xc], eax
je 0x456768
mov ecx, dword [esi]
lea eax, [edx - 0x10]
sub ecx, 0x10
mov dword [ebp - 0x464], eax
mov dword [ebp - 0x470], ecx
cmp eax, ecx
je 0x456768
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
mov dword [ebp - 0x458], esi
mov esi, dword [ebp - 0x468]
jl 0x45675d
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x45675d
mov ecx, dword [ebp - 0x464]
call fcn.004025a0
mov dword [ebp - 0x464], eax
or ecx, 0xffffffff
mov eax, dword [ebp - 0x458]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x456750
mov eax, dword [ebp - 0x470]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x464]
add eax, 0x10
mov dword [esi], eax
jmp 0x456768
push dword [edx - 0xc]
mov ecx, esi
push edx
call fcn.00407350
mov ecx, esi
call fcn.0045a7f0
mov dword [ebp - 0x45c], eax
test eax, eax
jne 0x457813
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4567af
cmp ecx, 1
je 0x4567af
cmp ecx, 2
je 0x4567af
cmp ecx, 3
je 0x4567af
cmp ecx, 0xb
je 0x4567af
cmp ecx, 4
je 0x4567af
mov eax, dword [esi + 0xc]
cmp dword [eax - 0xc], 0
je 0x4567af
cmp ecx, 0xa
jne 0x456879
lea eax, [ebp - 0x454]
push eax
call fcn.0045a120
mov byte [ebp - 4], 4
lea edx, [esi + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x470], eax
lea ecx, [eax - 0x10]
mov dword [ebp - 0x46c], ecx
mov ecx, dword [edx]
sub ecx, 0x10
mov dword [ebp - 0x458], ecx
cmp dword [ebp - 0x46c], ecx
je 0x456857
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
mov dword [ebp - 0x464], esi
mov esi, dword [ebp - 0x468]
jl 0x45684c
mov eax, dword [ebp - 0x46c]
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x456846
mov ecx, dword [ebp - 0x46c]
call fcn.004025a0
mov dword [ebp - 0x470], eax
or ecx, 0xffffffff
mov eax, dword [ebp - 0x464]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x456838
mov eax, dword [ebp - 0x458]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x470]
add eax, 0x10
mov dword [esi + 0xc], eax
jmp 0x456857
mov eax, dword [ebp - 0x470]
push dword [eax - 0xc]
mov ecx, edx
push eax
call fcn.00407350
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x454]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x456879
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x456972
push 0xe8
call fcn.0046e3d9
add esp, 4
mov dword [ebp - 0x494], eax
mov byte [ebp - 4], 6
lea ecx, [esi + 0xc]
push ecx
mov ecx, eax
call fcn.00431d60
mov edi, eax
mov byte [ebp - 4], 0
mov dword [ebp - 0x47c], edi
mov edx, dword [esi + 0x14]
cmp dword [edx - 0xc], 0
je 0x45695d
lea ecx, [edx - 0x10]
mov dword [ebp - 0x478], ecx
lea eax, [edi + 0x8c]
mov ecx, dword [eax]
sub ecx, 0x10
mov dword [ebp - 0x464], ecx
cmp dword [ebp - 0x478], ecx
je 0x45694d
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
mov dword [ebp - 0x454], esi
mov esi, dword [ebp - 0x468]
jl 0x456942
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x45693c
mov ecx, dword [ebp - 0x478]
call fcn.004025a0
mov dword [ebp - 0x458], eax
or ecx, 0xffffffff
mov eax, dword [ebp - 0x454]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45692b
mov eax, dword [ebp - 0x464]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x458]
add eax, 0x10
mov dword [edi + 0x8c], eax
jmp 0x45694d
lea eax, [edi + 0x8c]
push dword [edx - 0xc]
mov ecx, eax
push edx
call fcn.00407350
mov eax, dword [esi + 0x14]
cmp dword [eax - 0xc], 0
je 0x45695d
mov byte [edi + 0xd4], 1
mov ecx, edi
call fcn.00432350
mov dword [ebp - 0x45c], eax
test eax, eax
jg 0x457813
mov eax, dword [esi + 4]
test eax, eax
je 0x456996
cmp eax, 1
je 0x456996
cmp eax, 2
je 0x456996
cmp eax, 3
je 0x456996
cmp eax, 4
je 0x456996
cmp eax, 0xb
jne 0x456a96
call fcn.00403d50
mov ecx, eax
test ecx, ecx
je 0x45785e
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x498], eax
mov byte [ebp - 4], 8
lea eax, [ebp - 0x498]
push dword [edi]
push str.SoftwareCaphyonAdvanced_Updater_s
push eax
call fcn.00408580
mov esi, dword [ebp - 0x498]
lea eax, [ebp - 0x488]
add esp, 0xc
push 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4569fd
jmp 0x456a74
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [0x4c5088]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x49c]
push eax
push 0
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x488]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x456a68
push 4
lea eax, [ebp - 0x460]
mov dword [ebp - 0x460], 0
push eax
push 4
push 0
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x488]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x488]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
or eax, 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x456a90
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x468]
mov edx, dword [esi + 0x90]
lea eax, [edi + 0x58]
lea ecx, [edx - 0x10]
mov dword [ebp - 0x460], ecx
mov ecx, dword [eax]
sub ecx, 0x10
mov dword [ebp - 0x464], ecx
cmp dword [ebp - 0x460], ecx
je 0x456b24
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
mov dword [ebp - 0x454], esi
mov esi, dword [ebp - 0x468]
jl 0x456b19
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x456b16
mov ecx, dword [ebp - 0x460]
call fcn.004025a0
mov dword [ebp - 0x458], eax
or ecx, 0xffffffff
mov eax, dword [ebp - 0x454]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x456b08
mov eax, dword [ebp - 0x464]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x458]
add eax, 0x10
mov dword [edi + 0x58], eax
jmp 0x456b24
lea eax, [edi + 0x58]
push dword [edx - 0xc]
mov ecx, eax
push edx
call fcn.00407350
mov edx, dword [esi + 0x94]
lea eax, [edi + 0x5c]
lea ecx, [edx - 0x10]
mov dword [ebp - 0x460], ecx
mov ecx, dword [eax]
sub ecx, 0x10
mov dword [ebp - 0x464], ecx
cmp dword [ebp - 0x460], ecx
je 0x456bb2
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
mov dword [ebp - 0x454], esi
mov esi, dword [ebp - 0x468]
jl 0x456ba7
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x456ba4
mov ecx, dword [ebp - 0x460]
call fcn.004025a0
mov dword [ebp - 0x458], eax
or ecx, 0xffffffff
mov eax, dword [ebp - 0x454]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x456b96
mov eax, dword [ebp - 0x464]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x458]
add eax, 0x10
mov dword [edi + 0x5c], eax
jmp 0x456bb2
lea eax, [edi + 0x5c]
push dword [edx - 0xc]
mov ecx, eax
push edx
call fcn.00407350
mov edx, dword [esi + 0x98]
lea eax, [edi + 0x60]
lea ecx, [edx - 0x10]
mov dword [ebp - 0x460], ecx
mov ecx, dword [eax]
sub ecx, 0x10
mov dword [ebp - 0x464], ecx
cmp dword [ebp - 0x460], ecx
je 0x456c40
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
mov dword [ebp - 0x454], esi
mov esi, dword [ebp - 0x468]
jl 0x456c35
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x456c32
mov ecx, dword [ebp - 0x460]
call fcn.004025a0
mov dword [ebp - 0x458], eax
or ecx, 0xffffffff
mov eax, dword [ebp - 0x454]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x456c24
mov eax, dword [ebp - 0x464]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x458]
add eax, 0x10
mov dword [edi + 0x60], eax
jmp 0x456c40
lea eax, [edi + 0x60]
push dword [edx - 0xc]
mov ecx, eax
push edx
call fcn.00407350
mov edx, dword [esi + 0x9c]
lea eax, [edi + 0x64]
lea ecx, [edx - 0x10]
mov dword [ebp - 0x460], ecx
mov ecx, dword [eax]
sub ecx, 0x10
mov dword [ebp - 0x464], ecx
cmp dword [ebp - 0x460], ecx
je 0x456cce
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
mov dword [ebp - 0x454], esi
mov esi, dword [ebp - 0x468]
jl 0x456cc3
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x456cc0
mov ecx, dword [ebp - 0x460]
call fcn.004025a0
mov dword [ebp - 0x458], eax
or ecx, 0xffffffff
mov eax, dword [ebp - 0x454]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x456cb2
mov eax, dword [ebp - 0x464]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x458]
add eax, 0x10
mov dword [edi + 0x64], eax
jmp 0x456cce
lea eax, [edi + 0x64]
push dword [edx - 0xc]
mov ecx, eax
push edx
call fcn.00407350
mov eax, dword [esi + 0xa4]
lea ecx, [esi + 0xa4]
cmp dword [eax - 0xc], 0
je 0x456ce8
push ecx
mov ecx, edi
call fcn.00432e90
push edi
mov ecx, esi
call fcn.0045cc90
mov al, byte [esi + 0x120]
mov byte [edi + 0x80], al
mov al, byte [esi + 0x121]
mov byte [edi + 0x81], al
lea eax, [edi + 0x90]
mov edx, dword [esi + 0x164]
lea ecx, [edx - 0x10]
mov dword [ebp - 0x460], ecx
mov ecx, dword [eax]
sub ecx, 0x10
mov dword [ebp - 0x464], ecx
cmp dword [ebp - 0x460], ecx
je 0x456d9f
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
mov dword [ebp - 0x454], esi
mov esi, dword [ebp - 0x468]
jl 0x456d94
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x456d8e
mov ecx, dword [ebp - 0x460]
call fcn.004025a0
mov dword [ebp - 0x458], eax
or ecx, 0xffffffff
mov eax, dword [ebp - 0x454]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x456d7d
mov eax, dword [ebp - 0x464]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x458]
add eax, 0x10
mov dword [edi + 0x90], eax
jmp 0x456d9f
lea eax, [edi + 0x90]
push dword [edx - 0xc]
mov ecx, eax
push edx
call fcn.00407350
mov al, byte [esi + 0x16c]
mov byte [edi + 0x98], al
lea eax, [edi + 0x94]
mov edx, dword [esi + 0x168]
lea ecx, [edx - 0x10]
mov dword [ebp - 0x460], ecx
mov ecx, dword [eax]
sub ecx, 0x10
mov dword [ebp - 0x464], ecx
cmp dword [ebp - 0x460], ecx
je 0x456e42
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
mov dword [ebp - 0x454], esi
mov esi, dword [ebp - 0x468]
jl 0x456e37
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x456e31
mov ecx, dword [ebp - 0x460]
call fcn.004025a0
mov dword [ebp - 0x458], eax
or ecx, 0xffffffff
mov eax, dword [ebp - 0x454]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x456e20
mov eax, dword [ebp - 0x464]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x458]
add eax, 0x10
mov dword [edi + 0x94], eax
jmp 0x456e42
lea eax, [edi + 0x94]
push dword [edx - 0xc]
mov ecx, eax
push edx
call fcn.00407350
mov al, byte [esi + 0x16e]
mov byte [edi + 0x82], al
mov al, byte [esi + 0x16f]
mov byte [edi + 0x83], al
mov al, byte [esi + 0x171]
mov byte [edi + 0x84], al
mov edx, dword [esi + 0x174]
cmp dword [edx - 0xc], 0
je 0x456ed3
mov esi, dword [edi + 0x48]
lea ecx, [edi + 0x48]
lea eax, [edx - 0x10]
sub esi, 0x10
mov dword [ebp - 0x454], eax
cmp eax, esi
je 0x456ed3
cmp dword [esi + 0xc], 0
jl 0x456eca
mov eax, dword [eax]
cmp eax, dword [esi]
jne 0x456eca
mov ecx, dword [ebp - 0x454]
call fcn.004025a0
mov dword [ebp - 0x454], eax
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x456ebc
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x454]
add eax, 0x10
mov dword [edi + 0x48], eax
jmp 0x456ed3
push dword [edx - 0xc]
push edx
call fcn.00407350
mov esi, dword [edi + 0x18]
sub esi, 0x10
mov ecx, dword [esi]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
jl 0x456ef6
cmp ecx, dword [esi]
jne 0x456ef6
lock inc dword [eax]
jmp 0x456f31
mov eax, dword [ecx]
push 2
push dword [esi + 4]
mov eax, dword [eax]
call eax
mov ecx, eax
mov dword [ebp - 0x454], ecx
test ecx, ecx
je 0x457868
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
lea eax, [esi + 0x10]
mov edx, dword [esi + 4]
add ecx, 0x10
inc edx
push edx
push eax
call fcn.004024f0
mov esi, dword [ebp - 0x454]
add esp, 8
add esi, 0x10
mov dword [ebp - 0x4b0], esi
mov byte [ebp - 4], 0xc
lea eax, [esi - 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0x494], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
lea eax, [esi - 0x10]
cmp dword [eax + 0xc], 0
lea edx, [eax + 0xc]
jl 0x456f67
cmp ecx, dword [eax]
jne 0x456f67
lock inc dword [edx]
jmp 0x456fa1
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
mov eax, dword [eax]
call eax
mov ecx, eax
mov dword [ebp - 0x454], ecx
test ecx, ecx
je 0x45786d
mov eax, dword [esi - 0xc]
mov dword [ecx + 4], eax
mov eax, esi
mov edx, dword [esi - 0xc]
add ecx, 0x10
inc edx
push edx
push eax
call fcn.004024f0
mov eax, dword [ebp - 0x454]
add esp, 8
add eax, 0x10
mov dword [ebp - 0x474], eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x474]
call fcn.0040db40
push 0xb
push str.updater.log
lea ecx, [ebp - 0x474]
call fcn.004023a0
mov eax, dword [edi + 0xd8]
mov dword [ebp - 0x470], eax
test eax, eax
je 0x457004
lea ecx, [ebp - 0x4b0]
call fcn.0040e840
test al, al
je 0x457004
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x457004
push ecx
lea ecx, [ebp - 0x474]
call fcn.0040e570
add esp, 4
call fcn.00420c00
mov esi, eax
mov byte [ebp - 0x480], 0
mov cl, byte [esi + 0x18]
lea edi, [esi + 0x18]
mov dword [ebp - 0x484], esi
test cl, cl
jne 0x45702d
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov al, 1
xchg byte [edi], al
push dword [ebp - 0x484]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 0xf
cmp dword [esi + 0x30], 0
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
je 0x45705b
lea edx, [esi + 0x24]
lea ecx, [ebp - 0x474]
call fcn.00421510
test al, al
jne 0x4570c8
mov eax, dword [ebp - 0x474]
lea edx, [esi + 0x24]
mov esi, dword [edx]
sub esi, 0x10
mov dword [ebp - 0x460], edx
lea ecx, [eax - 0x10]
cmp ecx, esi
je 0x4570c8
cmp dword [esi + 0xc], 0
jl 0x4570bd
mov edx, dword [ecx]
cmp edx, dword [esi]
jne 0x4570b7
call fcn.004025a0
mov dword [ebp - 0x454], eax
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4570a4
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0x460]
mov eax, dword [ebp - 0x454]
add eax, 0x10
mov dword [ecx], eax
jmp 0x4570c8
mov edx, dword [ebp - 0x460]
push dword [eax - 0xc]
mov ecx, edx
push eax
call fcn.00407350
mov byte [ebp - 4], 0xe
mov al, byte [ebp - 0x480]
test al, al
jne 0x4570e8
push dword [ebp - 0x484]
call edi
lea ecx, [ebp - 0x480]
mov al, 1
xchg byte [ecx], al
call fcn.00420c00
mov esi, eax
mov byte [ebp - 0x4a0], 0
mov dword [ebp - 0x4a4], esi
mov cl, byte [esi + 0x18]
test cl, cl
jne 0x457111
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov al, 1
lea ecx, [esi + 0x18]
xchg byte [ecx], al
push dword [ebp - 0x4a4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 0x10
cmp dword [ebp - 0x470], 0
setne al
mov byte [esi + 0x1c], al
mov byte [ebp - 4], 0xe
mov al, byte [ebp - 0x4a0]
test al, al
jne 0x45714e
push dword [ebp - 0x4a4]
call edi
mov al, 1
lea ecx, [ebp - 0x4a0]
xchg byte [ecx], al
call fcn.00420c00
mov esi, eax
mov byte [ebp - 0x4a8], 0
mov dword [ebp - 0x4ac], esi
mov cl, byte [esi + 0x18]
test cl, cl
jne 0x457177
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov al, 1
lea ecx, [esi + 0x18]
xchg byte [ecx], al
push dword [ebp - 0x4ac]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x470]
mov dword [esi + 0x20], eax
mov byte [ebp - 4], 0xe
mov al, byte [ebp - 0x4a8]
test al, al
jne 0x4571b0
push dword [ebp - 0x4ac]
call edi
mov al, 1
lea ecx, [ebp - 0x4a8]
xchg byte [ecx], al
call fcn.00420c00
mov al, byte [eax + 0x1c]
test al, al
je 0x4572b7
call fcn.00420c00
test byte [eax + 0x20], 8
je 0x4572b7
call fcn.00420c00
mov edi, eax
call fcn.00403d50
mov ecx, eax
test ecx, ecx
je 0x457872
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x490], eax
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x490]
push 0x17
push str.Running_updater._Mode:
call fcn.004023a0
mov esi, dword [ebp - 0x468]
lea ecx, [ebp - 0x490]
push dword [esi + 4]
call fcn.004207e0
mov dword [ebp - 0x454], eax
call fcn.00403d50
mov ecx, eax
test ecx, ecx
je 0x45787c
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x48c], eax
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x48c]
push 0
push 0x4a85e8
call fcn.004023a0
push ecx
push dword [ebp - 0x454]
lea eax, [ebp - 0x48c]
push ecx
push eax
mov ecx, edi
call fcn.00420d60
mov byte [ebp - 4], 0x14
or edi, 0xffffffff
mov edx, dword [ebp - 0x48c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x457294
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xe
mov eax, edi
mov edx, dword [ebp - 0x490]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4572bd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4572bd
mov esi, dword [ebp - 0x468]
mov eax, dword [esi + 4]
mov edi, dword [ebp - 0x47c]
cmp eax, 0x14
ja case.0x4572d6.5
movzx eax, byte [eax + 0x4578c0]
jmp dword [eax*4 + 0x45788c]
cmp byte [esi + 0x16c], 0
je 0x4572fa
mov eax, dword [esi + 0x164]
cmp dword [eax - 0xc], 0
je 0x4572fa
push edi
mov ecx, esi
call 0x4578e0
push edi
mov ecx, esi
call fcn.00457a70
mov ecx, eax
mov dword [ebp - 0x45c], ecx
jmp 0x45759f
push edi
mov ecx, esi
call fcn.00457d00
mov ecx, eax
mov dword [ebp - 0x45c], ecx
jmp 0x45759f
cmp byte [esi + 0x16c], 0
je 0x457341
mov eax, dword [esi + 0x164]
cmp dword [eax - 0xc], 0
je 0x457341
push edi
mov ecx, esi
call 0x4578e0
push edi
mov ecx, esi
call fcn.00457eb0
mov ecx, eax
mov dword [ebp - 0x45c], ecx
jmp 0x45759f
push 0
push 0
push edi
lea ecx, [ebp - 0x51c]
call fcn.00468750
mov byte [ebp - 4], 0x1c
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp - 0x454], eax
lea eax, [ebp - 0x420]
push 0x104
push eax
push dword [esi + 0x88]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x45739a
mov eax, dword [esi + 0x88]
jmp 0x4573a0
mov eax, dword [ebp - 0x454]
push ecx
push eax
lea ecx, [ebp - 0x51c]
call fcn.0043bc80
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x51c]
call fcn.0043bb50
xor ecx, ecx
mov dword [ebp - 0x45c], ecx
jmp 0x45759f
push edi
mov ecx, esi
call fcn.00458220
mov ecx, eax
mov dword [ebp - 0x45c], ecx
jmp 0x45759f
push edi
mov ecx, esi
call fcn.004584a0
mov ecx, eax
mov dword [ebp - 0x45c], ecx
jmp 0x45759f
push edi
mov ecx, esi
call fcn.00459300
mov ecx, eax
mov dword [ebp - 0x45c], ecx
jmp 0x45759f
push edi
mov ecx, esi
call fcn.004596b0
mov ecx, eax
mov dword [ebp - 0x45c], ecx
jmp 0x45759f
mov dword [esi + 0x14c], edi
lea ecx, [esi + 0x124]
push dword [esi + 0x17c]
call fcn.00446270
test al, al
je 0x45746e
lea ecx, [esi + 0x124]
call fcn.004456d0
test al, al
je 0x45746e
lea ecx, [esi + 0x124]
call fcn.00445dc0
test al, al
je 0x45746e
lea ecx, [esi + 0x124]
call fcn.00444ec0
xor ecx, ecx
mov dword [ebp - 0x45c], ecx
jmp 0x45759f
mov ecx, 0xe000000b
mov dword [ebp - 0x45c], ecx
jmp 0x45759f
mov eax, dword [esi + 0x150]
mov dword [ebp - 0x4bc], 0x4a9308
mov dword [ebp - fcn.00418eb0], 0x4a92fc
mov dword [ebp - 0x4b4], eax
mov dword [ebp - 0x450], 0x4a9bc0
mov dword [ebp - 0x44c], 0
mov byte [ebp - 4], 0x1d
lea eax, [ebp - 0x4bc]
mov dword [ebp - 0x428], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x4b8]
movq qword [ebp - 0x438], xmm0
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x450]
movups xmmword [ebp - 0x448], xmm0
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0
mov dword [0x4c5fb8], eax
mov byte [ebp - 4], 0x1e
lea eax, [ebp - 0x458]
push eax
push 0x60000
push 0xf003f
lea ecx, [ebp - 0x450]
mov dword [ebp - 0x458], 0
call fcn.0041e7e0
mov ecx, dword [ebp - 0x44c]
mov dword [ebp - 0x454], eax
cmp eax, ecx
je 0x457554
mov edx, dword [ebp - 0x450]
lea ecx, [ebp - 0x450]
call dword [edx + 4]
mov ecx, dword [ebp - 0x454]
mov dword [ebp - 0x44c], ecx
test ecx, ecx
jne 0x4576b8
mov ecx, dword [ebp - 0x458]
mov dword [ebp - 0x45c], ecx
test ecx, ecx
je 0x4576b8
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x44c]
mov dword [ebp - 0x450], 0x4a9bc0
test eax, eax
je 0x45759f
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x44c], 0
mov ecx, dword [ebp - 0x45c]
mov eax, dword [esi + 0x164]
cmp dword [eax - 0xc], 0
je 0x4575d3
cmp byte [esi + 0x16c], 0
jne 0x4575d3
cmp byte [esi + 0x160], 0
jne 0x4575c5
test ecx, ecx
je 0x4577d2
push edi
mov ecx, esi
call 0x4578e0
mov ecx, dword [ebp - 0x45c]
test ecx, ecx
je 0x4577d2
cmp ecx, 0xe0000011
je 0x4577d2
cmp ecx, 0xe0000027
je 0x4577d2
cmp ecx, 0xe0000008
je 0x4577d2
cmp ecx, 0x4c7
je 0x4577d2
cmp ecx, 0x642
je 0x4577d2
cmp ecx, 0xe0000029
je 0x4577d2
cmp dword [esi + 4], 0
jne 0x4577d2
cmp byte [esi + 0xa8], 0
jne 0x4577d2
lea ecx, [ebp - 0x478]
call fcn.00403e80
mov byte [ebp - 4], 0x21
lea edx, [ebp - 0x478]
mov ecx, dword [ebp - 0x45c]
call fcn.0042da60
mov edx, 0x8e
lea ecx, [ebp - 0x46c]
call fcn.00408e90
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0x46c]
push 3
push 0x4ae60c
call fcn.004023a0
mov eax, dword [ebp - 0x478]
lea ecx, [ebp - 0x46c]
push dword [eax - 0xc]
push eax
call fcn.004023a0
mov esi, dword [edi + 0x34]
sub esi, 0x10
mov ecx, dword [esi]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
jl 0x4576fb
cmp ecx, dword [esi]
jne 0x4576fb
lock inc dword [eax]
jmp 0x457736
lea eax, [ebp - 0x450]
push eax
call fcn.00459770
mov ecx, eax
mov dword [ebp - 0x45c], ecx
jmp 0x457570
push edi
mov ecx, esi
call fcn.00459930
mov ecx, eax
mov dword [ebp - 0x45c], ecx
jmp 0x45759f
push edi
mov ecx, esi
call fcn.00459da0
mov ecx, eax
mov dword [ebp - 0x45c], ecx
jmp 0x45759f
mov eax, dword [ecx]
push 2
push dword [esi + 4]
mov eax, dword [eax]
call eax
mov ecx, eax
mov dword [ebp - 0x454], ecx
test ecx, ecx
je 0x457886
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
lea eax, [esi + 0x10]
mov edx, dword [esi + 4]
add ecx, 0x10
inc edx
push edx
push eax
call fcn.004024f0
mov esi, dword [ebp - 0x454]
add esp, 8
add esi, 0x10
mov dword [ebp - 0x4c0], esi
mov byte [ebp - 4], 0x24
call dword [sym.imp.USER32.dll_GetActiveWindow]
push ecx
mov ecx, esp
mov dword [ebp - 0x454], eax
push ecx
mov eax, esp
mov edx, 0x10
mov dword [ecx], esi
mov ecx, dword [ebp - 0x46c]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x454]
call fcn.0041d3c0
add esp, 8
mov byte [ebp - 4], 0x22
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x457790
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x21
mov eax, esi
mov edx, dword [ebp - 0x46c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4577b1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xe
mov eax, esi
mov edx, dword [ebp - 0x478]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4577d2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xc
or eax, 0xffffffff
mov edx, dword [ebp - 0x474]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4577f4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x494]
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x457813
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x457833
mov ecx, edi
call fcn.0045d540
push 0xe8
push edi
call fcn.0046e3c2
add esp, 8
mov eax, dword [ebp - 0x45c]
mov dword [ebp - 0x47c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046e38e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004024c0
call fcn.004024e0
call fcn.004024e0
push 0x80004005
call fcn.004024c0
push 0x80004005
call fcn.004024c0
call fcn.004024e0
nop
fnsave dword [edx + 0x45]
add byte [ebx + esi*2], ah
inc ebp
add byte [esi + 0x73], dl
inc ebp
add cl, cl
jae 0x4578e0
add dh, bl
jae 0x4578e4
add bl, dh
jae 0x4578e8
add byte [edi], cl
jae 0x4578ec
add byte [eax], cl
je 0x4578f0
add byte [esi + 0x74], bh
inc ebp
add byte [0xd1004574], bl
jbe 0x4578fc
add dh, ah
jbe 0x457900
add byte [ecx + 0x4575], bl
add dword [ecx], eax
add dword [edx], eax
or al, 3
add al, 4
add al, 5
push es
push es
pop es
pop es
pop es
or byte [edi], al
or dword [edx], ecx
or ecx, esp
int3
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495a18
mov eax, dword fs:[0]
jmp [eax + 0x18]
dec ecx
add byte [ecx], ah
add byte [eax], al
add byte [eax - 0x7d], dl
in al, dx
or al, 0x56
add byte [eax], al
add byte [eax], al
push eax
sub esp, 0xc
push esi
mov eax, dword [0x4c4074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
call fcn.00403d50
mov ecx, eax
test ecx, ecx
je 0x457a4a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x14]
push eax
lea eax, [esi + 0x164]
push eax
lea ecx, [ebp + 8]
call fcn.00448d40
call fcn.00403d50
mov ecx, eax
test ecx, ecx
je 0x457a54
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x168]
push eax
lea ecx, [ebp + 8]
call fcn.00448d40
call fcn.00403d50
mov ecx, eax
test ecx, ecx
je 0x457a5e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 4
lea ecx, [ebp + 8]
push 0x4a85e8
call fcn.004071f0
test al, al
jne 0x4579b1
push 0
push 0x4a85e8
lea ecx, [ebp + 8]
call fcn.00407350
mov byte [ebp - 4], 5
lea eax, [ebp + 8]
push eax
sub esp, 0xc
lea eax, [ebp - 0x18]
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
call fcn.0040c000
add esp, 0x14
mov byte [ebp - 4], 3
or esi, 0xffffffff
mov edx, dword [ebp + 8]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4579ef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4579fb
call fcn.004649d0
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x457a19
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x457a38
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.004024c0
push 0x80004005
call fcn.004024c0
push 0x80004005
call fcn.004024c0
int3