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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x53f37b
push eax
mov dword fs:[0], esp
sub esp, 0xb60
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
xor edi, edi
mov dword [0x5928c0], edi
call esi
mov ebp, dword [esp + 0xb80]
mov dword [0x5928c8], eax
cmp ebp, edi
je 0x48936c
cmp word [ebp], di
je 0x48936c
mov ebx, dword [esp + 0xb84]
cmp ebx, edi
je 0x48936c
cmp word [ebx], di
je 0x48936c
cmp dword [0x5928cc], edi
jne 0x488906
mov dword [0x5928c0], 2
mov dword [0x5928c4], 0x2adf
jmp 0x489380
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push ebp
call esi
test al, 0x10
mov dword [esp + 0x4c], eax
je 0x488936
mov dword [0x5928c0], 0x1d
mov dword [0x5928c4], 0x2ae7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x489382
push ebx
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x488964
test bl, 0x10
je 0x488964
mov dword [0x5928c0], 0x1e
mov dword [0x5928c4], 0x2af1
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x489382
mov ecx, dword [0x54a4b4]
mov eax, 1
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0xb94]
mov dword [esp + 0xb78], edi
cmp ecx, edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x28], edi
mov dword [esp + 0x38], edi
je 0x4889b0
mov ecx, dword [esp + 0xb98]
mov dword [esp + 0x1c], eax
cmp ecx, edi
jne 0x4889b4
mov dword [esp + 0x1c], edi
cmp ebx, 0xffffffff
jne 0x4889bd
mov dword [esp + 0x1c], edi
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.00474140
xor esi, esi
add esp, 4
cmp eax, esi
mov dword [esp + 0x50], eax
jne 0x489075
mov ecx, dword [esp + 0xba0]
mov eax, 5
cmp ecx, esi
je 0x488a0f
mov eax, 7
push esi
push 0x80
push 3
push esi
push eax
push SysReAllocStringLen
push ebp
call fcn.004bc0c0
add esp, 0x1c
cmp eax, 0xffffffff
mov dword [esp + 0x2c], eax
je 0x4891a4
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push eax
call fcn.0046f760
add esp, 0x28
test eax, eax
jne 0x4891c8
cmp ebx, 0xffffffff
setne al
mov ebp, eax
cmp ebp, esi
je 0x488b14
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 ecx, [esp + 0x5c]
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x488b02
cmp dword [esp + 0x7c], esi
jne 0x488a93
cmp dword [esp + 0x78], esi
je 0x488b02
mov edx, dword [0x592e90]
lea eax, [esp + 0x10]
push edx
push eax
push 0x5751c4
push edi
call fcn.004bbd90
add esp, 0x10
test eax, eax
je 0x488ae3
mov ecx, dword [esp + 0x10]
push 2
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x488acd
mov dword [esp + 0x18], 1
jmp 0x488b02
mov dword [0x5928c0], 0x28
mov dword [0x5928c4], 0x2b78
jmp 0x488af7
mov dword [0x5928c0], 0x24
mov dword [0x5928c4], 0x2b7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x5928c8], eax
test bl, 1
je 0x488b1b
and ebx, 0xfffffffe
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x488b1b
mov edi, dword [esp + 0xb84]
push esi
push 0x80
push 4
push esi
push esi
push 0xc0000000
push edi
call fcn.004bc0c0
add esp, 0x1c
cmp eax, 0xffffffff
mov dword [esp + 0x20], eax
je 0x4891e7
cmp ebp, esi
je 0x488b50
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], esi
cmp eax, esi
je 0x488b58
mov dword [esp + 0x14], 1
cmp ebp, esi
mov dword [esp + 0x40], 1
je 0x488ce6
mov eax, dword [esp + 0x18]
xor edi, edi
or ebx, 0xffffffff
or ebp, 0xffffffff
cmp eax, edi
je 0x488bdb
mov edx, dword [esp + 0x10]
push edi
push 0x80
push 4
push edi
push 7
push SysReAllocStringLen
push edx
call fcn.004bc0c0
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x488bdf
cmp dword [esp + 0x1c], edi
je 0x488bd7
lea eax, [esp + 0x30]
mov dword [esp + 0x30], edi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, edi
jne 0x488bbc
cmp dword [esp + 0x30], edi
je 0x488bd3
cmp dword [esp + 0xb94], 1
jne 0x488bd7
push ebp
call fcn.00473920
add esp, 4
test eax, eax
je 0x488bd7
mov dword [esp + 0x1c], edi
mov ebx, ebp
jmp 0x488bdf
mov ebx, dword [esp + 0x20]
cmp dword [esp + 0xb88], edi
jne 0x488cda
cmp ebx, 0xffffffff
je 0x488cda
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 ecx, [esp + 0x408]
push ecx
push ebx
stosb byte es:[edi], al
call fcn.00487930
add esp, 8
test eax, eax
je 0x488cda
mov edx, dword [esp + 0x408]
mov eax, dword [esp + 0x40c]
mov ecx, dword [esp + 0x410]
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0x414]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0xb8c]
mov dword [esp + 0x88], ecx
mov ecx, 0x66
lea esi, [esp + 0x450]
lea edi, [esp + 0xc8]
mov dword [esp + 0x8c], edx
test eax, eax
mov dword [esp + 0x40], 0
rep movsd dword es:[edi], dword [esi]
jne 0x488cda
mov eax, dword [esp + 0x788]
test eax, eax
jbe 0x488cda
push eax
call fcn.00520a0a
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 ecx, dword [esp + 0x78c]
lea eax, [esp + 0x34]
push eax
push ecx
push edx
push 0
push ebx
mov dword [esp + 0x48], 0
call fcn.00481d10
add esp, 0x18
cmp ebp, 0xffffffff
je 0x488ce6
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 edx, [esp + 0x790]
test edx, edx
stosb byte es:[edi], al
jne 0x488d46
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x5928c0], 1
mov dword [0x5928c4], 0x2947
call esi
mov dword [0x5928c8], eax
mov dword [0x5928c0], 7
mov dword [0x5928c4], 0x2bec
jmp 0x488dde
mov eax, dword [0x575264]
mov ecx, dword [0x575268]
mov edx, dword [0x57526c]
mov dword [esp + 0x790], eax
mov eax, dword [0x575270]
mov dword [esp + 0x794], ecx
mov dword [esp + 0x79c], eax
lea ecx, [esp + 0x80]
xor eax, eax
mov dword [esp + 0x798], edx
test ecx, ecx
mov dword [esp + 0x7b0], 2
mov dword [esp + 0x7b4], eax
mov dword [esp + 0x7b8], eax
mov dword [esp + 0x7bc], eax
jne 0x488eb1
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x5928c0], 1
mov dword [0x5928c4], 0x2988
call esi
mov dword [0x5928c8], eax
mov dword [0x5928c0], 8
mov dword [0x5928c4], 0x2bf3
call esi
mov dword [0x5928c8], eax
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x20]
cmp edi, 0xffffffff
je 0x488e00
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xb8c]
test eax, eax
jne 0x488e1c
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x488e1c
push eax
call fcn.00520a33
add esp, 4
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4892e3
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x489269
mov eax, dword [0x592e80]
test eax, eax
je 0x489269
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x5928c0], 0
call ebp
mov edi, dword [esp + 0xb84]
mov dword [0x5928c8], eax
push edi
call fcn.00422e21
add esp, 4
test eax, eax
je 0x48924c
push 0
push 0
push 3
push 0
push 7
push SysReAllocStringLen
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x489206
mov dword [0x5928c0], 3
mov dword [0x5928c4], 0x3940
call ebp
mov dword [0x5928c8], eax
jmp 0x489270
lea edx, [esp + 0x260]
test edx, edx
jne 0x488edd
mov dword [0x5928c0], 1
mov dword [0x5928c4], 0x296f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x5928c8], eax
jmp 0x488f2c
mov ecx, 0x66
xor eax, eax
lea edi, [esp + 0x260]
mov esi, 0x5928d0
rep stosd dword es:[edi], eax
mov eax, dword [0x5751c0]
mov ecx, 0x66
lea edi, [esp + 0x260]
cmp eax, 0xffffffff
rep movsd dword es:[edi], dword [esi]
je 0x488f1c
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x488f1c
mov dword [esp + 0x280], eax
lea eax, [esp + 0x260]
push eax
call fcn.004bb2c0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x40]
test eax, eax
je 0x488f66
mov ecx, 0x66
lea esi, [esp + 0x260]
lea edi, [esp + 0xc8]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x80]
push ecx
call fcn.004bb2f0
add esp, 4
mov edx, dword [0x592e88]
mov eax, dword [0x592e8c]
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x48]
mov dword [esp + 0x3f4], eax
push ecx
lea eax, [esp + 0x84]
push edx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x798]
push eax
mov eax, dword [esp + 0x38]
push ecx
push edx
push eax
mov dword [esp + 0x60], 0
call fcn.004893b0
mov ecx, dword [esp + 0x60]
add esp, 0x18
test ecx, ecx
je 0x488fcb
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x488fcb
mov dword [esp + 0x14], 1
test eax, eax
je 0x488de5
mov bl, byte [esp + 0xb9c]
test bl, 1
je 0x48902f
mov esi, dword [esp + 0x2c]
xor eax, eax
lea ecx, [esp + 0x40]
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 edx, [esp + 0x30]
push ecx
lea eax, [esp + 0x58]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x40]
lea edx, [esp + 0x30]
push ecx
lea eax, [esp + 0x58]
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x489037
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x2c]
test bl, 4
je 0x48904f
lea ecx, [esp + 0x38]
lea edx, [esp + 0x28]
push ecx
push edx
push esi
call fcn.004bb8b0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xba4]
test eax, eax
je 0x489068
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [esp + 0x24], 0
jmp 0x488df4
xor eax, eax
cmp ebx, 0xffffffff
setne al
cmp eax, esi
mov ebx, 0x24
je 0x489136
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 eax, [esp + 0x5c]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x48912a
cmp dword [esp + 0x7c], esi
jne 0x4890bf
cmp dword [esp + 0x78], esi
je 0x48912a
mov ecx, dword [0x592e90]
lea edx, [esp + 0x10]
push ecx
push edx
push 0x5751c4
push edi
call fcn.004bbd90
add esp, 0x10
test eax, eax
je 0x48910f
mov eax, dword [esp + 0x10]
push 2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x4890f9
mov dword [esp + 0x18], 1
jmp 0x48912a
mov dword [0x5928c0], 0x28
mov dword [0x5928c4], 0x2b27
jmp 0x48911f
mov dword [0x5928c0], ebx
mov dword [0x5928c4], 0x2b2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x5928c8], eax
cmp dword [esp + 0x18], esi
jne 0x48913d
mov dword [esp + 0x14], esi
jmp 0x489145
mov edi, dword [esp + 0xb84]
mov dword [esp + 0x14], 1
test byte [esp + 0xb9c], 4
je 0x489162
lea ecx, [esp + 0x38]
lea edx, [esp + 0x28]
push ecx
push edx
push ebp
call fcn.004bba80
add esp, 0xc
mov eax, dword [esp + 0xba4]
push eax
push 0xffffffffffffffff
push esi
push edi
push ebp
call fcn.004714d0
add esp, 0x14
test eax, eax
je 0x489184
mov dword [esp + 0x24], esi
jmp 0x488e00
mov dword [0x5928c0], ebx
mov dword [0x5928c4], 0x2b42
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x5928c8], eax
jmp 0x488e00
mov dword [0x5928c0], 3
mov dword [0x5928c4], 0x2b5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x5928c8], eax
jmp 0x488e00
mov dword [0x5928c0], 0x2a
mov dword [0x5928c4], 0x2b61
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x488de0
mov dword [0x5928c0], 4
mov dword [0x5928c4], 0x2b95
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x488de0
lea edx, [esp + 0x80]
push edx
push esi
call fcn.0048f4c0
add esp, 8
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x489270
mov dword [0x5928c0], 0x1c
mov dword [0x5928c4], 0x2c26
call ebp
mov dword [0x5928c8], eax
mov dword [esp + 0x24], 0xffffffff
jmp 0x4892ea
mov dword [0x5928c0], 1
mov dword [0x5928c4], 0x3931
call ebp
mov dword [0x5928c8], eax
jmp 0x489270
mov edi, dword [esp + 0xb84]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x489287
mov ecx, dword [esp + 0x38]
push ecx
push eax
push edi
call fcn.004bbb30
add esp, 0xc
test byte [esp + 0xb9c], 2
je 0x48929d
mov edx, dword [esp + 0x4c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x489339
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4892c5
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xb98]
push 0x103
push eax
push ecx
jmp 0x489331
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x489339
mov eax, dword [esp + 0x10]
push eax
call fcn.004bbbb0
add esp, 4
jmp 0x489339
mov edi, dword [esp + 0xb84]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4892f9
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x489339
mov ecx, dword [esp + 0x10]
push 3
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x489339
mov eax, dword [esp + 0xb90]
mov dword [esp + 0x24], 0xffffffff
test eax, eax
je 0x489339
mov edx, dword [esp + 0x10]
push 0x103
push edx
push eax
call fcn.00422de4
add esp, 0xc
mov eax, dword [esp + 0x28]
test eax, eax
je 0x489352
push eax
call fcn.00520a33
add esp, 4
mov dword [esp + 0x28], 0
lea ecx, [esp + 0x10]
mov dword [esp + 0xb78], 0xffffffff
call fcn.0043bde0
mov eax, dword [esp + 0x24]
jmp 0x48938c
mov dword [0x5928c0], 1
mov dword [0x5928c4], 0x2ad9
call esi
mov dword [0x5928c8], 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