Function at 0x427dc0
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 0x427e9b
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x64c4e8], eax
test eax, eax
jne 0x427e9b
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 0x427f21
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 0x427fbd
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 0x427f76
mov ecx, esi
call fcn.00406930
add esi, 0x14
mov dword [ebp - 0x50], esi
jmp 0x427f88
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 0x427f9c
push eax
call fcn.004d2e13
add esp, 4
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x427fac
push eax
call fcn.004d2e13
add esp, 4
add edi, 0x14
cmp edi, dword [ebp - 0x40]
jne 0x427f51
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 0x428021
push 0
push edi
push eax
push 0x10
call dword [ebp - 0x3c]
mov edi, eax
test edi, edi
jns 0x428083
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 0x428021
cmp edi, 0xc0000004
je 0x427fc5
mov dword [ebp - 0x28], 0
mov edi, dword [ebp - 0x24]
test edi, edi
je 0x4285b8
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 0x4285ae
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4285cf
jmp 0x4285ae
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 0x428592
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 0x42811d
mov eax, dword fs:[0x2c]
mov ecx, dword [0x64cbc4]
mov dword [ebp - 0x34], edi
mov edx, dword [eax]
cmp ecx, dword [edx + 4]
jle 0x428109
push 0x64cbc4
call fcn.004ce06f
add esp, 4
cmp dword [0x64cbc4], 0xffffffff
jne 0x428109
mov byte [ebp - 4], 2
call fcn.00419dc0
push 0x5bfcc0
call fcn.004ce381
add esp, 4
mov byte [ebp - 4], 0
push 0x64cbc4
call fcn.004ce025
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 0x4282ea
mov eax, dword [eax]
cmp eax, 4
je 0x4282e7
mov edx, dword [ebp - 0x38]
test edx, edx
je 0x42814c
cmp eax, edx
je 0x4282e7
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 0x428176
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov dword [ebp - 0x38], ecx
jmp 0x4282ea
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 0x4281aa
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4282e7
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 0x427be0
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 0x4281e4
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 0x42829f
mov esi, dword [ebp - 0x24]
cmp esi, dword [ebp - 0x18]
je 0x42829c
mov eax, dword [esi]
test eax, eax
je 0x42821d
cmp word [eax], 0
jne 0x428222
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 0x42824c
cmp word [eax], 0
jne 0x428251
mov eax, 0x628fa4
push dword [ebp - 0x64]
lea edi, [esi + 0x14]
push eax
push 0x64c4f0
call fcn.004d9229
add esp, 0xc
test eax, eax
je 0x428312
mov esi, edi
mov byte [ebp - 4], 0
mov edi, dword [ebp - 0x68]
test edi, edi
je 0x428283
push edi
call fcn.004d2e13
add esp, 4
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x428293
push eax
call fcn.004d2e13
add esp, 4
cmp esi, dword [ebp - 0x18]
jne 0x428211
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 0x42858f
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 0x4280a6
jmp 0x428592
cmp edi, dword [ebp - 0x18]
je 0x428346
sub esi, edi
nop dword [eax]
mov eax, dword [edi]
test eax, eax
je 0x42832c
cmp word [eax], 0
jne 0x428331
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 0x428320
mov esi, dword [ebp - 0x18]
add esi, 0xffffffec
mov dword [ebp - 0x18], esi
mov eax, dword [esi]
test eax, eax
je 0x428364
push eax
call fcn.004d2e13
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 0x428390
push eax
call fcn.004d2e13
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 0x42847f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x68]
mov edx, eax
mov dword [ebp - 0x1c], 1
test edi, edi
je 0x4283ed
cmp word [edi], 0
mov ecx, edi
jne 0x4283f2
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 0x428466
push edi
call fcn.004d2e13
add esp, 4
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x42829f
push eax
call fcn.004d2e13
add esp, 4
jmp 0x42829f
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 0x42855b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x68]
mov edx, eax
mov dword [ebp - 0x1c], 1
test edi, edi
je 0x4284c9
cmp word [edi], 0
mov ecx, edi
jne 0x4284ce
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 0x428542
push edi
call fcn.004d2e13
add esp, 4
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x42829f
push eax
call fcn.004d2e13
add esp, 4
jmp 0x42829f
mov byte [ebp - 4], 0
mov edi, dword [ebp - 0x68]
mov dword [ebp - 0x1c], 2
test edi, edi
je 0x428576
push edi
call fcn.004d2e13
add esp, 4
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x42829f
push eax
call fcn.004d2e13
add esp, 4
jmp 0x42829f
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 0x428028
push ecx
push edi
call fcn.004ce396
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.004d85d5
int3