Function at 0x10107ef0
Capabilities:
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 0x101ec052
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
mov dword [0x102834e0], ebp
call edi
mov dword [0x102834e8], eax
mov eax, dword [esp + 0x16c]
cmp eax, ebp
je 0x10108bb0
cmp word [eax], bp
je 0x10108bb0
mov ebx, dword [esp + 0x170]
cmp ebx, ebp
je 0x10108bb0
cmp word [ebx], bp
je 0x10108bb0
cmp dword [0x102834ec], ebp
jne 0x10107f75
mov dword [0x102834e0], 2
mov dword [0x102834e4], 0x22fb
jmp 0x10108bc4
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call esi
test al, 0x10
mov dword [esp + 0x6c], eax
je 0x10107f9f
mov dword [0x102834e0], 0x1d
mov dword [0x102834e4], 0x2303
jmp 0x10108bc4
push ebx
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10107fc7
test bl, 0x10
je 0x10107fc7
mov dword [0x102834e0], 0x1e
mov dword [0x102834e4], 0x230d
jmp 0x10108bc4
mov esi, 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], ebp
call fcn.10077860
mov eax, dword [esp + 0x180]
mov dword [esp + 0x164], ebp
cmp eax, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x4c], ebp
je 0x10108012
mov eax, dword [esp + 0x184]
mov dword [esp + 0x34], esi
cmp eax, ebp
jne 0x10108016
mov dword [esp + 0x34], ebp
cmp ebx, 0xffffffff
jne 0x1010801f
mov dword [esp + 0x34], ebp
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x71]
mov byte [esp + 0x70], 0
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x194]
stosw word es:[edi], ax
cmp esi, ebp
stosb byte es:[edi], al
je 0x10108047
cmp dword [esi], ebp
je 0x10108047
xor eax, eax
jmp 0x1010804c
mov eax, 1
lea ecx, [esp + 0x70]
test ecx, ecx
jne 0x101080a9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x102834e0], 1
mov dword [0x102834e4], 0x21c2
call esi
mov dword [0x102834e8], eax
mov dword [0x102834e0], 7
mov dword [0x102834e4], 0x232b
call esi
lea ecx, [esp + 0x10]
mov dword [0x102834e8], eax
mov dword [esp + 0x164], 0xffffffff
call fcn.10078300
jmp 0x10108bcb
mov edx, dword [0x1026c2b4]
mov ecx, dword [0x1026c2b8]
neg eax
sbb eax, eax
mov edi, dword [0x10283518]
mov dword [esp + 0x70], edx
mov edx, dword [0x1026c2bc]
add eax, 0x40002
mov dword [esp + 0x74], ecx
mov ecx, dword [0x1026c2c0]
mov dword [esp + 0x90], eax
mov eax, dword [0x1026be18]
mov dword [esp + 0x78], edx
mov edx, dword [0x102834f8]
cmp eax, 0xffffffff
mov dword [esp + 0x7c], ecx
mov word [esp + 0xa0], 0x40
mov dword [esp + 0xa8], edx
mov word [esp + 0xa2], 1
je 0x1010811f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, ebp
je 0x1010811f
mov edi, eax
mov dword [esp + 0x9c], edi
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0xd8]
mov dword [esp + 0xd4], ebp
mov dword [esp + 0x124], ebp
rep stosd dword es:[edi], eax
mov ecx, 0xd
lea edi, [esp + 0x128]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x28]
call fcn.100af020
lea ecx, [esp + 0x20]
mov byte [esp + 0x164], 1
call fcn.100af020
lea ecx, [esp + 0x2c]
mov byte [esp + 0x164], 2
call fcn.100af020
mov eax, dword [esp + 0x178]
mov byte [esp + 0x164], 3
cmp eax, ebp
mov dword [esp + 0x50], ebp
je 0x101081b3
lea ecx, [esp + 0x2c]
push ecx
push eax
call fcn.1010e400
add esp, 8
cmp eax, ebp
je 0x101081b3
lea ecx, [esp + 0x2c]
call fcn.100af910
mov dword [esp + 0x50], eax
lea ecx, [esp + 0x30]
call fcn.100af020
cmp esi, ebp
mov byte [esp + 0x164], 4
mov dword [esp + 0x58], ebp
je 0x101081f9
mov edx, dword [esi]
push 0xffffffffffffffff
push edx
lea ecx, [esp + 0x38]
call fcn.100af200
lea ecx, [esp + 0x30]
call fcn.100af930
mov ecx, dword [esi]
mov dword [esp + 0x58], eax
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x16c]
push esi
call fcn.100f0a90
add esp, 4
cmp eax, ebp
jne 0x10108798
mov ecx, dword [esp + 0x18c]
mov eax, 5
cmp ecx, ebp
je 0x10108226
mov eax, 7
push ebp
push 0x80
push 3
push ebp
push eax
push bind
push esi
call fcn.100f2690
add esp, 0x1c
cmp eax, 0xffffffff
mov dword [esp + 0x48], eax
je 0x10108a11
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push eax
call fcn.100ec0a0
add esp, 0x28
test eax, eax
jne 0x10108a35
xor ecx, ecx
cmp ebx, 0xffffffff
setne cl
mov esi, ecx
cmp esi, ebp
je 0x1010835d
mov ecx, 8
lea edi, [esp + 0xb4]
mov dword [esp + 0xb0], ebp
lea edx, [esp + 0xb0]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x170]
push edx
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x10108344
cmp dword [esp + 0xd0], ebp
jne 0x101082c1
cmp dword [esp + 0xcc], ebp
je 0x10108344
mov ecx, dword [0x10283a20]
mov edi, dword [esp + 0x170]
lea edx, [esp + 0x10]
push ecx
push edx
push 0x1026be1c
push edi
call fcn.100f2360
add esp, 0x10
test eax, eax
je 0x10108323
mov eax, dword [esp + 0x10]
push 2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x10108302
mov dword [esp + 0x18], 1
jmp 0x1010834b
mov dword [0x102834e0], 0x28
mov dword [0x102834e4], 0x23b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x102834e8], eax
jmp 0x1010834b
mov dword [0x102834e0], 0x24
mov dword [0x102834e4], 0x23b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x102834e8], eax
jmp 0x1010834b
mov edi, dword [esp + 0x170]
test bl, 1
je 0x10108364
and ebx, 0xfffffffe
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x10108364
mov edi, dword [esp + 0x170]
push ebp
push 0x80
push 4
push ebp
push ebp
push 0xc0000000
push edi
call fcn.100f2690
add esp, 0x1c
cmp eax, 0xffffffff
mov dword [esp + 0x40], eax
je 0x10108a4b
cmp esi, ebp
je 0x10108399
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], ebp
cmp ecx, ebp
je 0x101083a1
mov dword [esp + 0x14], 1
cmp esi, ebp
mov ebx, 1
je 0x10108589
mov ecx, dword [esp + 0x18]
or esi, 0xffffffff
or edi, 0xffffffff
cmp ecx, ebp
je 0x1010841f
mov ecx, dword [esp + 0x10]
push ebp
push 0x80
push 4
push ebp
push 7
push bind
push ecx
call fcn.100f2690
mov edi, eax
add esp, 0x1c
cmp edi, 0xffffffff
je 0x10108421
cmp dword [esp + 0x34], ebp
je 0x1010841b
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebp
jne 0x10108400
cmp dword [esp + 0x1c], ebp
je 0x10108417
cmp dword [esp + 0x180], 1
jne 0x1010841b
push edi
call fcn.100f0260
add esp, 4
test eax, eax
je 0x1010841b
mov dword [esp + 0x34], ebp
mov esi, edi
jmp 0x10108421
mov esi, eax
cmp dword [esp + 0x174], ebp
jne 0x1010857d
cmp esi, 0xffffffff
je 0x1010857d
lea ecx, [esp + 0x60]
call fcn.100af020
lea eax, [esp + 0x44]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x64]
push ecx
lea eax, [esp + 0x12c]
push edx
lea ecx, [esp + 0xe0]
push eax
lea edx, [esp + 0x80]
push ecx
push edx
push esi
mov byte [esp + 0x180], 5
mov dword [esp + 0x38], ebp
mov dword [esp + 0x60], ebp
call fcn.1010eb50
add esp, 0x1c
test eax, eax
je 0x1010856c
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
push eax
mov eax, dword [esp + 0x20]
push ecx
push ebp
push 1
push edx
lea ecx, [esp + 0x84]
push eax
push ecx
push esi
mov dword [esp + 0x58], ebp
call fcn.1010e1a0
add esp, 0x20
test eax, eax
je 0x101084ba
xor ebx, ebx
cmp dword [esp + 0x50], ebp
jne 0x10108504
test byte [esp + 0x94], 8
je 0x10108504
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x2c]
lea eax, [esp + 0x38]
push edx
mov edx, dword [esp + 0x20]
push eax
push 1
push 3
push ecx
lea eax, [esp + 0x84]
push edx
push eax
push esi
mov dword [esp + 0x58], ebp
call fcn.1010e1a0
add esp, 0x20
test eax, eax
je 0x10108504
lea ecx, [esp + 0x2c]
call fcn.100af910
cmp dword [esp + 0x58], ebp
jne 0x10108550
mov eax, dword [esp + 0x94]
test ah, 1
je 0x10108550
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x30]
lea edx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push 2
push 4
push eax
lea edx, [esp + 0x84]
push ecx
push edx
push esi
mov dword [esp + 0x58], ebp
call fcn.1010e1a0
add esp, 0x20
test eax, eax
je 0x10108550
lea ecx, [esp + 0x30]
call fcn.100af910
mov eax, dword [0x102834f8]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x94]
and al, 0x7f
mov dword [esp + 0x94], eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x164], 4
call fcn.100af150
cmp edi, 0xffffffff
je 0x10108589
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [esp + 0x12e], bp
jne 0x10108a61
push 0xffffffffffffffff
push 0x110
lea ecx, [esp + 0x28]
call fcn.100af200
lea ecx, [esp + 0x20]
call fcn.100af930
mov ebp, eax
mov ecx, 0x44
mov esi, 0x102834f0
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x1026be18]
cmp eax, 0xffffffff
je 0x101085d8
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x101085d8
mov dword [ebp + 0x28], eax
lea eax, [ebp + 0x48]
push eax
call fcn.100f18b0
mov ecx, dword [0x102834f4]
mov dl, byte [0x102834fc]
mov eax, dword [0x102834f8]
mov dword [esp + 0xf0], ecx
mov cl, byte [0x10283500]
add esp, 4
mov byte [esp + 0xea], dl
mov dword [esp + 0xf0], eax
mov byte [esp + 0xeb], cl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dx, ax
mov dword [esp + 0x104], eax
test ebx, ebx
mov word [esp + 0xac], dx
je 0x10108689
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
call fcn.100af1f0
push eax
lea ecx, [esp + 0x30]
call fcn.100af200
lea ecx, [esp + 0x28]
call fcn.100af1f0
lea ecx, [esp + 0x20]
mov ebx, eax
call fcn.100af930
lea ecx, [esp + 0x28]
mov esi, eax
call fcn.100af930
mov ecx, ebx
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x80]
push ecx
call fcn.100f18d0
add esp, 4
lea edx, [esp + 0x30]
lea eax, [esp + 0x68]
push edx
lea ecx, [esp + 0x30]
push eax
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x34]
push edx
lea ecx, [esp + 0x134]
push eax
lea edx, [esp + 0xe8]
push ecx
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x88]
push edx
mov edx, dword [esp + 0x64]
push eax
push ecx
push edx
mov dword [esp + 0x90], 0
call fcn.10108bf0
mov ecx, dword [esp + 0x90]
add esp, 0x28
test ecx, ecx
je 0x101086f2
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x101086f2
mov dword [esp + 0x14], 1
test eax, eax
je 0x10108a80
mov bl, byte [esp + 0x188]
test bl, 1
je 0x10108756
mov esi, dword [esp + 0x48]
lea eax, [esp + 0x60]
lea ecx, [esp + 0x58]
push eax
lea edx, [esp + 0x54]
push ecx
xor edi, edi
push edx
push esi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov ebp, dword [esp + 0x40]
lea eax, [esp + 0x60]
lea ecx, [esp + 0x58]
push eax
lea edx, [esp + 0x54]
push ecx
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x10108760
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x48]
xor edi, edi
test bl, 4
je 0x10108778
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x3c]
push eax
push ecx
push esi
call fcn.100f1e70
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x190], edi
je 0x1010878f
push ebp
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [esp + 0x24], edi
jmp 0x10108a91
xor eax, eax
cmp ebx, 0xffffffff
setne al
cmp eax, ebp
mov esi, 0x24
je 0x10108867
mov ecx, 8
xor eax, eax
lea edi, [esp + 0xb4]
mov dword [esp + 0xb0], ebp
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x170]
lea edx, [esp + 0xb0]
push edx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x1010885b
cmp dword [esp + 0xd0], ebp
jne 0x101087f1
cmp dword [esp + 0xcc], ebp
je 0x1010885b
mov eax, dword [0x10283a20]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x1026be1c
push edi
call fcn.100f2360
add esp, 0x10
test eax, eax
je 0x10108840
mov edx, dword [esp + 0x10]
push 2
push edx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1010882a
mov dword [esp + 0x18], 1
jmp 0x1010885b
mov dword [0x102834e0], 0x28
mov dword [0x102834e4], 0x2361
jmp 0x10108850
mov dword [0x102834e0], esi
mov dword [0x102834e4], 0x2368
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x102834e8], eax
cmp dword [esp + 0x18], ebp
jne 0x1010886e
mov dword [esp + 0x14], ebp
jmp 0x10108876
mov edi, dword [esp + 0x170]
mov dword [esp + 0x14], 1
test byte [esp + 0x188], 4
je 0x1010889a
mov edx, dword [esp + 0x16c]
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x3c]
push eax
push ecx
push edx
call fcn.100f2040
add esp, 0xc
mov eax, dword [esp + 0x190]
mov ecx, dword [esp + 0x16c]
push eax
push 0xffffffffffffffff
push ebp
push edi
push ecx
call fcn.100eddf0
add esp, 0x14
test eax, eax
je 0x1010891e
mov dword [esp + 0x24], ebp
mov ebx, dword [esp + 0x170]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x101088dc
mov ecx, dword [esp + 0x4c]
push ecx
push eax
push ebx
call fcn.100f20f0
add esp, 0xc
test byte [esp + 0x188], 2
je 0x101088f2
mov edx, dword [esp + 0x6c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10108997
mov eax, dword [esp + 0x34]
test eax, eax
je 0x10108b8b
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x184]
push 0x103
push eax
push ecx
jmp 0x1010898e
mov dword [0x102834e0], esi
mov dword [0x102834e4], 0x237c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x102834e8], eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1010894f
mov ecx, dword [esp + 0x170]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10108997
mov edx, dword [esp + 0x170]
mov eax, dword [esp + 0x10]
push 3
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x10108997
mov eax, dword [esp + 0x17c]
mov dword [esp + 0x24], 0xffffffff
test eax, eax
je 0x10108997
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 + 0x3c]
test eax, eax
je 0x101089b0
push eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov dword [esp + 0x3c], 0
lea ecx, [esp + 0x30]
mov byte [esp + 0x164], 3
call fcn.100af150
lea ecx, [esp + 0x2c]
mov byte [esp + 0x164], 2
call fcn.100af150
lea ecx, [esp + 0x20]
mov byte [esp + 0x164], 1
call fcn.100af150
lea ecx, [esp + 0x28]
mov byte [esp + 0x164], 0
call fcn.100af150
lea ecx, [esp + 0x10]
mov dword [esp + 0x164], 0xffffffff
call fcn.10078300
mov eax, dword [esp + 0x24]
jmp 0x10108bd0
mov dword [0x102834e0], 3
mov dword [0x102834e4], 0x2394
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x102834e8], eax
jmp 0x10108997
mov dword [0x102834e0], 0x2a
mov dword [0x102834e4], 0x239b
jmp 0x10108a75
mov dword [0x102834e0], 4
mov dword [0x102834e4], 0x23cf
jmp 0x10108a75
mov dword [0x102834e0], 1
mov dword [0x102834e4], 0x2435
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x102834e8], eax
mov edx, dword [esp + 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [esp + 0x40]
xor edi, edi
cmp ebp, 0xffffffff
je 0x10108a9d
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x24], edi
jne 0x10108939
mov eax, dword [0x10283a18]
test eax, eax
je 0x101088be
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x102834e0], 0
call ebp
mov ebx, dword [esp + 0x170]
mov dword [0x102834e8], eax
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x10108b6b
push 0
push 0
push 3
push 0
push 7
push bind
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10108b21
mov dword [0x102834e0], 3
mov dword [0x102834e4], 0x2b6d
call ebp
mov dword [0x102834e8], eax
jmp 0x101088c5
lea eax, [esp + 0xd4]
push eax
push esi
call fcn.1010bf80
add esp, 8
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x101088c5
mov dword [0x102834e0], 0x1c
mov dword [0x102834e4], 0x2471
call ebp
mov dword [0x102834e8], eax
mov dword [esp + 0x24], 0xffffffff
jmp 0x10108939
mov dword [0x102834e0], 1
mov dword [0x102834e4], 0x2b5e
call ebp
mov dword [0x102834e8], eax
jmp 0x101088c5
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10108997
mov eax, dword [esp + 0x10]
push eax
call fcn.100f2170
add esp, 4
jmp 0x10108997
mov dword [0x102834e0], 1
mov dword [0x102834e4], 0x22f5
call edi
mov dword [0x102834e8], eax
mov eax, 1
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x158
ret