Function at 0x427e20
Capabilities:
Check for time delay via gettickcount
Create thread
Terminate thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ba5f9
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x58
push esi
push edi
mov eax, dword [0x6441a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x40], edi
mov eax, dword [0x64c4e8]
mov dword [ebp - 0x28], 1
test eax, eax
jne 0x427efb
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x64c4e8], eax
test eax, eax
jne 0x427efb
movups xmm0, xmmword [0x628d68]
sub esp, 0x10
mov edx, str.D:Tools_agentworkspaceWeChatUpdateWechatUpdateutilsFileOccupy.cpp
mov eax, esp
mov ecx, 4
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
push str.cant_LoadLibrary_ntdll.dll
push str.FileOccupy
push str.unlockProcessFileHandle
push 0x139
movups xmmword [eax], xmm0
call fcn.00403890
add esp, 0x70
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push str.NtQuerySystemInformation
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x427f81
movups xmm0, xmmword [0x628d68]
sub esp, 0x10
mov edx, str.D:Tools_agentworkspaceWeChatUpdateWechatUpdateutilsFileOccupy.cpp
mov eax, esp
mov ecx, 4
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
push str.cant_GetProcAddress_QuerySystemInfo
push str.FileOccupy
push str.unlockProcessFileHandle
push 0x142
movups xmmword [eax], xmm0
call fcn.00403890
add esp, 0x70
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
xor esi, esi
xor eax, eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x40]
mov edi, dword [edi]
mov eax, dword [eax + 4]
mov dword [ebp - 0x40], eax
cmp edi, eax
je 0x42801d
push edi
lea ecx, [ebp - 0x68]
call fcn.00406930
mov byte [ebp - 4], 1
lea eax, [ebp - 0x68]
push eax
cmp esi, dword [ebp - 0x30]
je 0x427fd6
mov ecx, esi
call fcn.00406930
add esi, 0x14
mov dword [ebp - 0x50], esi
jmp 0x427fe8
push esi
lea ecx, [ebp - 0x54]
call fcn.00418360
mov eax, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x50]
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x427ffc
push eax
call fcn.004d2e43
add esp, 4
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x42800c
push eax
call fcn.004d2e43
add esp, 4
add edi, 0x14
cmp edi, dword [ebp - 0x40]
jne 0x427fb1
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x24], eax
mov eax, 0x10000
mov dword [ebp - 0x2c], eax
mov edi, eax
shl edi, 4
add edi, 4
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x428081
push 0
push edi
push eax
push 0x10
call dword [ebp - 0x3c]
mov edi, eax
test edi, edi
jns 0x4280e3
push dword [ebp - 0x20]
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call eax
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x2c]
add eax, eax
mov dword [ebp - 0x2c], eax
cmp eax, 0x800000
jae 0x428081
cmp edi, 0xc0000004
je 0x428025
mov dword [ebp - 0x28], 0
mov edi, dword [ebp - 0x24]
test edi, edi
je 0x428618
push ecx
mov edx, esi
mov ecx, edi
call fcn.00418530
mov ecx, dword [ebp - 0x30]
mov eax, 0x66666667
sub ecx, edi
add esp, 4
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*4]
mov eax, edi
shl ecx, 2
cmp ecx, 0x1000
jb 0x42860e
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42862f
jmp 0x42860e
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x3c], ecx
mov ecx, dword [eax]
test ecx, ecx
je 0x4285f2
xor edi, edi
add eax, 4
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x14], eax
mov eax, edi
xor edx, edx
div ecx
mov edi, eax
cmp edi, dword [ebp - 0x34]
je 0x42817d
mov eax, dword fs:[0x2c]
mov ecx, dword [0x64cbc4]
mov dword [ebp - 0x34], edi
mov edx, dword [eax]
cmp ecx, dword [edx + 4]
jle 0x428169
push 0x64cbc4
call fcn.004ce09f
add esp, 4
cmp dword [0x64cbc4], 0xffffffff
jne 0x428169
mov byte [ebp - 4], 2
call fcn.00419dc0
push 0x5bfcc0
call fcn.004ce3b1
add esp, 4
mov byte [ebp - 4], 0
push 0x64cbc4
call fcn.004ce055
add esp, 4
push edi
push 0
push 0x466
push dword [0x64cdf4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp - 0x14]
mov al, byte [eax + 4]
cmp al, byte [0x64c76d]
mov eax, dword [ebp - 0x14]
jne 0x42834a
mov eax, dword [eax]
cmp eax, 4
je 0x428347
mov edx, dword [ebp - 0x38]
test edx, edx
je 0x4281ac
cmp eax, edx
je 0x428347
push eax
push 0
push 0x450
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 0x2c], edi
test edi, edi
jne 0x4281d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov dword [ebp - 0x38], ecx
jmp 0x42834a
push 0
push 0
push 0x2000000
push 0x64c354
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 6]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x42820a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x428347
mov eax, dword [ebp - 0x14]
push 0
push 0
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
push 0x427c40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
push 0x64
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x428244
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x64c4f0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x4282ff
mov esi, dword [ebp - 0x24]
cmp esi, dword [ebp - 0x18]
je 0x4282fc
mov eax, dword [esi]
test eax, eax
je 0x42827d
cmp word [eax], 0
jne 0x428282
mov eax, 0x628fa4
push 0xffffffffffffffff
xorps xmm0, xmm0
mov dword [ebp - 0x58], 0
push eax
lea ecx, [ebp - 0x68]
movups xmmword [ebp - 0x68], xmm0
call fcn.00406c40
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x4282ac
cmp word [eax], 0
jne 0x4282b1
mov eax, 0x628fa4
push dword [ebp - 0x64]
lea edi, [esi + 0x14]
push eax
push 0x64c4f0
call fcn.004d9259
add esp, 0xc
test eax, eax
je 0x428372
mov esi, edi
mov byte [ebp - 4], 0
mov edi, dword [ebp - 0x68]
test edi, edi
je 0x4282e3
push edi
call fcn.004d2e43
add esp, 4
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x4282f3
push eax
call fcn.004d2e43
add esp, 4
cmp esi, dword [ebp - 0x18]
jne 0x428271
mov esi, dword [ebp - 0x18]
push dword [0x64c354]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x2c]
mov dword [0x64c354], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, esi
cmp dword [ebp - 0x1c], 1
cmovne eax, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4285ef
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x3c]
add eax, 0x10
mov edi, dword [ebp - 0x40]
inc edx
mov dword [ebp - 0x14], eax
add edi, 0x64
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], edi
mov ecx, dword [eax]
cmp edx, ecx
jb 0x428106
jmp 0x4285f2
cmp edi, dword [ebp - 0x18]
je 0x4283a6
sub esi, edi
nop dword [eax]
mov eax, dword [edi]
test eax, eax
je 0x42838c
cmp word [eax], 0
jne 0x428391
mov eax, 0x628fa4
push dword [edi + esi + 0x18]
lea ecx, [edi + esi]
push eax
call fcn.00406c40
add edi, 0x14
cmp edi, dword [ebp - 0x18]
jne 0x428380
mov esi, dword [ebp - 0x18]
add esi, 0xffffffec
mov dword [ebp - 0x18], esi
mov eax, dword [esi]
test eax, eax
je 0x4283c4
push eax
call fcn.004d2e43
add esp, 4
mov dword [esi], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4283f0
push eax
call fcn.004d2e43
add esp, 4
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
push dword [0x64c354]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x50], esi
call edi
push dword [ebp - 0x2c]
mov dword [0x64c354], 0
call edi
mov eax, dword [ebp - 0x14]
push dword [eax]
push 0
push 0x450
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 0x2c], edi
test edi, edi
jne 0x4284df
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x68]
mov edx, eax
mov dword [ebp - 0x1c], 1
test edi, edi
je 0x42844d
cmp word [edi], 0
mov ecx, edi
jne 0x428452
mov ecx, 0x628fa4
movups xmm0, xmmword [0x628d68]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
mov dword [eax + 8], ecx
mov ecx, esp
push edx
mov byte [eax], 3
call fcn.004182c0
push str.unlock_failed_open_process_err_errcode:__d__file_:_s
push str.FileOccupy
push str.unlockProcessFileHandle
push 0x1ab
mov edx, str.D:Tools_agentworkspaceWeChatUpdateWechatUpdateutilsFileOccupy.cpp
mov ecx, 4
call fcn.00403890
add esp, 0x70
mov byte [ebp - 4], 0
test edi, edi
je 0x4284c6
push edi
call fcn.004d2e43
add esp, 4
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x4282ff
push eax
call fcn.004d2e43
add esp, 4
jmp 0x4282ff
push 1
push 0
push 0x2000000
push 0x64c354
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 6]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x4285bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x68]
mov edx, eax
mov dword [ebp - 0x1c], 1
test edi, edi
je 0x428529
cmp word [edi], 0
mov ecx, edi
jne 0x42852e
mov ecx, 0x628fa4
movups xmm0, xmmword [0x628d68]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
mov dword [eax + 8], ecx
mov ecx, esp
push edx
mov byte [eax], 3
call fcn.004182c0
push str.unlock_failed_duplicate_handle_err_errcode:__d__file:__s
push str.FileOccupy
push str.unlockProcessFileHandle
push 0x1b5
mov edx, str.D:Tools_agentworkspaceWeChatUpdateWechatUpdateutilsFileOccupy.cpp
mov ecx, 4
call fcn.00403890
add esp, 0x70
mov byte [ebp - 4], 0
test edi, edi
je 0x4285a2
push edi
call fcn.004d2e43
add esp, 4
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x4282ff
push eax
call fcn.004d2e43
add esp, 4
jmp 0x4282ff
mov byte [ebp - 4], 0
mov edi, dword [ebp - 0x68]
mov dword [ebp - 0x1c], 2
test edi, edi
je 0x4285d6
push edi
call fcn.004d2e43
add esp, 4
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x4282ff
push eax
call fcn.004d2e43
add esp, 4
jmp 0x4282ff
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call eax
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x428088
push ecx
push edi
call fcn.004ce3c6
add esp, 8
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004d8605
int3