Function at 0x100fa4c0
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 0x101ebc7b
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 [0x10282d50], edi
call esi
mov ebp, dword [esp + 0xb80]
mov dword [0x10282d58], eax
cmp ebp, edi
je 0x100fafad
cmp word [ebp], di
je 0x100fafad
mov ebx, dword [esp + 0xb84]
cmp ebx, edi
je 0x100fafad
cmp word [ebx], di
je 0x100fafad
cmp dword [0x10282d5c], edi
jne 0x100fa546
mov dword [0x10282d50], 2
mov dword [0x10282d54], 0x2adf
jmp 0x100fafc1
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push ebp
call esi
test al, 0x10
mov dword [esp + 0x4c], eax
je 0x100fa576
mov dword [0x10282d50], 0x1d
mov dword [0x10282d54], 0x2ae7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100fafc3
push ebx
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100fa5a4
test bl, 0x10
je 0x100fa5a4
mov dword [0x10282d50], 0x1e
mov dword [0x10282d54], 0x2af1
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100fafc3
mov esi, 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], edi
call fcn.10077860
mov eax, dword [esp + 0xb94]
mov dword [esp + 0xb78], edi
cmp eax, edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x28], edi
mov dword [esp + 0x38], edi
je 0x100fa5ef
mov eax, dword [esp + 0xb98]
mov dword [esp + 0x1c], esi
cmp eax, edi
jne 0x100fa5f3
mov dword [esp + 0x1c], edi
cmp ebx, 0xffffffff
jne 0x100fa5fc
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
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0xb8c]
push ebp
mov dword [esp + 0x40], eax
call fcn.100f0a90
xor esi, esi
add esp, 4
cmp eax, esi
mov dword [esp + 0x50], eax
jne 0x100facb6
mov ecx, dword [esp + 0xba0]
mov eax, 5
cmp ecx, esi
je 0x100fa64e
mov eax, 7
push esi
push 0x80
push 3
push esi
push eax
push bind
push ebp
call fcn.100f2690
add esp, 0x1c
cmp eax, 0xffffffff
mov dword [esp + 0x2c], eax
je 0x100fade4
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push eax
call fcn.100ec0a0
add esp, 0x28
test eax, eax
jne 0x100fae08
xor ecx, ecx
cmp ebx, 0xffffffff
setne cl
mov ebp, ecx
cmp ebp, esi
je 0x100fa752
mov ecx, 8
lea edi, [esp + 0x60]
mov dword [esp + 0x5c], esi
lea edx, [esp + 0x5c]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0xb84]
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x100fa740
cmp dword [esp + 0x7c], esi
jne 0x100fa6d2
cmp dword [esp + 0x78], esi
je 0x100fa740
mov eax, dword [0x10283320]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x1026be1c
push edi
call fcn.100f2360
add esp, 0x10
test eax, eax
je 0x100fa721
mov edx, dword [esp + 0x10]
push 2
push edx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x100fa70b
mov dword [esp + 0x18], 1
jmp 0x100fa740
mov dword [0x10282d50], 0x28
mov dword [0x10282d54], 0x2b78
jmp 0x100fa735
mov dword [0x10282d50], 0x24
mov dword [0x10282d54], 0x2b7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10282d58], eax
test bl, 1
je 0x100fa759
and ebx, 0xfffffffe
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x100fa759
mov edi, dword [esp + 0xb84]
push esi
push 0x80
push 4
push esi
push esi
push 0xc0000000
push edi
call fcn.100f2690
add esp, 0x1c
cmp eax, 0xffffffff
mov dword [esp + 0x20], eax
je 0x100fae27
cmp ebp, esi
je 0x100fa78e
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], esi
cmp eax, esi
je 0x100fa796
mov dword [esp + 0x14], 1
cmp ebp, esi
mov dword [esp + 0x40], 1
je 0x100fa924
mov eax, dword [esp + 0x18]
xor edi, edi
or ebx, 0xffffffff
or ebp, 0xffffffff
cmp eax, edi
je 0x100fa819
mov eax, dword [esp + 0x10]
push edi
push 0x80
push 4
push edi
push 7
push bind
push eax
call fcn.100f2690
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x100fa81d
cmp dword [esp + 0x1c], edi
je 0x100fa815
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], edi
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, edi
jne 0x100fa7fa
cmp dword [esp + 0x30], edi
je 0x100fa811
cmp dword [esp + 0xb94], 1
jne 0x100fa815
push ebp
call fcn.100f0260
add esp, 4
test eax, eax
je 0x100fa815
mov dword [esp + 0x1c], edi
mov ebx, ebp
jmp 0x100fa81d
mov ebx, dword [esp + 0x20]
cmp dword [esp + 0xb88], edi
jne 0x100fa918
cmp ebx, 0xffffffff
je 0x100fa918
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.100f9570
add esp, 8
test eax, eax
je 0x100fa918
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 0x100fa918
mov eax, dword [esp + 0x788]
test eax, eax
jbe 0x100fa918
push eax
call sub.MFC42u.DLL_operatornew
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.100f3770
add esp, 0x18
cmp ebp, 0xffffffff
je 0x100fa924
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 0x100fa984
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10282d50], 1
mov dword [0x10282d54], 0x2947
call esi
mov dword [0x10282d58], eax
mov dword [0x10282d50], 7
mov dword [0x10282d54], 0x2bec
jmp 0x100faa1d
mov eax, dword [0x1026bf14]
mov edx, dword [0x1026bf10]
mov ecx, dword [0x1026bf18]
mov dword [esp + 0x794], eax
xor eax, eax
mov dword [esp + 0x790], edx
mov edx, dword [0x1026bf1c]
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 0x100faaf1
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10282d50], 1
mov dword [0x10282d54], 0x2988
call esi
mov dword [0x10282d58], eax
mov dword [0x10282d50], 8
mov dword [0x10282d54], 0x2bf3
call esi
mov dword [0x10282d58], eax
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x20]
cmp edi, 0xffffffff
je 0x100faa3f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xb8c]
test eax, eax
jne 0x100faa5b
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x100faa5b
push eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x100faf23
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x100faea9
mov eax, dword [0x10283310]
test eax, eax
je 0x100faea9
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10282d50], 0
call ebp
mov edi, dword [esp + 0xb84]
mov dword [0x10282d58], eax
push edi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x100fae8c
push 0
push 0
push 3
push 0
push 7
push bind
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100fae46
mov dword [0x10282d50], 3
mov dword [0x10282d54], 0x398e
call ebp
mov dword [0x10282d58], eax
jmp 0x100faeb0
lea ecx, [esp + 0x260]
test ecx, ecx
jne 0x100fab1d
mov dword [0x10282d50], 1
mov dword [0x10282d54], 0x296f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10282d58], eax
jmp 0x100fab6c
mov ecx, 0x66
xor eax, eax
lea edi, [esp + 0x260]
mov esi, 0x10282d60
rep stosd dword es:[edi], eax
mov eax, dword [0x1026be18]
mov ecx, 0x66
lea edi, [esp + 0x260]
cmp eax, 0xffffffff
rep movsd dword es:[edi], dword [esi]
je 0x100fab5c
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100fab5c
mov dword [esp + 0x280], eax
lea edx, [esp + 0x260]
push edx
call fcn.100f18b0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x40]
test eax, eax
je 0x100faba6
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.100f18d0
add esp, 4
mov ecx, dword [0x10283318]
mov edx, dword [0x1028331c]
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.100faff0
mov ecx, dword [esp + 0x60]
add esp, 0x18
test ecx, ecx
je 0x100fac0c
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x100fac0c
mov dword [esp + 0x14], 1
test eax, eax
je 0x100faa24
mov bl, byte [esp + 0xb9c]
test bl, 1
je 0x100fac70
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 0x100fac78
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x20]
test bl, 4
je 0x100fac90
lea eax, [esp + 0x38]
lea ecx, [esp + 0x28]
push eax
push ecx
push esi
call fcn.100f1e70
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xba4]
test eax, eax
je 0x100faca9
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [esp + 0x24], 0
jmp 0x100faa33
xor eax, eax
cmp ebx, 0xffffffff
setne al
cmp eax, esi
mov ebx, 0x24
je 0x100fad76
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 dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x100fad6a
cmp dword [esp + 0x7c], esi
jne 0x100fad00
cmp dword [esp + 0x78], esi
je 0x100fad6a
mov eax, dword [0x10283320]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x1026be1c
push edi
call fcn.100f2360
add esp, 0x10
test eax, eax
je 0x100fad4f
mov edx, dword [esp + 0x10]
push 2
push edx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x100fad39
mov dword [esp + 0x18], 1
jmp 0x100fad6a
mov dword [0x10282d50], 0x28
mov dword [0x10282d54], 0x2b27
jmp 0x100fad5f
mov dword [0x10282d50], ebx
mov dword [0x10282d54], 0x2b2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10282d58], eax
cmp dword [esp + 0x18], esi
jne 0x100fad7d
mov dword [esp + 0x14], esi
jmp 0x100fad85
mov edi, dword [esp + 0xb84]
mov dword [esp + 0x14], 1
test byte [esp + 0xb9c], 4
je 0x100fada2
lea eax, [esp + 0x38]
lea ecx, [esp + 0x28]
push eax
push ecx
push ebp
call fcn.100f2040
add esp, 0xc
mov edx, dword [esp + 0xba4]
push edx
push 0xffffffffffffffff
push esi
push edi
push ebp
call fcn.100eddf0
add esp, 0x14
test eax, eax
je 0x100fadc4
mov dword [esp + 0x24], esi
jmp 0x100faa3f
mov dword [0x10282d50], ebx
mov dword [0x10282d54], 0x2b42
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10282d58], eax
jmp 0x100faa3f
mov dword [0x10282d50], 3
mov dword [0x10282d54], 0x2b5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10282d58], eax
jmp 0x100faa3f
mov dword [0x10282d50], 0x2a
mov dword [0x10282d54], 0x2b61
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100faa1f
mov dword [0x10282d50], 4
mov dword [0x10282d54], 0x2b95
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100faa1f
lea ecx, [esp + 0x80]
push ecx
push esi
call fcn.10101290
add esp, 8
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x100faeb0
mov dword [0x10282d50], 0x1c
mov dword [0x10282d54], 0x2c26
call ebp
mov dword [0x10282d58], eax
mov dword [esp + 0x24], 0xffffffff
jmp 0x100faf2a
mov dword [0x10282d50], 1
mov dword [0x10282d54], 0x397f
call ebp
mov dword [0x10282d58], eax
jmp 0x100faeb0
mov edi, dword [esp + 0xb84]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x100faec7
mov edx, dword [esp + 0x38]
push edx
push eax
push edi
call fcn.100f20f0
add esp, 0xc
test byte [esp + 0xb9c], 2
je 0x100faedd
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 0x100faf7a
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x100faf05
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xb98]
push 0x103
push ecx
push edx
jmp 0x100faf71
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x100faf7a
mov ecx, dword [esp + 0x10]
push ecx
call fcn.100f2170
add esp, 4
jmp 0x100faf7a
mov edi, dword [esp + 0xb84]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100faf39
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x100faf7a
mov edx, dword [esp + 0x10]
push 3
push edi
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x100faf7a
mov eax, dword [esp + 0xb90]
mov dword [esp + 0x24], 0xffffffff
test eax, eax
je 0x100faf7a
mov ecx, dword [esp + 0x10]
push 0x103
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
mov eax, dword [esp + 0x28]
test eax, eax
je 0x100faf93
push eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov dword [esp + 0x28], 0
lea ecx, [esp + 0x10]
mov dword [esp + 0xb78], 0xffffffff
call fcn.10078300
mov eax, dword [esp + 0x24]
jmp 0x100fafcd
mov dword [0x10282d50], 1
mov dword [0x10282d54], 0x2ad9
call esi
mov dword [0x10282d58], 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