Function at 0x693a90
Capabilities:
Delete file
Read file on windows
Resolve function by parsing pe exports
Set file attributes
Timestomp file
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x887f36
push eax
mov dword fs:[0], esp
sub esp, 0x514
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push edi
xor edi, edi
mov dword [0x9ddbd8], edi
call ebp
mov esi, dword [esp + 0x534]
mov dword [0x9ddbe0], eax
cmp esi, edi
je 0x69457f
cmp word [esi], di
je 0x69457f
mov ebx, dword [esp + 0x538]
cmp ebx, edi
je 0x69457f
cmp word [ebx], di
je 0x69457f
cmp dword [0x9ddbe4], edi
jne 0x693b15
mov dword [0x9ddbd8], 2
mov dword [0x9ddbdc], 0x1f4b
jmp 0x694593
push esi
call fcn.006a31f0
add esp, 4
mov dword [esp + 0x90], eax
test al, 0x10
je 0x693b42
mov dword [0x9ddbd8], 0x1d
mov dword [0x9ddbdc], 0x1f53
jmp 0x694593
push ebx
call fcn.006a31f0
add esp, 4
cmp eax, 0xffffffff
mov dword [esp + 0x3c], eax
je 0x693b71
test al, 0x10
je 0x693b71
mov dword [0x9ddbd8], 0x1e
mov dword [0x9ddbdc], 0x1f5d
jmp 0x694593
mov eax, dword [esp + 0x538]
lea ecx, [esp + 0x24]
push eax
mov dword [esp + 0x4c], edi
mov dword [esp + 0x54], edi
or ebx, 0xffffffff
mov dword [esp + 0x3c], edi
mov dword [esp + 0x70], edi
call fcn.006a30e0
push edi
push 0x80
push 3
push edi
push 5
push SysReAllocString
push esi
mov dword [esp + 0x548], edi
call fcn.006a4030
add esp, 0x1c
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x6942a6
lea ecx, [esp + 0x78]
lea edx, [esp + 0x88]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x84]
push edx
xor esi, esi
push eax
push ecx
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], esi
mov dword [esp + 0x98], esi
mov dword [esp + 0x9c], esi
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xcd]
mov byte [esp + 0xcc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xcc]
push edx
push eax
call fcn.00696980
add esp, 8
test eax, eax
je 0x6942dc
lea ecx, [esp + 0xcc]
test ecx, ecx
je 0x6942f5
push 0x10
lea edx, [esp + 0xd0]
push 0x992ee4
push edx
call fcn.005fef40
add esp, 0xc
test eax, eax
jne 0x6942f5
test byte [esp + 0xfe], 1
je 0x6942f5
mov edx, dword [esp + 0xec]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x38]
push esi
push ecx
push esi
push edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x48], esi
call fcn.0068e380
mov eax, dword [esp + 0x30]
add esp, 0x14
cmp eax, esi
jne 0x69430b
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x15d]
mov byte [esp + 0x15c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0x110]
mov dword [esp + 0x10c], esi
mov edx, dword [esp + 0x10]
mov dword [esp + 0x94], esi
rep stosd dword es:[edi], eax
mov ecx, 0xd
lea edi, [esp + 0x98]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10c]
lea ecx, [esp + 0xcc]
push eax
push ecx
push edx
mov dword [esp + 0x68], esi
call fcn.00696bc0
add esp, 0xc
test eax, eax
je 0x694321
mov ecx, 0xe1
xor eax, eax
lea edi, [esp + 0x19d]
mov byte [esp + 0x19c], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x19c]
push eax
push ecx
call fcn.00691300
add esp, 8
test eax, eax
je 0x694337
mov edi, dword [esp + 0x10]
lea edx, [esp + 0x94]
lea eax, [esp + 0x10c]
push edx
lea ecx, [esp + 0xd0]
push eax
push ecx
push edi
call fcn.00696e40
add esp, 0x10
test eax, eax
je 0x69434d
cmp word [esp + 0x9e], si
jne 0x694363
lea ecx, [esp + 0x20]
call fcn.00636b60
lea edx, [esp + 0x68]
lea eax, [esp + 0x60]
push edx
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x114]
push ecx
lea eax, [esp + 0xd8]
push edx
push eax
push edi
mov byte [esp + 0x544], 1
mov dword [esp + 0x78], esi
mov dword [esp + 0x80], esi
call fcn.00697090
add esp, 0x18
test eax, eax
je 0x694397
mov edx, dword [esp + 0x60]
xor edi, edi
xor ecx, ecx
mov si, word [edx + 0xc]
cmp si, di
jbe 0x693e24
mov edx, dword [esp + 0x68]
mov eax, ecx
and eax, 0xffff
lea eax, [eax + eax*4]
test byte [edx + eax*8 + 8], 1
lea eax, [edx + eax*8]
je 0x693e1e
mov eax, dword [eax]
cmp eax, 1
jb 0x6943dc
cmp eax, 4
ja 0x6943dc
inc ecx
cmp cx, si
jb 0x693df6
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x15c]
push ecx
push 0x40
lea eax, [esp + 0x6c]
push edx
lea ecx, [esp + 0x118]
push eax
push ecx
mov dword [esp + 0x78], edi
call fcn.00694f30
add esp, 0x14
test eax, eax
je 0x694421
mov edx, dword [esp + 0x64]
push edx
call fcn.0067ea20
add esp, 4
cmp eax, edi
mov dword [esp + 0x74], eax
je 0x694437
lea ecx, [esp + 0x20]
mov byte [esp + 0x52c], 0
call fcn.00636c90
mov eax, dword [esp + 0x538]
push edi
push 0x80
push 4
push edi
push edi
push 0xc0000000
push eax
call fcn.006a4030
mov ebx, eax
or esi, 0xffffffff
add esp, 0x1c
cmp ebx, esi
mov dword [esp + 0x30], ebx
je 0x69444d
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0xa4]
xor ecx, ecx
cmp eax, esi
mov eax, dword [esp + 0xa8]
push eax
push edx
sete cl
push ebx
mov dword [esp + 0x5c], ecx
call fcn.006a3ff0
add esp, 0xc
test eax, eax
je 0x694463
mov eax, dword [esp + 0x130]
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
push edi
push eax
push ecx
mov dword [esp + 0x60], 1
call esi
push edi
push edi
push edi
push ebx
call esi
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x18], edi
cmp eax, edi
mov dword [esp + 0x1c], edi
jne 0x693f22
mov esi, 1
xor edi, edi
jmp 0x694216
mov ecx, dword [esp + 0xc0]
cmp eax, 1
mov dword [esp + 0x54], ecx
jne 0x693f3d
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x54], ecx
push ecx
call fcn.008325b4
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x694490
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x54]
push eax
mov edx, dword [ecx]
call dword [edx + 0xc]
push eax
mov dword [esp + 0x44], eax
call fcn.008325b4
mov ebp, eax
xor eax, eax
add esp, 4
cmp ebp, eax
je 0x6944a8
mov dword [esp + 0x4c], eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0xbc]
mov esi, dword [esp + 0xc0]
inc eax
cmp eax, ecx
mov dword [esp + 0x44], eax
jne 0x693fa9
mov esi, dword [esp + 0xc4]
mov dword [esp + 0x1c], 1
mov ecx, dword [esp + 0x54]
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
mov dword [esp + 0x5c], 0
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x44]
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x5c]
push eax
push esi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x694166
cmp esi, dword [esp + 0x58]
jne 0x69417c
mov ecx, dword [esp + 0xb8]
xor eax, eax
xor edi, edi
cmp eax, ecx
mov dword [esp + 0x14], edi
ja 0x69408f
jb 0x694027
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0xb4]
cmp edx, eax
jae 0x69408f
mov edx, dword [esp + 0x9c]
lea eax, [esp + 0x70]
lea ecx, [esp + 0x3c]
push eax
push ecx
push esi
push ebx
push edx
mov dword [esp + 0x50], edi
mov dword [esp + 0x84], edi
call fcn.006998d0
add esp, 0x14
test eax, eax
je 0x694192
lea edx, [esp + 0x14]
mov ecx, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x78]
push ebp
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x70]
push edx
lea edx, [esp + 0x174]
push edx
call dword [eax + 0x14]
cmp eax, edi
je 0x6941a8
mov eax, dword [esp + 0x14]
jmp 0x6940e1
mov eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0x40]
cmp eax, ecx
mov dword [esp + 0x14], eax
jbe 0x6940a8
mov eax, ecx
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x9c]
and ecx, 0xffff
sub ecx, edi
je 0x6940cd
dec ecx
je 0x6940c6
dec ecx
jne 0x6940e1
mov ecx, eax
lea esi, [ebx + 8]
jmp 0x6940d1
mov ecx, eax
lea esi, [ebx + 4]
jmp 0x6940d1
mov ecx, eax
mov esi, ebx
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0xbc]
cmp ecx, edx
jne 0x69411f
mov eax, dword [esp + 0xa8]
test eax, eax
mov eax, dword [esp + 0xa4]
ja 0x694109
cmp eax, 0x1000
jbe 0x69411b
and eax, 0xfff
xor ecx, ecx
mov edx, eax
or edx, ecx
jne 0x69411b
mov eax, 0x1000
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x4c]
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x34]
push 0
push ecx
push eax
add edi, eax
push ebp
push edx
mov dword [esp + 0x60], edi
mov dword [esp + 0x48], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x6941be
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
cmp eax, ecx
jb 0x6941d4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x693f7f
jmp 0x6941fb
mov dword [0x9ddbd8], 0xd
mov dword [0x9ddbdc], 0x2047
jmp 0x6941e8
mov dword [0x9ddbd8], 0xd
mov dword [0x9ddbdc], 0x204f
jmp 0x6941e8
mov dword [0x9ddbd8], 0x1c
mov dword [0x9ddbdc], 0x2060
jmp 0x6941e8
mov dword [0x9ddbd8], 0x12
mov dword [0x9ddbdc], 0x2069
jmp 0x6941e8
mov dword [0x9ddbd8], 0xe
mov dword [0x9ddbdc], 0x2082
jmp 0x6941e8
mov dword [0x9ddbd8], 0xe
mov dword [0x9ddbdc], 0x208a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x9ddbe0], eax
mov dword [esp + 0x18], 1
push ebx
call fcn.008325dd
push ebp
call fcn.008325dd
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x38]
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test esi, esi
je 0x694287
test edi, edi
jne 0x694287
test byte [esp + 0x53c], 4
je 0x694246
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x6c]
lea edx, [esp + 0x38]
push ecx
push edx
push eax
call fcn.006a3820
add esp, 0xc
mov al, byte [esp + 0x53c]
mov dword [esp + 0x48], 1
test al, 1
je 0x694275
lea ecx, [esp + 0x78]
lea edx, [esp + 0x88]
push ecx
lea eax, [esp + 0x84]
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov eax, dword [esp + 0x540]
test eax, eax
je 0x694287
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or ebx, 0xffffffff
lea ecx, [esp + 0x24]
mov dword [esp + 0x52c], ebx
call fcn.006a31a0
jmp 0x6944e8
mov dword [0x9ddbd8], 3
mov dword [0x9ddbdc], 0x1f7b
call ebp
lea ecx, [esp + 0x24]
mov dword [0x9ddbe0], eax
mov dword [esp + 0x52c], 0xffffffff
call fcn.006a31a0
xor esi, esi
jmp 0x6944ff
mov dword [0x9ddbd8], 0xf
mov dword [0x9ddbdc], 0x1f88
jmp 0x694377
mov dword [0x9ddbd8], 0x22
mov dword [0x9ddbdc], 0x1f8f
jmp 0x694377
mov dword [0x9ddbd8], 0x31
mov dword [0x9ddbdc], 0x1f96
jmp 0x694377
mov dword [0x9ddbd8], 0x14
mov dword [0x9ddbdc], 0x1fa6
jmp 0x694377
mov dword [0x9ddbd8], 0x1f
mov dword [0x9ddbdc], 0x1fae
jmp 0x694377
mov dword [0x9ddbd8], 0x14
mov dword [0x9ddbdc], 0x1fb4
jmp 0x694377
mov dword [0x9ddbd8], 1
mov dword [0x9ddbdc], 0x1fbb
call ebp
lea ecx, [esp + 0x24]
mov dword [0x9ddbe0], eax
mov dword [esp + 0x52c], 0xffffffff
call fcn.006a31a0
jmp 0x6944ea
mov dword [0x9ddbd8], 0x14
mov dword [0x9ddbdc], 0x1fc5
call ebp
lea ecx, [esp + 0x20]
mov dword [0x9ddbe0], eax
mov byte [esp + 0x52c], 0
call fcn.00636c90
lea ecx, [esp + 0x24]
mov dword [esp + 0x52c], 0xffffffff
call fcn.006a31a0
jmp 0x6944ea
mov dword [0x9ddbd8], 0x32
mov dword [0x9ddbdc], 0x1fcb
call ebp
lea ecx, [esp + 0x20]
mov dword [0x9ddbe0], eax
mov byte [esp + 0x52c], 0
call fcn.00636c90
lea ecx, [esp + 0x24]
mov dword [esp + 0x52c], 0xffffffff
call fcn.006a31a0
jmp 0x6944e8
mov dword [0x9ddbd8], 0xb
mov dword [0x9ddbdc], 0x1fdb
jmp 0x6943f0
mov dword [0x9ddbd8], 0xc
mov dword [0x9ddbdc], 0x1fe4
jmp 0x6943f0
mov dword [0x9ddbd8], 4
mov dword [0x9ddbdc], 0x1ffa
jmp 0x694477
mov dword [0x9ddbd8], 0x25
mov dword [0x9ddbdc], 0x2007
call ebp
lea ecx, [esp + 0x24]
mov dword [0x9ddbe0], eax
mov dword [esp + 0x52c], esi
call fcn.006a31a0
jmp 0x6944e8
mov dword [0x9ddbd8], 0x21
mov dword [0x9ddbdc], 0x2022
call ebp
jmp 0x6944cb
push ebx
call fcn.008325dd
add esp, 4
mov dword [0x9ddbd8], 0x21
mov dword [0x9ddbdc], 0x202d
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x24]
mov dword [0x9ddbe0], eax
mov dword [esp + 0x52c], 0xffffffff
call fcn.006a31a0
mov ebx, dword [esp + 0x30]
xor esi, esi
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
cmp ebx, 0xffffffff
je 0x6944ff
push ebx
call edi
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x48]
cmp eax, esi
je 0x694536
cmp edi, esi
je 0x694529
mov edx, dword [esp + 0x6c]
push edx
push eax
mov eax, dword [esp + 0x540]
push eax
call fcn.006a3aa0
mov eax, dword [esp + 0x44]
add esp, 0xc
push eax
call fcn.008325dd
add esp, 4
mov dword [esp + 0x38], esi
cmp edi, esi
je 0x69455e
test byte [esp + 0x53c], 2
je 0x69457b
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x538]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, edi
jmp 0x69459c
cmp dword [esp + 0x50], esi
je 0x69457b
cmp dword [esp + 0x544], esi
jne 0x69457b
mov eax, dword [esp + 0x538]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
jmp 0x69459c
mov dword [0x9ddbd8], 1
mov dword [0x9ddbdc], 0x1f45
call ebp
mov dword [0x9ddbe0], eax
xor eax, eax
mov ecx, dword [esp + 0x524]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x520
ret