Function at 0x404e90
Capabilities:
Check for time delay via gettickcount
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1284
call fcn.00557630
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 4], edx
push eax
mov edi, ecx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x404eea
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
call fcn.005793c0
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movsd qword [ebp - 0x28], xmm0
call fcn.005793c0
movsd xmm1, qword [ebp - 0x28]
divsd xmm1, xmm0
movsd qword [ebp - 0x28], xmm1
jmp 0x404f11
call dword [sym.imp.KERNEL32.dll_GetTickCount]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x5c8190]
mulsd xmm0, qword [0x5c8128]
movsd qword [ebp - 0x28], xmm0
push 0x38
xorps xmm0, xmm0
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x68]
movq qword [ebp - 0xa8], xmm0
push 0
push eax
movups xmmword [ebp - 0xb8], xmm0
mov dword [ebp - 0x18], esi
call fcn.005593b0
add esp, 0xc
lea eax, [ebp - 0xa0]
push 0x38
push 0
push eax
call fcn.005593b0
add esp, 0xc
lea eax, [ebp - 0x100]
push 0x48
push 0
push eax
call fcn.005593b0
add esp, 0xc
push str.old_:__
call fcn.00402ba0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 4
test edi, edi
je 0x404fd5
push 0x800
lea eax, [ebp - 0x1280]
push eax
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jg 0x404fc1
call ebx
xor ebx, ebx
cmp eax, 0x7a
setne bl
lea ebx, [ebx*4 + 0x26]
call fcn.0055f457
push edi
push 0x5c4400
mov dword [eax], ebx
call fcn.00402ba0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x404fd2
lea eax, [ebp - 0x1280]
push eax
push 0x5c43fc
call fcn.00402ba0
add esp, 8
push str.__ndiff:__
call fcn.00402ba0
add esp, 4
lea eax, [ebp - 0x1280]
push 0x800
push eax
push 0xffffffffffffffff
push dword [ebp - 4]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jg 0x405026
call ebx
xor ebx, ebx
cmp eax, 0x7a
setne bl
lea ebx, [ebx*4 + 0x26]
call fcn.0055f457
mov ecx, dword [ebp - 4]
mov dword [eax], ebx
mov eax, 0x5c4400
jmp 0x405031
mov eax, 0x5c43fc
lea ecx, [ebp - 0x1280]
push ecx
push eax
call fcn.00402ba0
push str.__nout_:__
call fcn.00402ba0
add esp, 0xc
lea eax, [ebp - 0x1280]
push 0x800
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jg 0x40508d
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x7a
setne bl
lea ebx, [ebx*4 + 0x26]
call fcn.0055f457
mov ecx, dword [ebp + 8]
mov dword [eax], ebx
mov eax, 0x5c4400
jmp 0x405098
mov eax, 0x5c43fc
lea ecx, [ebp - 0x1280]
push ecx
push eax
call fcn.00402ba0
push 0x5c443c
call fcn.00402ba0
add esp, 0xc
test edi, edi
je 0x4050f0
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4050b5
sub ecx, edx
je 0x4050f0
mov edx, edi
lea ecx, [ebp - 0x68]
call fcn.004162f0
test eax, eax
jne 0x4050f7
push str.open_oldFile_for_read_ERROR__n
push 2
call fcn.0055f14d
add esp, 4
push eax
call fcn.00402b80
add esp, 8
mov esi, 2
jmp 0x405650
mov dword [ebp - 0x58], 0x416b70
mov edx, dword [ebp - 4]
lea ecx, [ebp - 0xa0]
call fcn.004162f0
test eax, eax
jne 0x405110
push str.open_diffFile_for_read_ERROR__n
jmp 0x4050d3
lea eax, [ebp - 0xa0]
push eax
lea edx, [ebp - 0x280]
lea ecx, [ebp - 0x218]
call fcn.00417e40
add esp, 4
test eax, eax
jne 0x405259
cmp dword [ebp - 0x70], esi
je 0x40515a
push str.read_diffFile_ERROR__n
push 2
call fcn.0055f14d
add esp, 4
push eax
call fcn.00402b80
add esp, 8
mov esi, 4
jmp 0x405650
sub esp, 8
lea edx, [ebp - 0xa0]
lea ecx, [ebp - 0x3c0]
call fcn.00419310
add esp, 8
test eax, eax
je 0x405237
lea ecx, [ebp - 0x388]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405182
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x388]
push eax
lea eax, [ebp - 0x204]
push eax
call fcn.00559510
mov ecx, dword [ebp - 0x3bc]
xor eax, eax
mov edi, dword [ebp - 0x38c]
add esp, 0xc
cmp byte [ebp - 0x388], al
mov dword [ebp - 0x214], ecx
mov ecx, dword [ebp - 0x3b4]
setne al
mov dword [ebp - 0x208], eax
mov eax, dword [ebp - 0x3c0]
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x3b8]
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x20c], ecx
test edi, edi
jne 0x405215
push str.patch_single_compressed_diffData__n
mov dword [ebp - 0x14], 1
call fcn.00402ba0
mov ecx, 0x3000
add esp, 4
cmp dword [ebp + 0x10], ecx
cmovae ecx, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
jmp 0x405265
push str.stepMemSize_too_large_ERROR__n
push 2
call fcn.0055f14d
add esp, 4
push eax
call fcn.00402b80
add esp, 8
mov esi, 8
jmp 0x405650
push str.is_hdiff_file__get_diffInfo_ERROR__n
push 2
call fcn.0055f14d
add esp, 4
push eax
call fcn.00402b80
add esp, 8
mov esi, 9
jmp 0x405650
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp - 0x38c]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x60]
mov ebx, dword [ebp - 0x210]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x20c]
cmp edx, ebx
jne 0x40562e
cmp eax, ecx
jne 0x40562e
mov edx, dword [ebp - 0xb4]
test edx, edx
jne 0x4052d7
mov ebx, dword [ebp - 0x208]
test ebx, ebx
jne 0x405327
lea ecx, [ebp - 0x204]
lea eax, [ecx + 1]
mov dword [ebp - 0xc], eax
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4052b0
sub ecx, dword [ebp - 0xc]
je 0x4052d7
push ebx
lea eax, [ebp - 0x204]
push eax
push str.hpatchz_run_with_decompress_plugin:___s___need_decompress__d__n
call fcn.00402ba0
mov edx, dword [ebp - 0xb4]
add esp, 0xc
push dword [ebp - 0x214]
xor eax, eax
lea ebx, [ebp - 0xb8]
push dword [ebp - 0x218]
test edx, edx
lea ecx, [ebp - 0x100]
mov edx, dword [ebp + 8]
cmove ebx, eax
call fcn.004167d0
add esp, 8
test eax, eax
jne 0x405350
push str.open_out_newFile_for_write_ERROR__n
push 2
call fcn.0055f14d
add esp, 4
push eax
call fcn.00402b80
add esp, 8
mov esi, 3
jmp 0x405650
lea eax, [ebp - 0x204]
push eax
push str.can_not_decompress___s__data_ERROR__n
push 2
call fcn.0055f14d
add esp, 4
push eax
call fcn.00402b80
add esp, 0xc
mov esi, 0xa
jmp 0x405650
push dword [ebp - 0xf4]
push dword [ebp - 0xf8]
push dword [ebp - 0x94]
push dword [ebp - 0x98]
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
push str.oldDataSize_:__I64u_ndiffDataSize:__I64u_nnewDataSize_:__I64u_n
call fcn.00402ba0
mov edx, dword [ebp - 4]
lea ecx, [ebp - 0x1c]
add esp, 0x1c
xor eax, eax
cmp dword [ebp - 0x14], eax
cmovne eax, dword [ebp - 0x390]
push ecx
push dword [ebp - 0x5c]
mov ecx, dword [ebp + 0xc]
push dword [ebp - 0x60]
push eax
call fcn.00404e00
mov ecx, eax
add esp, 0x10
mov dword [ebp - 0x18], ecx
test ecx, ecx
jne 0x4053b3
push str.alloc_cache_memory_ERROR__n
jmp 0x40521a
cmp dword [ebp - 0x14], esi
je 0x405445
mov edx, dword [ebp - 0x390]
mov eax, edx
mov ecx, dword [ebp - 0x1c]
add eax, 0x3000
adc edi, esi
cmp esi, edi
ja 0x4053e2
jb 0x4053d8
cmp ecx, eax
jae 0x4053e2
push str.alloc_cache_memory_ERROR__n
jmp 0x40521a
mov edi, dword [ebp - 0x18]
push ecx
lea eax, [ecx + edi]
push eax
push edi
push edx
push dword [ebp - 0x394]
lea eax, [ebp - 0xa0]
push dword [ebp - 0x398]
lea edx, [ebp - 0x68]
push ebx
push dword [ebp - 0x3a4]
lea ecx, [ebp - 0x100]
push dword [ebp - 0x3a8]
push dword [ebp - 0x3ac]
push dword [ebp - 0x3b0]
push dword [ebp - 0x39c]
push dword [ebp - 0x3a0]
push eax
call fcn.00419220
add esp, 0x38
test eax, eax
jne 0x4054cb
lea esi, [eax + 0x10]
jmp 0x405510
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0xc]
add eax, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x2c], esi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0x1c], esi
push eax
push ecx
push ebx
push ecx
lea eax, [ebp - 0xa0]
push eax
push dword [ebp - 0xf4]
lea ecx, [ebp - 0x2c]
push dword [ebp - 0xf8]
call fcn.00418e80
add esp, 0x24
cmp dword [ebp - 0x1c], esi
jne 0x40550b
push dword [ebp - 0x14]
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0xa0]
push dword [ebp - 4]
lea ecx, [ebp - 0x100]
push edi
push ebx
push eax
push dword [ebp - 0xc]
call fcn.004180d0
add esp, 0x18
mov ebx, eax
test edi, edi
je 0x4054c7
mov eax, dword [edi + 0xc]
push edi
call eax
add esp, 4
test eax, eax
je 0x40550b
test ebx, ebx
je 0x40550b
mov edx, dword [ebp - 0xc0]
mov edi, dword [ebp - 0xf8]
mov eax, dword [ebp - 0xbc]
mov ecx, dword [ebp - 0xf4]
cmp edx, edi
jne 0x4054fd
cmp eax, ecx
jne 0x4054fd
push str.__patch_ok__n
call fcn.00402ba0
add esp, 4
jmp 0x405650
push ecx
push edi
push eax
push edx
push str.out_newFile_dataSize__I64u___diffFile_saved_newDataSize__I64u_ERROR__n
jmp 0x405637
mov esi, 0xb
cmp dword [ebp - 0x38], 0
je 0x405520
push str.oldFile_read_ERROR__n
jmp 0x40513d
cmp dword [ebp - 0x70], 0
je 0x405530
push str.diffFile_read_ERROR__n
jmp 0x40513d
mov eax, dword [ebp - 0xd0]
test eax, eax
je 0x40557c
push str.out_newFile_write_ERROR__n
push 2
cmp eax, 0x1c
jne 0x405561
call fcn.0055f14d
add esp, 4
push eax
call fcn.00402b80
add esp, 8
mov esi, 0x18
jmp 0x405650
call fcn.0055f14d
add esp, 4
push eax
call fcn.00402b80
add esp, 8
mov esi, 5
jmp 0x405650
mov eax, dword [ebp - 0xa4]
cmp eax, 4
ja case.0x40558b.3
jmp dword [eax*4 + 0x405860]
push str.decompressPlugin_alloc_memory_ERROR__n
push 2
call fcn.0055f14d
add esp, 4
push eax
call fcn.00402b80
add esp, 8
mov esi, 0x16
jmp 0x405650
push str.decompressPlugin_open_ERROR__n
push 2
call fcn.0055f14d
add esp, 4
push eax
call fcn.00402b80
add esp, 8
mov esi, 0x14
jmp 0x405650
push str.decompressPlugin_close_ERROR__n
push 2
call fcn.0055f14d
add esp, 4
push eax
call fcn.00402b80
add esp, 8
mov esi, 0x15
jmp 0x405650
push str.patch_run_ERROR__n
push 2
call fcn.0055f14d
add esp, 4
push eax
call fcn.00402b80
add esp, 8
jmp 0x405650
push str.decompressPlugin_decompress_ERROR__n
push 2
call fcn.0055f14d
add esp, 4
push eax
call fcn.00402b80
add esp, 8
mov esi, 0x17
jmp 0x405650
push ecx
push ebx
push eax
push edx
push str.oldFile_dataSize__I64u___diffFile_saved_oldDataSize__I64u_ERROR__n
push 2
call fcn.0055f14d
add esp, 4
push eax
call fcn.00402b80
mov esi, 6
add esp, 0x18
nop
mov eax, dword [ebp - 0xe8]
mov ebx, 7
test eax, eax
je 0x4056da
push eax
mov dword [ebp - 0xe8], 0
call fcn.00560ba2
add esp, 4
test eax, eax
je 0x4056da
call fcn.0055f457
mov edi, dword [eax]
mov eax, dword [ebp - 0xd0]
cmp eax, edi
je 0x4056bd
test edi, edi
je 0x4056bd
test eax, eax
push edi
cmove eax, edi
mov dword [ebp - 0xd0], eax
call fcn.0055f714
add esp, 4
push eax
push edi
push str.call_import_system_api_error__errno:__d__errmsg:__s._n
push 2
call fcn.0055f14d
add esp, 4
push eax
call fcn.00402b80
add esp, 0x10
push str.out_newFile_close_ERROR__n
push 2
call fcn.0055f14d
add esp, 4
push eax
call fcn.00402b80
add esp, 8
test esi, esi
cmove esi, ebx
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x405755
push eax
mov dword [ebp - 0x88], 0
call fcn.00560ba2
add esp, 4
test eax, eax
je 0x405755
call fcn.0055f457
mov edi, dword [eax]
mov eax, dword [ebp - 0x70]
cmp eax, edi
je 0x405738
test edi, edi
je 0x405738
test eax, eax
push edi
cmove eax, edi
mov dword [ebp - 0x70], eax
call fcn.0055f714
add esp, 4
push eax
push edi
push str.call_import_system_api_error__errno:__d__errmsg:__s._n
push 2
call fcn.0055f14d
add esp, 4
push eax
call fcn.00402b80
add esp, 0x10
push str.diffFile_close_ERROR__n
push 2
call fcn.0055f14d
add esp, 4
push eax
call fcn.00402b80
add esp, 8
test esi, esi
cmove esi, ebx
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x4057ca
push eax
mov dword [ebp - 0x50], 0
call fcn.00560ba2
add esp, 4
test eax, eax
je 0x4057ca
call fcn.0055f457
mov edi, dword [eax]
mov eax, dword [ebp - 0x38]
cmp eax, edi
je 0x4057ad
test edi, edi
je 0x4057ad
test eax, eax
push edi
cmove eax, edi
mov dword [ebp - 0x38], eax
call fcn.0055f714
add esp, 4
push eax
push edi
push str.call_import_system_api_error__errno:__d__errmsg:__s._n
push 2
call fcn.0055f14d
add esp, 4
push eax
call fcn.00402b80
add esp, 0x10
push str.oldFile_close_ERROR__n
push 2
call fcn.0055f14d
add esp, 4
push eax
call fcn.00402b80
add esp, 8
test esi, esi
cmove esi, ebx
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4057da
push eax
call fcn.0055bf43
add esp, 4
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x405818
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
call fcn.005793c0
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
movsd qword [ebp - 0x20], xmm0
call fcn.005793c0
movsd xmm1, qword [ebp - 0x20]
divsd xmm1, xmm0
jmp 0x40583a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x5c8190]
mulsd xmm1, qword [0x5c8128]
subsd xmm1, qword [ebp - 0x28]
sub esp, 8
movsd qword [esp], xmm1
push str._nhpatchz_time:__.3f_s_n
call fcn.00402ba0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret