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

Disassembly:
push ebp
sub esp, 0x118
lea ebp, [esp - 4]
mov eax, dword [0x10081730]
xor eax, ebp
mov dword [ebp + 0x118], eax
push 0x60
mov eax, 0x1005d327
call fcn.10031c17
mov eax, dword [ebp + 0x124]
xor ebx, ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x128]
mov dword [ebp - 0x18], ebx
push dword [ebp + 0x12c]
mov dword [ebp - 4], ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.10001681
lea eax, [ebp]
push eax
call fcn.1002a7b2
add esp, 0x24
push 7
pop edi
push ebx
lea ecx, [ebp + 0xfc]
mov dword [ebp + 0x114], edi
call fcn.100011bf
cmp dword [ebp + 0x144], ebx
mov byte [ebp - 4], 2
jne 0x1002b41d
push str.npslm20w.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
lea eax, [ebp + 0xe0]
push 2
push eax
call fcn.10004eb1
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0xfc]
mov byte [ebp - 4], 3
call fcn.10001537
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp + 0xe0]
mov byte [ebp - 4], 2
call fcn.1000131a
jmp 0x1002b6b8
push ebx
lea ecx, [ebp + 0x130]
call fcn.10006c1d
cmp word [eax], 0x24
jne 0x1002b6a0
push 8
push ebx
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp + 0x130]
call fcn.100071df
mov eax, dword [ebp + 0x144]
add eax, 0xfffffff8
push eax
push 8
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp + 0x130]
mov byte [ebp - 4], 4
call fcn.100071df
push str._logapp_
lea ecx, [ebp + 0xe0]
mov byte [ebp - 4], 5
call fcn.10001681
lea eax, [ebp + 0x38]
push eax
xor esi, esi
lea eax, [ebp + 0xe0]
inc esi
push eax
mov byte [ebp - 4], 6
mov dword [ebp - 0x18], esi
call fcn.1000707e
cmp al, 1
pop ecx
pop ecx
je 0x1002b4cb
push str._appdir_
lea ecx, [ebp + 0xa8]
call fcn.10001681
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp + 0xa8]
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], 3
call fcn.1000707e
cmp al, 1
pop ecx
pop ecx
mov byte [ebp - 0xd], bl
jne 0x1002b4cf
mov byte [ebp - 0xd], 1
test byte [ebp - 0x18], 2
je 0x1002b4e6
and dword [ebp - 0x18], 0xfffffffd
push ebx
push esi
lea ecx, [ebp + 0xa8]
call fcn.1000131a
test byte [ebp - 0x18], 1
mov dword [ebp - 4], 5
je 0x1002b500
push ebx
push esi
lea ecx, [ebp + 0xe0]
call fcn.1000131a
cmp byte [ebp - 0xd], bl
lea eax, [ebp + 0x38]
push eax
je 0x1002b635
lea eax, [ebp + 0xa8]
push eax
call fcn.10004ff4
pop ecx
pop ecx
mov byte [ebp - 4], 8
call fcn.10008250
cmp eax, esi
jne 0x1002b5f9
push ebx
push str.Roaming
lea ecx, [ebp + 0xa8]
call fcn.10006efd
cmp eax, 0xffffffff
je 0x1002b555
push 0x100604d0
push 8
push eax
lea ecx, [ebp + 0xa8]
call fcn.10021072
call fcn.1002a690
test eax, eax
lea eax, [ebp + 0xa8]
jne 0x1002b5ad
push str.Local
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.10004fad
lea ecx, [ebp + 0x1c]
push ecx
push eax
lea eax, [ebp + 0xe0]
push eax
mov byte [ebp - 4], 9
call fcn.1000971d
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0xfc]
mov byte [ebp - 4], 0xa
call fcn.10001537
push ebx
push esi
lea ecx, [ebp + 0xe0]
call fcn.1000131a
jmp 0x1002b623
push str.LocalLow
push eax
lea eax, [ebp + 0xe0]
push eax
call fcn.10004fad
lea ecx, [ebp + 0x1c]
push ecx
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 0xb
call fcn.1000971d
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0xfc]
mov byte [ebp - 4], 0xc
call fcn.10001537
push ebx
push esi
lea ecx, [ebp - 0x48]
call fcn.1000131a
lea ecx, [ebp + 0xe0]
jmp 0x1002b626
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp + 0xa8]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.1000971d
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0xfc]
mov byte [ebp - 4], 0xd
call fcn.10001537
lea ecx, [ebp - 0x48]
push ebx
push esi
call fcn.1000131a
lea ecx, [ebp + 0xa8]
jmp 0x1002b67f
lea eax, [ebp + 0xe0]
push eax
call fcn.10004ff4
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp + 0xe0]
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 0xe
call fcn.1000971d
add esp, 0x14
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0xfc]
mov byte [ebp - 4], 0xf
call fcn.10001537
push ebx
push esi
lea ecx, [ebp - 0x48]
call fcn.1000131a
lea ecx, [ebp + 0xe0]
push ebx
push esi
call fcn.1000131a
push ebx
push esi
lea ecx, [ebp + 0x1c]
call fcn.1000131a
push ebx
push esi
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 2
call fcn.1000131a
jmp 0x1002b6b5
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x130]
push eax
lea ecx, [ebp + 0xfc]
call fcn.10001537
xor esi, esi
inc esi
lea eax, [ebp + 0xfc]
push eax
call fcn.100048ef
lea eax, [ebp + 0xfc]
mov dword [esp], 0x100606f0
push eax
lea eax, [ebp + 0xe0]
push eax
call fcn.10004fad
lea ecx, [ebp]
push ecx
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 0x10
call fcn.1000971d
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0xfc]
mov byte [ebp - 4], 0x11
call fcn.10001537
push ebx
push esi
lea ecx, [ebp - 0x48]
call fcn.1000131a
push ebx
push esi
lea ecx, [ebp + 0xe0]
mov byte [ebp - 4], 2
call fcn.1000131a
cmp dword [ebp + 0x114], 8
mov eax, dword [ebp + 0x100]
jae 0x1002b736
lea eax, [ebp + 0x100]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, esi
mov edi, 0x80
jne 0x1002b783
cmp dword [ebp + 0x114], 8
mov eax, dword [ebp + 0x100]
jae 0x1002b75b
lea eax, [ebp + 0x100]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp eax, esi
jne 0x1002b783
cmp dword [ebp + 0x114], 8
mov eax, dword [ebp + 0x100]
jae 0x1002b77c
lea eax, [ebp + 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 0x114], 8
mov eax, dword [ebp + 0x100]
jae 0x1002b798
lea eax, [ebp + 0x100]
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 - 0x18], eax
jne 0x1002b7c4
mov ecx, dword [ebp - 0x14]
push str.false
call fcn.10001681
jmp 0x1002b9ff
lea eax, [ebp + 0x8c]
push eax
call fcn.1001e3b3
lea eax, [ebp + 0x8c]
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 0x12
call fcn.10007674
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x8c]
mov byte [ebp - 4], 0x13
call fcn.10001537
push ebx
push esi
lea ecx, [ebp - 0x48]
call fcn.1000131a
push 7
pop edi
push ebx
lea ecx, [ebp + 0x70]
mov dword [ebp + 0x88], edi
call fcn.100011bf
lea eax, [ebp + 0x70]
push eax
mov byte [ebp - 4], 0x14
call fcn.1001c017
pop ecx
push ebx
lea ecx, [ebp + 0x54]
mov dword [ebp + 0x6c], edi
call fcn.100011bf
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0x15
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
movzx eax, word [ebp - 0x20]
push eax
movzx eax, word [ebp - 0x22]
push eax
movzx eax, word [ebp - 0x24]
push eax
movzx eax, word [ebp - 0x26]
push eax
movzx eax, word [ebp - 0x2a]
push eax
movzx eax, word [ebp - 0x2c]
push eax
lea eax, [ebp + 0x54]
push str._d_d_d_d_d_d
push eax
call fcn.10007397
mov edi, 0x10070a2c
push edi
lea eax, [ebp + 0x8c]
push eax
lea eax, [ebp + 0x38]
push eax
call fcn.10004fad
lea ecx, [ebp + 0x70]
push ecx
push eax
lea eax, [ebp + 0xe0]
push eax
mov byte [ebp - 4], 0x16
call fcn.1000971d
mov byte [ebp - 4], 0x17
push edi
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.10004fad
add esp, 0x44
lea ecx, [ebp + 0x54]
push ecx
push eax
lea eax, [ebp + 0xc4]
push eax
mov byte [ebp - 4], 0x18
call fcn.1000971d
add esp, 0xc
push ebx
push esi
lea ecx, [ebp - 0x48]
call fcn.1000131a
push ebx
push esi
lea ecx, [ebp + 0xe0]
call fcn.1000131a
push ebx
push esi
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 0x1c
call fcn.1000131a
push 0x8003
push dword [ebp + 0x12c]
lea eax, [ebp + 0xc4]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x6c], esp
push eax
call fcn.1000163e
lea eax, [ebp + 0x1c]
push eax
call fcn.1002a3c1
add esp, 0x28
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0xc4]
mov byte [ebp - 4], 0x1d
call fcn.10001537
push ebx
push esi
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 0x1c
call fcn.1000131a
cmp dword [ebp + 0xdc], 8
mov eax, dword [ebp + 0xc8]
mov dword [ebp - 0x1c], ebx
jae 0x1002b956
lea eax, [ebp + 0xc8]
mov edi, dword [ebp - 0x18]
push ebx
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp + 0xd8]
add ecx, ecx
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1002b985
cmp edi, ebx
je 0x1002b97e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.false
jmp 0x1002b9c9
cmp dword [ebp - 0x1c], ebx
je 0x1002b973
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x68]
push eax
push edi
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x64], ecx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
je 0x1002b973
cmp edi, ebx
je 0x1002b9c4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10070ac4
mov ecx, dword [ebp - 0x14]
call fcn.10001681
push ebx
push esi
lea ecx, [ebp + 0xc4]
call fcn.1000131a
push ebx
push esi
lea ecx, [ebp + 0x54]
call fcn.1000131a
push ebx
push esi
lea ecx, [ebp + 0x70]
call fcn.1000131a
push ebx
push esi
lea ecx, [ebp + 0x8c]
call fcn.1000131a
push ebx
push esi
lea ecx, [ebp + 0xfc]
call fcn.1000131a
push ebx
push esi
lea ecx, [ebp]
call fcn.1000131a
push ebx
push esi
lea ecx, [ebp + 0x130]
call fcn.1000131a
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x118]
xor ecx, ebp
call fcn.10031c08
add ebp, 0x11c
leave
ret