Function at 0x424149
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a3461
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x4d0620]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push esi
push edi
mov eax, dword [0x4d0620]
xor eax, esp
push eax
lea eax, [esp + 0x268]
mov dword fs:[0], eax
xor edi, edi
push edi
mov dword [esp + 0x34], ecx
call fcn.00468936
cmp dword [0x4f00b0], edi
jne 0x424576
xor esi, esi
inc esi
mov dword [0x4f00b0], esi
call fcn.0042477b
call fcn.004024f5
cmp dword [0x4ef86c], esi
je 0x4241c1
call fcn.0040272e
cmp dword [0x4ef1d8], edi
jne 0x4242b1
cmp dword [ebp + 8], edi
je 0x4242b1
cmp dword [0x4ef878], edi
jne 0x4242b1
push 0x4efd98
lea ecx, [esp + 0x20]
call fcn.0040144c
mov dword [esp + 0x270], edi
mov ebx, dword [esp + 0x1c]
mov ecx, str.szInstallPath
call fcn.00408ce7
cmp dword [0x4ef1d4], edi
mov ecx, str.szTmpUpdateFilesPath
mov ebx, 0x4ed5e8
je 0x42421c
mov ebx, 0x4ef3e4
call fcn.00408ce7
lea eax, [esp + 0x34]
push eax
mov ecx, str.Enable
mov dword [esp + 0x38], esi
mov dword [esp + 0x30], 2
call fcn.00408c05
pop ecx
lea eax, [esp + 0x2c]
push eax
mov ecx, str.Mode
call fcn.00408c05
cmp dword [esp + 0x38], edi
pop ecx
je 0x42429d
cmp dword [esp + 0x2c], edi
je 0x42429d
push edi
push edi
push dword [0x4efd68]
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageW]
cmp dword [0x4ef884], edi
je 0x42429d
call fcn.00401cdd
test eax, eax
je 0x42429d
xor eax, eax
cmp dword [0x4eef64], edi
mov ecx, 0x4efec8
sete al
mov dword [0x4efd64], esi
mov dword [0x4eff3c], eax
call fcn.0045f67f
or dword [esp + 0x270], 0xffffffff
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.00401325
cmp dword [0x4eef64], edi
jne 0x424307
cmp dword [0x4ef884], edi
jne 0x424307
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], edi
call fcn.0040dfbd
cmp eax, edi
je 0x4242df
cmp dword [esp + 0x1c], edi
je 0x4242df
mov dword [0x4ef884], esi
push 0x42
pop esi
call fcn.00436a31
test eax, eax
je 0x424304
call fcn.00428e38
call fcn.0040a3ee
test eax, eax
jne 0x4242ff
mov dword [0x4ef884], edi
call fcn.00428e69
xor esi, esi
inc esi
cmp dword [0x4efdd4], edi
jne 0x42455a
cmp dword [0x4eef64], edi
je 0x42455a
cmp dword [0x4ef884], edi
je 0x42455a
cmp dword [0x4efc60], edi
jne 0x42455a
call fcn.0045db7e
push eax
lea ecx, [esp + 0x18]
call fcn.0040161b
push 0x8033
mov dword [esp + 0x274], esi
mov eax, dword [0x4ee7f4]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
call dword [ecx + 0xc]
call fcn.0045db7e
push eax
lea ecx, [esp + 0x14]
call fcn.0040161b
push 0x12c
mov byte [esp + 0x274], 2
mov eax, dword [0x4ee7f4]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
call dword [ecx + 0xc]
call fcn.0045db7e
push eax
lea ecx, [esp + 0x1c]
call fcn.0040161b
push 0x12d
mov byte [esp + 0x274], 3
mov eax, dword [0x4ee7f4]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [ecx + 0xc]
mov ecx, dword [esp + 0x30]
push edi
call fcn.00468936
mov ecx, 0x87
lea eax, [ecx + 0x14]
mov dword [esp + 0x28], eax
mov dword [esp + 0x44], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x24], 0x47
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], 0x8b
mov dword [esp + 0x40], 0x9f
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], 0xe3
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
lea ebx, [esp + 0x48]
call fcn.0042a757
add esp, 0x10
cmp eax, 6
je 0x42459c
cmp eax, 3
je 0x42459c
push 0x208
lea eax, [esp + 0x52]
push edi
push eax
mov word [esp + 0x58], di
call fcn.0047e7d0
mov word [esp + 0x44], di
xor eax, eax
lea edi, [esp + 0x46]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0xc
mov edi, str.HKEY_CURRENT_USER_
lea eax, [esp + 0x4c]
push edi
push eax
call fcn.00402e8c
mov esi, 0x4eef7c
lea eax, [esp + 0x54]
push esi
push eax
call fcn.00402eac
lea eax, [esp + 0x5c]
push str.updateNeedReboot
push eax
call fcn.00402eac
push 1
lea ecx, [esp + 0x68]
call fcn.0042a03f
add esp, 0x1c
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0xffffffffffffffff
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x24]
call fcn.0040ec86
lea eax, [esp + 0x4c]
push edi
push eax
call fcn.00402e8c
lea eax, [esp + 0x54]
push esi
push eax
call fcn.00402eac
lea eax, [esp + 0x5c]
push str.updateNeedRebootLastTime
push eax
call fcn.00402eac
push dword [esp + 0x34]
lea ecx, [esp + 0x68]
call fcn.0042a03f
add esp, 0x1c
xor esi, esi
lea eax, [esp + 0x48]
push eax
push esi
push esi
push 0x4245a3
push esi
push esi
mov dword [esp + 0x60], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, esi
je 0x424529
push 0x7d0
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x424522
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
xor edi, edi
inc esi
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00401325
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.00401325
or dword [esp + 0x270], 0xffffffff
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.00401325
mov ebx, dword [esp + 0x30]
mov eax, dword [ebx]
push esi
push esi
mov ecx, ebx
mov dword [ebx + 0xac], edi
call dword [eax + 0x164]
push ebx
call fcn.00423ecd
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.0047b9fe
mov esp, ebp
pop ebp
ret 4
call fcn.0040228b
jmp 0x42452e