Function at 0x1002bfcc
Capabilities:
Check if file exists
Delete file
Set file attributes
Timestomp file
Write file on windows

Disassembly:
push ebp
sub esp, 0x24c
lea ebp, [esp - 4]
mov eax, dword [0x10081730]
xor eax, ebp
mov dword [ebp + 0x24c], eax
push 0x128
mov eax, 0x1005d6b7
call fcn.10031c17
push dword [ebp + 0x268]
mov eax, dword [ebp + 0x258]
mov edi, dword [ebp + 0x25c]
sub esp, 0x1c
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x260]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.10001681
sub esp, 0x1c
xor esi, esi
mov ecx, esp
mov dword [ebp - 0x1c], esp
inc esi
push edi
mov dword [ebp - 4], esi
call fcn.10001681
lea eax, [ebp + 0x16c]
push eax
mov byte [ebp - 4], bl
call fcn.1002a868
add esp, 0x24
lea eax, [ebp + 0x16c]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
mov dword [ebp - 4], 2
call fcn.1000163e
lea eax, [ebp + 0x230]
push eax
call fcn.1002ba49
add esp, 0x20
cmp dword [ebp + 0x248], 8
mov eax, dword [ebp + 0x234]
mov byte [ebp - 4], 3
jae 0x1002c087
lea eax, [ebp + 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, esi
mov edi, 0x80
jne 0x1002c0d4
cmp dword [ebp + 0x248], 8
mov eax, dword [ebp + 0x234]
jae 0x1002c0ac
lea eax, [ebp + 0x234]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp eax, esi
jne 0x1002c0d4
cmp dword [ebp + 0x248], 8
mov eax, dword [ebp + 0x234]
jae 0x1002c0cd
lea eax, [ebp + 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 0x248], 8
mov eax, dword [ebp + 0x234]
jae 0x1002c0e9
lea eax, [ebp + 0x234]
push ebx
push edi
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
jne 0x1002c115
mov ecx, dword [ebp - 0x18]
push 0x10071248
call fcn.10001681
jmp 0x1002c7c3
lea eax, [ebp + 0x1c0]
push eax
call fcn.1001e3b3
lea eax, [ebp + 0x1c0]
push eax
lea eax, [ebp - 0x50]
push eax
mov byte [ebp - 4], 4
call fcn.10007674
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x1c0]
mov byte [ebp - 4], 5
call fcn.10001537
push ebx
push esi
lea ecx, [ebp - 0x50]
call fcn.1000131a
push 7
pop edi
push ebx
lea ecx, [ebp + 0x1dc]
mov dword [ebp + 0x1f4], edi
call fcn.100011bf
push ebx
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x54], edi
call fcn.100011bf
push dword [ebp + 0x264]
lea eax, [ebp + 0x1dc]
push dword [0x100815c8]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.1001bf6f
add esp, 0x10
push ebx
push esi
lea ecx, [ebp - 0x6c]
call fcn.1000131a
push ebx
lea ecx, [ebp + 0x1f8]
mov dword [ebp + 0x210], edi
call fcn.100011bf
push ebx
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x38], edi
call fcn.100011bf
push ebx
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x54], edi
call fcn.100011bf
lea eax, [ebp + 0x1f8]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 4], 0xa
call fcn.1001bc77
add esp, 0xc
push ebx
push esi
lea ecx, [ebp - 0x6c]
call fcn.1000131a
push ebx
push esi
lea ecx, [ebp - 0x50]
call fcn.1000131a
mov dword [ebp + 0x1bc], edi
push ebx
lea ecx, [ebp + 0x1a4]
call fcn.100011bf
lea eax, [ebp - 0x50]
push eax
mov byte [ebp - 4], 0xb
call fcn.1001bd9a
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x1a4]
mov byte [ebp - 4], 0xc
call fcn.10001537
push ebx
push esi
lea ecx, [ebp - 0x50]
call fcn.1000131a
push ebx
lea ecx, [ebp + 0x188]
mov dword [ebp + 0x1a0], edi
call fcn.100011bf
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 0xd
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
movzx eax, word [ebp - 0x28]
push eax
movzx eax, word [ebp - 0x2a]
push eax
movzx eax, word [ebp - 0x2c]
push eax
movzx eax, word [ebp - 0x2e]
push eax
movzx eax, word [ebp - 0x32]
push eax
movzx eax, word [ebp - 0x34]
push eax
lea eax, [ebp + 0x188]
push str._d_d_d_d_d_d
push eax
call fcn.10007397
add esp, 0x20
push ebx
lea ecx, [ebp + 0x214]
mov dword [ebp + 0x22c], edi
call fcn.100011bf
lea eax, [ebp + 0x1a4]
push eax
mov byte [ebp - 4], 0xe
call fcn.1002bef7
mov byte [ebp - 0x11], al
lea eax, [ebp + 0x1f8]
push eax
call fcn.1002bef7
or byte [ebp - 0x11], al
lea eax, [ebp + 0x1dc]
push eax
call fcn.1002bef7
or al, byte [ebp - 0x11]
add esp, 0xc
cmp al, 1
je 0x1002c2f5
mov ecx, dword [ebp - 0x18]
push 0x10071248
call fcn.10001681
jmp 0x1002c775
lea eax, [ebp + 0x1dc]
push eax
call fcn.1002bef7
cmp al, 1
pop ecx
jne 0x1002c311
lea eax, [ebp + 0x1dc]
mov dword [ebp - 0x1c], eax
jmp 0x1002c32f
push 0x100604d0
lea ecx, [ebp - 0xe0]
call fcn.10001681
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x10], 2
mov edi, 0x10070a2c
push edi
lea eax, [ebp + 0x1c0]
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.10004fad
push dword [ebp - 0x1c]
mov dword [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.1000971d
push edi
push eax
lea eax, [ebp - 0x50]
push eax
mov byte [ebp - 4], 0x11
call fcn.10004fad
lea ecx, [ebp + 0x188]
push ecx
push eax
lea eax, [ebp + 0x150]
push eax
mov byte [ebp - 4], 0x12
call fcn.1000971d
add esp, 0x30
push ebx
push esi
lea ecx, [ebp - 0x50]
call fcn.1000131a
push ebx
push esi
lea ecx, [ebp - 0x6c]
call fcn.1000131a
push ebx
push esi
lea ecx, [ebp - 0xc4]
call fcn.1000131a
test byte [ebp - 0x10], 2
mov byte [ebp - 4], 0x17
je 0x1002c3c2
and dword [ebp - 0x10], 0xfffffffd
push ebx
push esi
lea ecx, [ebp - 0xe0]
call fcn.1000131a
lea eax, [ebp + 0x1f8]
push eax
call fcn.1002bef7
cmp al, 1
pop ecx
jne 0x1002c3de
lea eax, [ebp + 0x1f8]
mov dword [ebp - 0x1c], eax
jmp 0x1002c3f9
push 0x100604d0
lea ecx, [ebp - 0xa8]
call fcn.10001681
mov dword [ebp - 0x1c], eax
or dword [ebp - 0x10], 4
mov byte [ebp - 4], 0x18
push edi
lea eax, [ebp + 0x1c0]
push eax
lea eax, [ebp - 0xfc]
push eax
call fcn.10004fad
push dword [ebp - 0x1c]
mov dword [ebp - 4], 0x19
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.1000971d
push edi
push eax
lea eax, [ebp - 0x134]
push eax
mov byte [ebp - 4], 0x1a
call fcn.10004fad
lea ecx, [ebp + 0x188]
push ecx
push eax
lea eax, [ebp + 0x134]
push eax
mov byte [ebp - 4], 0x1b
call fcn.1000971d
add esp, 0x30
push ebx
push esi
lea ecx, [ebp - 0x134]
call fcn.1000131a
push ebx
push esi
lea ecx, [ebp - 0x118]
call fcn.1000131a
push ebx
push esi
lea ecx, [ebp - 0xfc]
call fcn.1000131a
test byte [ebp - 0x10], 4
mov byte [ebp - 4], 0x20
je 0x1002c493
and dword [ebp - 0x10], 0xfffffffb
push ebx
push esi
lea ecx, [ebp - 0xa8]
call fcn.1000131a
lea eax, [ebp + 0x1a4]
push eax
call fcn.1002bef7
cmp al, 1
pop ecx
jne 0x1002c4af
lea eax, [ebp + 0x1a4]
mov dword [ebp - 0x1c], eax
jmp 0x1002c4c7
push 0x100604d0
lea ecx, [ebp - 0x6c]
call fcn.10001681
mov dword [ebp - 0x1c], eax
or dword [ebp - 0x10], 8
mov byte [ebp - 4], 0x21
push edi
lea eax, [ebp + 0x1c0]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.10004fad
push dword [ebp - 0x1c]
mov dword [ebp - 4], 0x22
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.1000971d
push edi
push eax
lea eax, [ebp - 0xe0]
push eax
mov byte [ebp - 4], 0x23
call fcn.10004fad
lea ecx, [ebp + 0x188]
push ecx
push eax
lea eax, [ebp + 0x118]
push eax
mov byte [ebp - 4], 0x24
call fcn.1000971d
add esp, 0x30
push ebx
push esi
lea ecx, [ebp - 0xe0]
call fcn.1000131a
push ebx
push esi
lea ecx, [ebp - 0xc4]
call fcn.1000131a
push ebx
push esi
lea ecx, [ebp - 0x50]
call fcn.1000131a
test byte [ebp - 0x10], 8
mov byte [ebp - 4], 0x29
je 0x1002c558
and dword [ebp - 0x10], 0xfffffff7
push ebx
push esi
lea ecx, [ebp - 0x6c]
call fcn.1000131a
push fcn.100014cc
push fcn.10001dc7
push 0xa
push 0x1c
lea eax, [ebp]
push eax
call fcn.10033d38
mov edi, 0x8004
push edi
push dword [ebp + 0x268]
lea eax, [ebp + 0x150]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
mov byte [ebp - 4], 0x2a
call fcn.1000163e
lea eax, [ebp - 0xa8]
push eax
call fcn.1002a3c1
add esp, 0x28
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 0x2b
call fcn.10001537
push ebx
push esi
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 0x2a
call fcn.1000131a
push edi
push dword [ebp + 0x268]
lea eax, [ebp + 0x134]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.1000163e
lea eax, [ebp - 0xa8]
push eax
call fcn.1002a3c1
add esp, 0x28
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 0x2c
call fcn.10001537
push ebx
push esi
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 0x2a
call fcn.1000131a
push edi
push dword [ebp + 0x268]
lea eax, [ebp + 0x118]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.1000163e
lea eax, [ebp - 0xa8]
push eax
call fcn.1002a3c1
add esp, 0x28
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 0x2d
call fcn.10001537
push ebx
mov byte [ebp - 4], 0x2a
push esi
lea ecx, [ebp - 0xa8]
call fcn.1000131a
mov edx, dword [ebp + 0x3c]
push 8
pop edi
cmp dword [ebp + 0x50], edi
jae 0x1002c667
lea edx, [ebp + 0x3c]
cmp dword [ebp + 0x34], edi
mov ecx, dword [ebp + 0x20]
jae 0x1002c672
lea ecx, [ebp + 0x20]
cmp dword [ebp + 0x18], edi
mov eax, dword [ebp + 4]
jae 0x1002c67d
lea eax, [ebp + 4]
push edx
push ecx
push eax
lea eax, [ebp + 0x214]
push str._s_r_n_s_r_n_s
push eax
call fcn.10007397
mov eax, dword [ebp + 0x218]
add esp, 0x14
cmp dword [ebp + 0x22c], edi
mov dword [ebp - 0x24], ebx
jae 0x1002c6ab
lea eax, [ebp + 0x218]
mov edi, dword [ebp - 0x20]
push ebx
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp + 0x228]
add ecx, ecx
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1002c6da
cmp edi, ebx
je 0x1002c6d3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10071248
jmp 0x1002c72d
cmp dword [ebp - 0x24], ebx
je 0x1002c6c8
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x8c]
push eax
push edi
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x88], ecx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
je 0x1002c6c8
cmp edi, ebx
je 0x1002c728
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10070ad0
mov ecx, dword [ebp - 0x18]
call fcn.10001681
or dword [ebp - 0x10], esi
push fcn.100014cc
push 0xa
push 0x1c
lea eax, [ebp]
push eax
mov byte [ebp - 4], 0x29
call fcn.10033b03
push ebx
push esi
lea ecx, [ebp + 0x118]
call fcn.1000131a
push ebx
push esi
lea ecx, [ebp + 0x134]
call fcn.1000131a
push ebx
push esi
lea ecx, [ebp + 0x150]
call fcn.1000131a
push ebx
push esi
lea ecx, [ebp + 0x214]
call fcn.1000131a
push ebx
push esi
lea ecx, [ebp + 0x188]
call fcn.1000131a
push ebx
push esi
lea ecx, [ebp + 0x1a4]
call fcn.1000131a
push ebx
push esi
lea ecx, [ebp + 0x1f8]
call fcn.1000131a
push ebx
push esi
lea ecx, [ebp + 0x1dc]
call fcn.1000131a
push ebx
push esi
lea ecx, [ebp + 0x1c0]
call fcn.1000131a
push ebx
push esi
lea ecx, [ebp + 0x230]
call fcn.1000131a
push ebx
push esi
lea ecx, [ebp + 0x16c]
call fcn.1000131a
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x24c]
xor ecx, ebp
call fcn.10031c08
add ebp, 0x250
leave
ret