Function at 0x10116430
Capabilities:
Check if file exists
Delete file
Get file attributes
Get file size
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 0x101d949b
push eax
mov dword fs:[0], esp
sub esp, 0x814
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
xor ebx, ebx
push edi
mov dword [0x1026aaa0], ebx
call ebp
mov esi, dword [esp + 0x834]
mov dword [0x1026aaa8], eax
cmp esi, ebx
je 0x1011703b
cmp word [esi], bx
je 0x1011703b
mov eax, dword [esp + 0x838]
cmp eax, ebx
je 0x1011703b
cmp word [eax], bx
je 0x1011703b
cmp dword [0x1026aaac], ebx
jne 0x101164b5
mov dword [0x1026aaa0], 2
mov dword [0x1026aaa4], 0x2eb6
jmp 0x1011704f
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
call edi
test al, 0x10
mov dword [esp + 0x78], eax
je 0x101164df
mov dword [0x1026aaa0], 0x1d
mov dword [0x1026aaa4], 0x2ebe
jmp 0x1011704f
mov eax, dword [esp + 0x838]
push eax
call edi
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
je 0x1011650f
test al, 0x10
je 0x1011650f
mov dword [0x1026aaa0], 0x1e
mov dword [0x1026aaa4], 0x2ec8
jmp 0x1011704f
mov ecx, dword [esp + 0x838]
or edi, 0xffffffff
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x58], ebx
call fcn.10147990
mov edx, dword [esp + 0x848]
push ebx
push 0x80
push 3
push ebx
push edx
push SysReAllocStringLen
push esi
mov dword [esp + 0x848], ebx
call fcn.10148890
mov esi, eax
add esp, 0x1c
cmp esi, edi
mov dword [esp + 0x20], esi
je 0x10116da5
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x64]
push eax
lea edx, [esp + 0x70]
push ecx
push edx
push esi
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, 0xf7
xor eax, eax
lea edi, [esp + 0x445]
mov byte [esp + 0x444], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x444]
test eax, eax
je 0x1011663e
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x10116625
mov ecx, 0xf8
xor eax, eax
lea edi, [esp + 0x444]
push ebx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x448]
push ecx
push 0x3e0
push edx
push esi
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10116654
mov dword [0x1026aaa0], 0xd
mov dword [0x1026aaa4], 0x29f7
call ebp
mov dword [0x1026aaa8], eax
mov dword [0x1026aaa0], 0xf
mov dword [0x1026aaa4], 0x2ef6
jmp 0x10116f8a
mov dword [0x1026aaa0], 1
mov dword [0x1026aaa4], 0x29ea
jmp 0x1011661e
lea eax, [esp + 0x444]
push eax
call fcn.10114730
mov edx, eax
add esp, 4
cmp edx, ebx
mov dword [esp + 0x18], edx
je 0x10116dd5
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x7d]
mov byte [esp + 0x7c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xe1
xor eax, eax
lea edi, [esp + 0xbd]
mov byte [esp + 0xbc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp edx, 3
mov dword [esp + 0x4c], ebx
stosb byte es:[edi], al
jne 0x101167da
lea ecx, [esp + 0xbc]
lea edx, [esp + 0x444]
push ecx
push edx
call fcn.10113dd0
add esp, 8
test eax, eax
je 0x10116dee
mov dword [0x1026aaa0], ebx
call ebp
mov dword [0x1026aaa8], eax
lea eax, [esp + 0xbc]
test eax, eax
jne 0x1011671b
mov dword [0x1026aaa0], 1
mov dword [0x1026aaa4], 0x3745
call ebp
mov dword [0x1026aaa8], eax
mov dword [0x1026aaa0], 0x1f
mov dword [0x1026aaa4], 0x2f15
jmp 0x10116f8a
cmp dword [0x1026aaac], ebx
jne 0x10116739
mov dword [0x1026aaa0], 2
mov dword [0x1026aaa4], 0x374b
jmp 0x101166fb
cmp dword [0x1026b05c], ebx
jne 0x10116790
mov eax, dword [esp + 0x2a8]
mov edx, dword [esp + 0x2b0]
mov ecx, dword [0x1026aabc]
cmp eax, 0x2710
ja 0x1011676e
cmp ecx, 0x2710
ja 0x10116790
cmp ecx, eax
je 0x10116790
cmp eax, ebx
jne 0x1011677e
jmp 0x10116790
cmp eax, ecx
jne 0x1011677e
cmp dword [0x1026aac4], ebx
ja 0x10116790
cmp edx, ebx
je 0x10116790
push edx
push eax
call fcn.1011a4a0
add esp, 8
cmp eax, ebx
je 0x10116702
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x7c]
push ecx
push 0x40
lea eax, [esp + 0x60]
push edx
lea ecx, [esp + 0xc8]
push eax
push ecx
mov dword [esp + 0x6c], ebx
call fcn.1011ae90
add esp, 0x14
test eax, eax
je 0x10116e07
mov edx, dword [esp + 0x58]
push edx
call fcn.1014a6a0
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x48], ebx
je 0x10116e20
jmp 0x10116851
cmp edx, 1
jne 0x101167f8
push edx
call fcn.1014a6a0
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x48], ebx
je 0x10116e56
jmp 0x10116851
cmp edx, 2
jne 0x10116f76
push edx
call fcn.1014a6a0
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x48], ebx
je 0x10116e8c
mov edi, 0x10247b08
or ecx, 0xffffffff
xor eax, eax
mov esi, 0x10247b08
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x7c]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x10247b08
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x838]
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push ecx
call fcn.10148890
mov esi, eax
or edi, 0xffffffff
add esp, 0x1c
cmp esi, edi
mov dword [esp + 0x14], esi
je 0x10116ec2
mov eax, dword [esp + 0x24]
xor edx, edx
cmp eax, edi
mov eax, dword [esp + 0x18]
sete dl
cmp eax, 3
mov dword [esp + 0x3c], edx
jne 0x10116b44
mov eax, dword [esp + 0xd8]
mov ecx, dword [esp + 0xd4]
push eax
push ecx
push esi
call fcn.10148850
add esp, 0xc
test eax, eax
je 0x10116edb
mov edx, dword [esp + 0xf4]
mov eax, dword [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ebx, ebx
push ebx
push ebx
push edx
push eax
mov dword [esp + 0x4c], 1
call edi
push ebx
push ebx
push ebx
push esi
call edi
mov eax, dword [esp + 0xf8]
mov dword [esp + 0x10], ebx
cmp eax, ebx
mov dword [esp + 0x1c], ebx
jne 0x10116905
mov edi, 1
jmp 0x10116afd
mov ecx, dword [esp + 0xfc]
cmp eax, 1
mov dword [esp + 0x50], ecx
jne 0x10116920
mov ecx, dword [esp + 0x100]
mov dword [esp + 0x50], ecx
push ecx
call fcn.100637b2
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x10116ef1
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x50]
push eax
mov edx, dword [ecx]
call dword [edx + 0xc]
push eax
mov dword [esp + 0x28], eax
call fcn.100637b2
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10116f07
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0xf8]
mov esi, dword [esp + 0xfc]
inc eax
cmp eax, ecx
mov dword [esp + 0x38], eax
jne 0x1011698a
mov esi, dword [esp + 0x100]
mov dword [esp + 0x1c], 1
mov ecx, dword [esp + 0x50]
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
mov dword [esp + 0x78], 0
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x28]
xor eax, eax
mov edx, ecx
mov edi, ebx
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 + 0x24]
lea eax, [esp + 0x78]
push eax
push esi
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10116a63
mov edx, dword [ebp]
add esi, 0xfffffffc
lea edi, [ebp + 4]
push edx
push esi
push edi
call fcn.10147ae0
add esp, 0xc
test eax, eax
je 0x10116a79
mov ecx, dword [esp + 0x48]
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x54]
push ebx
push esi
push edi
push edx
lea edx, [esp + 0x94]
push edx
mov dword [esp + 0x44], 0
call dword [eax + 0x14]
test eax, eax
je 0x10116a8f
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push 0
push eax
push ecx
push ebx
push edx
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10116aa5
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jb 0x10116abb
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10116960
jmp 0x10116ae2
mov dword [0x1026aaa0], 0xd
mov dword [0x1026aaa4], 0x2fa1
jmp 0x10116acf
mov dword [0x1026aaa0], 0x1c
mov dword [0x1026aaa4], 0x2fa9
jmp 0x10116acf
mov dword [0x1026aaa0], 0x12
mov dword [0x1026aaa4], 0x2fb2
jmp 0x10116acf
mov dword [0x1026aaa0], 0xe
mov dword [0x1026aaa4], 0x2fba
jmp 0x10116acf
mov dword [0x1026aaa0], 0xe
mov dword [0x1026aaa4], 0x2fc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1026aaa8], eax
mov dword [esp + 0x10], 1
push ebp
call fcn.100637e1
push ebx
call fcn.100637e1
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test edi, edi
je 0x10116d7c
test ebx, ebx
jne 0x10116d7c
mov al, byte [esp + 0x83c]
mov dword [esp + 0x44], 1
test al, 1
je 0x10116d66
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x70]
push edx
push eax
push ecx
jmp 0x10116d60
cmp eax, 1
je 0x10116b5f
cmp eax, 2
jne 0x10116d7c
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x14]
or edi, 0xffffffff
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
push ecx
push eax
push esi
call fcn.10148850
add esp, 0xc
test eax, eax
je 0x10116f47
mov edx, dword [esp + 0x20]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0x100
push edx
mov dword [esp + 0x4c], 1
call ebp
push 0
push 0
push 0
push esi
call ebp
push 0x10000
call fcn.100637b2
mov esi, eax
add esp, 4
test esi, esi
je 0x10116f62
push 0x10000
call fcn.100637b2
mov ebp, eax
xor eax, eax
add esp, 4
cmp ebp, eax
je 0x10116f2f
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], eax
mov ecx, 0x4000
xor eax, eax
mov edi, esi
mov dword [esp + 0x24], eax
rep stosd dword es:[edi], eax
mov ecx, 0x4000
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
push 0x10000
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10116c83
mov eax, dword [esp + 0x24]
xor edi, edi
cmp eax, edi
je 0x10116c99
lea ecx, [esp + 0x1c]
mov edx, dword [ebx]
push ecx
push 0x10000
push ebp
push eax
mov eax, dword [esp + 0x5c]
push esi
lea ecx, [esp + 0x90]
push eax
push ecx
mov ecx, ebx
mov dword [esp + 0x38], edi
call dword [edx + 0x14]
cmp eax, edi
je 0x10116ca3
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x38]
push edi
push edx
push eax
push ebp
push ecx
mov dword [esp + 0x4c], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10116cb9
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
cmp edx, eax
jb 0x10116ccf
jmp 0x10116bed
mov dword [0x1026aaa0], 0xd
mov dword [0x1026aaa4], 0x3005
jmp 0x10116ce3
mov dword [esp + 0x28], 1
jmp 0x10116cf6
mov dword [0x1026aaa0], 0x12
mov dword [0x1026aaa4], 0x3014
jmp 0x10116ce3
mov dword [0x1026aaa0], 0xe
mov dword [0x1026aaa4], 0x301c
jmp 0x10116ce3
mov dword [0x1026aaa0], 0xe
mov dword [0x1026aaa4], 0x3023
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1026aaa8], eax
mov dword [esp + 0x10], 1
push esi
call fcn.100637e1
push ebp
call fcn.100637e1
mov esi, dword [esp + 0x1c]
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x10116d7c
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x10116d7c
mov bl, byte [esp + 0x83c]
test bl, 4
je 0x10116d43
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x54]
lea ecx, [esp + 0x40]
push eax
push ecx
push edx
call fcn.10148080
add esp, 0xc
test bl, 1
mov dword [esp + 0x44], 1
je 0x10116d66
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x64]
push eax
lea edx, [esp + 0x70]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov eax, dword [esp + 0x840]
test eax, eax
je 0x10116d7c
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
lea ecx, [esp + 0x2c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x82c], eax
call fcn.10147a30
xor ebx, ebx
jmp 0x10116fa5
mov dword [0x1026aaa0], 3
mov dword [0x1026aaa4], 0x2ee6
call ebp
lea ecx, [esp + 0x2c]
mov dword [0x1026aaa8], eax
mov dword [esp + 0x82c], edi
call fcn.10147a30
jmp 0x10116fbe
mov dword [0x1026aaa0], 0x22
mov dword [0x1026aaa4], 0x2efd
jmp 0x10116f8a
mov dword [0x1026aaa0], 0x14
mov dword [0x1026aaa4], 0x2f0c
jmp 0x10116f8a
mov dword [0x1026aaa0], 0xb
mov dword [0x1026aaa4], 0x2f1e
jmp 0x10116f8a
mov dword [0x1026aaa0], 0xc
mov dword [0x1026aaa4], 0x2f27
call ebp
lea ecx, [esp + 0x2c]
mov dword [0x1026aaa8], eax
mov dword [esp + 0x82c], 0xffffffff
call fcn.10147a30
xor ebx, ebx
jmp 0x10116fa5
mov dword [0x1026aaa0], 0xc
mov dword [0x1026aaa4], 0x2f32
call ebp
lea ecx, [esp + 0x2c]
mov dword [0x1026aaa8], eax
mov dword [esp + 0x82c], 0xffffffff
call fcn.10147a30
xor ebx, ebx
jmp 0x10116fa5
mov dword [0x1026aaa0], 0xc
mov dword [0x1026aaa4], 0x2f3d
call ebp
lea ecx, [esp + 0x2c]
mov dword [0x1026aaa8], eax
mov dword [esp + 0x82c], 0xffffffff
call fcn.10147a30
xor ebx, ebx
jmp 0x10116fa5
mov dword [0x1026aaa0], 4
mov dword [0x1026aaa4], 0x2f56
jmp 0x10116f5b
mov dword [0x1026aaa0], 0x25
mov dword [0x1026aaa4], 0x2f62
jmp 0x10116f5b
mov dword [0x1026aaa0], 0x21
mov dword [0x1026aaa4], 0x2f7d
jmp 0x10116f24
push ebp
call fcn.100637e1
add esp, 4
mov dword [0x1026aaa0], 0x21
mov dword [0x1026aaa4], 0x2f88
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1026aaa8], eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x82c], 0xffffffff
call fcn.10147a30
xor ebx, ebx
jmp 0x10116fa5
mov dword [0x1026aaa0], 0x25
mov dword [0x1026aaa4], 0x2fe7
call ebp
mov dword [0x1026aaa8], eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x82c], edi
call fcn.10147a30
xor ebx, ebx
jmp 0x10116fa5
mov dword [0x1026aaa0], 0x22
mov dword [0x1026aaa4], 0x2f47
call ebp
lea ecx, [esp + 0x2c]
mov dword [0x1026aaa8], eax
mov dword [esp + 0x82c], 0xffffffff
call fcn.10147a30
mov edx, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x10116fbe
push eax
call esi
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
cmp eax, ebx
je 0x10116ff5
cmp esi, ebx
je 0x10116fe8
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x838]
push ecx
push eax
push edx
call fcn.10148300
mov eax, dword [esp + 0x4c]
add esp, 0xc
push eax
call fcn.100637e1
add esp, 4
mov dword [esp + 0x40], ebx
cmp esi, ebx
je 0x1011701a
test byte [esp + 0x83c], 2
je 0x10117037
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x838]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
jmp 0x10117058
cmp dword [esp + 0x3c], ebx
je 0x10117037
cmp dword [esp + 0x844], ebx
jne 0x10117037
mov edx, dword [esp + 0x838]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, esi
jmp 0x10117058
mov dword [0x1026aaa0], 1
mov dword [0x1026aaa4], 0x2eb0
call ebp
mov dword [0x1026aaa8], eax
xor eax, eax
mov ecx, dword [esp + 0x824]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x820
ret