Function at 0x686260
Capabilities:
Check for time delay via gettickcount
Delete file
Get file size
Get thread local storage value
Move file
Set file attributes
Timestomp file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x887b2b
push eax
mov dword fs:[0], esp
sub esp, 0xb60
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
mov dword [0x9dd478], esi
call edi
mov ebp, dword [esp + 0xb80]
mov dword [0x9dd480], eax
cmp ebp, esi
je 0x686d69
cmp word [ebp], si
je 0x686d69
mov ebx, dword [esp + 0xb84]
cmp ebx, esi
je 0x686d69
cmp word [ebx], si
je 0x686d69
cmp dword [0x9dd484], esi
jne 0x6862e6
mov dword [0x9dd478], 2
mov dword [0x9dd47c], 0x28ee
jmp 0x686d7d
push ebp
call fcn.006a31f0
add esp, 4
mov dword [esp + 0x4c], eax
test al, 0x10
je 0x686310
mov dword [0x9dd478], 0x1d
mov dword [0x9dd47c], 0x28f6
jmp 0x686d7d
push ebx
call fcn.006a31f0
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x68633e
test bl, 0x10
je 0x68633e
mov dword [0x9dd478], 0x1e
mov dword [0x9dd47c], 0x2900
jmp 0x686d7d
mov ecx, dword [0x8ab26c]
mov eax, 1
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0xb94]
mov dword [esp + 0xb78], esi
cmp ecx, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x28], esi
mov dword [esp + 0x38], esi
je 0x68638a
mov ecx, dword [esp + 0xb98]
mov dword [esp + 0x1c], eax
cmp ecx, esi
jne 0x68638e
mov dword [esp + 0x1c], esi
cmp ebx, 0xffffffff
jne 0x686397
mov dword [esp + 0x1c], esi
mov ecx, 0xe1
xor eax, eax
lea edi, [esp + 0x81]
mov byte [esp + 0x80], 0
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0xb8c]
push ebp
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [esp + 0x40], edx
call fcn.0067c540
add esp, 4
cmp eax, esi
mov dword [esp + 0x50], eax
jne 0x686a71
mov ecx, dword [esp + 0xba0]
mov eax, 5
cmp ecx, esi
je 0x6863e7
mov eax, 7
push esi
push 0x80
push 3
push esi
push eax
push SysReAllocString
push ebp
call fcn.006a4030
add esp, 0x1c
cmp eax, 0xffffffff
mov dword [esp + 0x2c], eax
je 0x686ba1
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push eax
call fcn.0067f760
add esp, 0x20
test eax, eax
jne 0x686bc5
cmp ebx, 0xffffffff
setne al
mov ebp, eax
cmp ebp, esi
je 0x68650e
mov edx, dword [esp + 0xb84]
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x60]
mov dword [esp + 0x5c], esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x5c]
push ecx
push esi
push edx
call fcn.006a3220
add esp, 0xc
test eax, eax
je 0x6864f5
cmp dword [esp + 0x7c], esi
jne 0x686473
cmp dword [esp + 0x78], esi
je 0x6864f5
mov eax, dword [0x9dda44]
mov edi, dword [esp + 0xb84]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x992874
push edi
call fcn.006a3d00
add esp, 0x10
test eax, eax
je 0x6864d4
mov edx, dword [esp + 0x10]
push 2
push edx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x6864b3
mov dword [esp + 0x18], 1
jmp 0x6864fc
mov dword [0x9dd478], 0x28
mov dword [0x9dd47c], 0x2987
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x9dd480], eax
jmp 0x6864fc
mov dword [0x9dd478], 0x24
mov dword [0x9dd47c], 0x298e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x9dd480], eax
jmp 0x6864fc
mov edi, dword [esp + 0xb84]
test bl, 1
je 0x686515
and ebx, 0xfffffffe
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x686515
mov edi, dword [esp + 0xb84]
push esi
push 0x80
push 4
push esi
push esi
push 0xc0000000
push edi
call fcn.006a4030
add esp, 0x1c
cmp eax, 0xffffffff
mov dword [esp + 0x20], eax
je 0x686be4
cmp ebp, esi
je 0x68654a
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], esi
cmp eax, esi
je 0x686552
mov dword [esp + 0x14], 1
cmp ebp, esi
mov dword [esp + 0x40], 1
je 0x6866e0
mov eax, dword [esp + 0x18]
xor esi, esi
or ebx, 0xffffffff
or ebp, 0xffffffff
cmp eax, esi
je 0x6865d5
mov eax, dword [esp + 0x10]
push esi
push 0x80
push 4
push esi
push 7
push SysReAllocString
push eax
call fcn.006a4030
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x6865d9
cmp dword [esp + 0x1c], esi
je 0x6865d1
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], esi
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, esi
jne 0x6865b6
cmp dword [esp + 0x30], esi
je 0x6865cd
cmp dword [esp + 0xb94], 1
jne 0x6865d1
push ebp
call fcn.0067bd20
add esp, 4
test eax, eax
je 0x6865d1
mov dword [esp + 0x1c], esi
mov ebx, ebp
jmp 0x6865d9
mov ebx, dword [esp + 0x20]
cmp dword [esp + 0xb88], esi
jne 0x6866d4
cmp ebx, 0xffffffff
je 0x6866d4
mov ecx, 0xe1
xor eax, eax
lea edi, [esp + 0x409]
mov byte [esp + 0x408], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x408]
push edx
push ebx
stosb byte es:[edi], al
call fcn.00685320
add esp, 8
test eax, eax
je 0x6866d4
mov eax, dword [esp + 0x408]
mov ecx, dword [esp + 0x40c]
mov edx, dword [esp + 0x410]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x414]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0xb8c]
mov ecx, 0x66
lea esi, [esp + 0x450]
lea edi, [esp + 0xc8]
mov dword [esp + 0x88], edx
test eax, eax
mov dword [esp + 0x40], 0
rep movsd dword es:[edi], dword [esi]
jne 0x6866d4
mov eax, dword [esp + 0x788]
test eax, eax
jbe 0x6866d4
push eax
call fcn.008325b4
mov ecx, dword [esp + 0x78c]
mov edx, eax
mov esi, ecx
xor eax, eax
mov edi, edx
mov dword [esp + 0x40], edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x78c]
lea ecx, [esp + 0x34]
push ecx
push eax
push edx
push 0
push ebx
mov dword [esp + 0x48], 0
call fcn.0067fe50
add esp, 0x18
cmp ebp, 0xffffffff
je 0x6866e0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0xf7
xor eax, eax
lea edi, [esp + 0x791]
mov byte [esp + 0x790], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x790]
test ecx, ecx
stosb byte es:[edi], al
jne 0x686740
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x9dd478], 1
mov dword [0x9dd47c], 0x2759
call esi
mov dword [0x9dd480], eax
mov dword [0x9dd478], 7
mov dword [0x9dd47c], 0x29fb
jmp 0x6867d9
mov eax, dword [0x992b48]
mov edx, dword [0x992b44]
mov ecx, dword [0x992b4c]
mov dword [esp + 0x794], eax
xor eax, eax
mov dword [esp + 0x790], edx
mov edx, dword [0x992b50]
mov dword [esp + 0x7b4], eax
mov dword [esp + 0x7b8], eax
mov dword [esp + 0x7bc], eax
lea eax, [esp + 0x80]
mov dword [esp + 0x798], ecx
test eax, eax
mov dword [esp + 0x79c], edx
mov dword [esp + 0x7b0], 2
jne 0x6868ac
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x9dd478], 1
mov dword [0x9dd47c], 0x279a
call esi
mov dword [0x9dd480], eax
mov dword [0x9dd478], 8
mov dword [0x9dd47c], 0x2a02
call esi
mov dword [0x9dd480], eax
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x20]
cmp edi, 0xffffffff
je 0x6867fb
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xb8c]
test eax, eax
jne 0x686817
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x686817
push eax
call fcn.008325dd
add esp, 4
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x686ce0
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x686c66
mov eax, dword [0x9dda38]
test eax, eax
je 0x686c66
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x9dd478], 0
call ebp
mov edi, dword [esp + 0xb84]
mov dword [0x9dd480], eax
push edi
call fcn.005fc40b
add esp, 4
test eax, eax
je 0x686c49
push 0
push 0
push 3
push 0
push 7
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x686c03
mov dword [0x9dd478], 3
mov dword [0x9dd47c], 0x374f
call ebp
mov dword [0x9dd480], eax
jmp 0x686c6d
lea ecx, [esp + 0x260]
test ecx, ecx
jne 0x6868d8
mov dword [0x9dd478], 1
mov dword [0x9dd47c], 0x2781
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x9dd480], eax
jmp 0x686927
mov ecx, 0x66
xor eax, eax
lea edi, [esp + 0x260]
mov esi, 0x9dd488
rep stosd dword es:[edi], eax
mov eax, dword [0x992870]
mov ecx, 0x66
lea edi, [esp + 0x260]
cmp eax, 0xffffffff
rep movsd dword es:[edi], dword [esi]
je 0x686917
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x686917
mov dword [esp + 0x280], eax
lea edx, [esp + 0x260]
push edx
call fcn.006a31d0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x40]
test eax, eax
je 0x686961
mov ecx, 0x66
lea esi, [esp + 0x260]
lea edi, [esp + 0xc8]
lea eax, [esp + 0x80]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.006a3260
add esp, 4
mov ecx, dword [0x9dda3c]
mov edx, dword [0x9dda40]
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x48]
mov dword [esp + 0x3f4], edx
push eax
lea edx, [esp + 0x84]
push ecx
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x798]
push edx
mov edx, dword [esp + 0x38]
push eax
push ecx
push edx
mov dword [esp + 0x60], 0
call fcn.00686db0
mov ecx, dword [esp + 0x60]
add esp, 0x18
test ecx, ecx
je 0x6869c7
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x6869c7
mov dword [esp + 0x14], 1
test eax, eax
je 0x6867e0
mov bl, byte [esp + 0xb9c]
test bl, 1
je 0x686a2b
mov esi, dword [esp + 0x2c]
xor eax, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
lea eax, [esp + 0x40]
lea ecx, [esp + 0x30]
push eax
lea edx, [esp + 0x58]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x40]
lea ecx, [esp + 0x30]
push eax
lea edx, [esp + 0x58]
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x686a33
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x2c]
test bl, 4
je 0x686a4b
lea eax, [esp + 0x38]
lea ecx, [esp + 0x28]
push eax
push ecx
push esi
call fcn.006a3820
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xba4]
test eax, eax
je 0x686a64
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [esp + 0x24], 0
jmp 0x6867ef
xor eax, eax
cmp ebx, 0xffffffff
setne al
cmp eax, esi
mov ebx, 0x24
je 0x686b33
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x60]
mov dword [esp + 0x5c], esi
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0xb84]
lea edx, [esp + 0x5c]
push edx
push esi
push edi
call fcn.006a3220
add esp, 0xc
test eax, eax
je 0x686b27
cmp dword [esp + 0x7c], esi
jne 0x686abd
cmp dword [esp + 0x78], esi
je 0x686b27
mov eax, dword [0x9dda44]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x992874
push edi
call fcn.006a3d00
add esp, 0x10
test eax, eax
je 0x686b0c
mov edx, dword [esp + 0x10]
push 2
push edx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x686af6
mov dword [esp + 0x18], 1
jmp 0x686b27
mov dword [0x9dd478], 0x28
mov dword [0x9dd47c], 0x2936
jmp 0x686b1c
mov dword [0x9dd478], ebx
mov dword [0x9dd47c], 0x293d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x9dd480], eax
cmp dword [esp + 0x18], esi
jne 0x686b3a
mov dword [esp + 0x14], esi
jmp 0x686b42
mov edi, dword [esp + 0xb84]
mov dword [esp + 0x14], 1
test byte [esp + 0xb9c], 4
je 0x686b5f
lea eax, [esp + 0x38]
lea ecx, [esp + 0x28]
push eax
push ecx
push ebp
call fcn.006a39f0
add esp, 0xc
mov edx, dword [esp + 0xba4]
push edx
push 0xffffffffffffffff
push esi
push edi
push ebp
call fcn.00679970
add esp, 0x14
test eax, eax
je 0x686b81
mov dword [esp + 0x24], esi
jmp 0x6867fb
mov dword [0x9dd478], ebx
mov dword [0x9dd47c], 0x2951
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x9dd480], eax
jmp 0x6867fb
mov dword [0x9dd478], 3
mov dword [0x9dd47c], 0x2969
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x9dd480], eax
jmp 0x6867fb
mov dword [0x9dd478], 0x2a
mov dword [0x9dd47c], 0x2970
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x6867db
mov dword [0x9dd478], 4
mov dword [0x9dd47c], 0x29a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x6867db
lea ecx, [esp + 0x80]
push ecx
push esi
call fcn.0068ced0
add esp, 8
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x686c6d
mov dword [0x9dd478], 0x1c
mov dword [0x9dd47c], 0x2a35
call ebp
mov dword [0x9dd480], eax
mov dword [esp + 0x24], 0xffffffff
jmp 0x686ce7
mov dword [0x9dd478], 1
mov dword [0x9dd47c], 0x3740
call ebp
mov dword [0x9dd480], eax
jmp 0x686c6d
mov edi, dword [esp + 0xb84]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x686c84
mov edx, dword [esp + 0x38]
push edx
push eax
push edi
call fcn.006a3aa0
add esp, 0xc
test byte [esp + 0xb9c], 2
je 0x686c9a
mov eax, dword [esp + 0x4c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x686d36
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x686cc2
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xb98]
push 0x103
push ecx
push edx
jmp 0x686d2e
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x686d36
mov ecx, dword [esp + 0x10]
push ecx
call fcn.006a3b20
add esp, 4
jmp 0x686d36
mov edi, dword [esp + 0xb84]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x686cf6
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x686d36
mov edx, dword [esp + 0x10]
push 3
push edi
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x686d36
mov eax, dword [esp + 0xb90]
mov dword [esp + 0x24], 0xffffffff
test eax, eax
je 0x686d36
mov ecx, dword [esp + 0x10]
push 0x103
push ecx
push eax
call fcn.005fc3ce
add esp, 0xc
mov eax, dword [esp + 0x28]
test eax, eax
je 0x686d4f
push eax
call fcn.008325dd
add esp, 4
mov dword [esp + 0x28], 0
lea ecx, [esp + 0x10]
mov dword [esp + 0xb78], 0xffffffff
call fcn.00617ec0
mov eax, dword [esp + 0x24]
jmp 0x686d89
mov dword [0x9dd478], 1
mov dword [0x9dd47c], 0x28e8
call edi
mov dword [0x9dd480], eax
mov eax, 1
mov ecx, dword [esp + 0xb70]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xb6c
ret