Function at 0x1010abb0
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 0x101958cb
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 [0x102029f8], ebx
call ebp
mov esi, dword [esp + 0x834]
mov dword [0x10202a00], eax
cmp esi, ebx
je 0x1010b7b3
cmp word [esi], bx
je 0x1010b7b3
mov eax, dword [esp + 0x838]
cmp eax, ebx
je 0x1010b7b3
cmp word [eax], bx
je 0x1010b7b3
cmp dword [0x10202a04], ebx
jne 0x1010ac35
mov dword [0x102029f8], 2
mov dword [0x102029fc], 0x2eb1
jmp 0x1010b7c7
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
call edi
test al, 0x10
mov dword [esp + 0x78], eax
je 0x1010ac5f
mov dword [0x102029f8], 0x1d
mov dword [0x102029fc], 0x2eb9
jmp 0x1010b7c7
mov eax, dword [esp + 0x838]
push eax
call edi
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
je 0x1010ac8f
test al, 0x10
je 0x1010ac8f
mov dword [0x102029f8], 0x1e
mov dword [0x102029fc], 0x2ec3
jmp 0x1010b7c7
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.1013bba0
push ebx
push 0x80
push 3
push ebx
push 5
push closesocket
push esi
mov dword [esp + 0x848], ebx
call fcn.1013ca70
mov esi, eax
add esp, 0x1c
cmp esi, edi
mov dword [esp + 0x20], esi
je 0x1010b51d
lea edx, [esp + 0x5c]
lea eax, [esp + 0x64]
push edx
lea ecx, [esp + 0x70]
push eax
push ecx
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
lea edx, [esp + 0x444]
test edx, edx
stosb byte es:[edi], al
je 0x1010adb8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x1010ad9f
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x444]
push ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x448]
push eax
push 0x3e0
push ecx
push esi
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1010adce
mov dword [0x102029f8], 0xd
mov dword [0x102029fc], 0x29f7
call ebp
mov dword [0x10202a00], eax
mov dword [0x102029f8], 0xf
mov dword [0x102029fc], 0x2ef1
jmp 0x1010b702
mov dword [0x102029f8], 1
mov dword [0x102029fc], 0x29ea
jmp 0x1010ad98
lea edx, [esp + 0x444]
push edx
call fcn.10108ec0
mov edx, eax
add esp, 4
cmp edx, ebx
mov dword [esp + 0x18], edx
je 0x1010b54d
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 0x1010af54
lea eax, [esp + 0xbc]
lea ecx, [esp + 0x444]
push eax
push ecx
call fcn.10108560
add esp, 8
test eax, eax
je 0x1010b566
mov dword [0x102029f8], ebx
call ebp
lea edx, [esp + 0xbc]
mov dword [0x10202a00], eax
test edx, edx
jne 0x1010ae95
mov dword [0x102029f8], 1
mov dword [0x102029fc], 0x36f7
call ebp
mov dword [0x10202a00], eax
mov dword [0x102029f8], 0x1f
mov dword [0x102029fc], 0x2f10
jmp 0x1010b702
cmp dword [0x10202a04], ebx
jne 0x1010aeb3
mov dword [0x102029f8], 2
mov dword [0x102029fc], 0x36fd
jmp 0x1010ae75
cmp dword [0x10202fb4], ebx
jne 0x1010af0a
mov eax, dword [esp + 0x2a8]
mov edx, dword [esp + 0x2b0]
mov ecx, dword [0x10202a14]
cmp eax, 0x2710
ja 0x1010aee8
cmp ecx, 0x2710
ja 0x1010af0a
cmp ecx, eax
je 0x1010af0a
cmp eax, ebx
jne 0x1010aef8
jmp 0x1010af0a
cmp eax, ecx
jne 0x1010aef8
cmp dword [0x10202a1c], ebx
ja 0x1010af0a
cmp edx, ebx
je 0x1010af0a
push edx
push eax
call fcn.1010ea80
add esp, 8
cmp eax, ebx
je 0x1010ae7c
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x7c]
push eax
push 0x40
lea edx, [esp + 0x60]
push ecx
lea eax, [esp + 0xc8]
push edx
push eax
mov dword [esp + 0x6c], ebx
call fcn.1010f470
add esp, 0x14
test eax, eax
je 0x1010b57f
mov ecx, dword [esp + 0x58]
push ecx
call fcn.1013e880
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x48], ebx
je 0x1010b598
jmp 0x1010afc9
cmp edx, 1
jne 0x1010af72
push edx
call fcn.1013e880
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x48], ebx
je 0x1010b5ce
jmp 0x1010afc9
cmp edx, 2
jne 0x1010b6ee
push edx
call fcn.1013e880
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x48], ebx
je 0x1010b604
mov edi, 0x101e7964
or ecx, 0xffffffff
xor eax, eax
mov esi, 0x101e7964
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x7c]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x101e7964
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x4c], ecx
mov eax, dword [esp + 0x838]
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push eax
call fcn.1013ca70
mov esi, eax
or edi, 0xffffffff
add esp, 0x1c
cmp esi, edi
mov dword [esp + 0x14], esi
je 0x1010b63a
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
xor ecx, ecx
cmp edx, edi
sete cl
cmp eax, 3
mov dword [esp + 0x3c], ecx
jne 0x1010b2bc
mov edx, dword [esp + 0xd8]
mov eax, dword [esp + 0xd4]
push edx
push eax
push esi
call fcn.1013ca30
add esp, 0xc
test eax, eax
je 0x1010b653
mov ecx, dword [esp + 0xf4]
mov edx, dword [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ebx, ebx
push ebx
push ebx
push ecx
push edx
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 0x1010b07d
mov edi, 1
jmp 0x1010b275
mov ecx, dword [esp + 0xfc]
cmp eax, 1
mov dword [esp + 0x50], ecx
jne 0x1010b098
mov ecx, dword [esp + 0x100]
mov dword [esp + 0x50], ecx
push ecx
call fcn.1017c342
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x1010b669
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x50]
push edx
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
mov dword [esp + 0x28], eax
call fcn.1017c342
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1010b67f
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 0x1010b102
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 0x1010b1db
mov edx, dword [ebp]
add esi, 0xfffffffc
lea edi, [ebp + 4]
push edx
push esi
push edi
call fcn.1013bcf0
add esp, 0xc
test eax, eax
je 0x1010b1f1
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 0x1010b207
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 0x1010b21d
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jb 0x1010b233
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1010b0d8
jmp 0x1010b25a
mov dword [0x102029f8], 0xd
mov dword [0x102029fc], 0x2f9c
jmp 0x1010b247
mov dword [0x102029f8], 0x1c
mov dword [0x102029fc], 0x2fa4
jmp 0x1010b247
mov dword [0x102029f8], 0x12
mov dword [0x102029fc], 0x2fad
jmp 0x1010b247
mov dword [0x102029f8], 0xe
mov dword [0x102029fc], 0x2fb5
jmp 0x1010b247
mov dword [0x102029f8], 0xe
mov dword [0x102029fc], 0x2fbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10202a00], eax
mov dword [esp + 0x10], 1
push ebp
call fcn.1017c36b
push ebx
call fcn.1017c36b
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 0x1010b4f4
test ebx, ebx
jne 0x1010b4f4
mov al, byte [esp + 0x83c]
mov dword [esp + 0x44], 1
test al, 1
je 0x1010b4de
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 0x1010b4d8
cmp eax, 1
je 0x1010b2d7
cmp eax, 2
jne 0x1010b4f4
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.1013ca30
add esp, 0xc
test eax, eax
je 0x1010b6bf
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.1017c342
mov esi, eax
add esp, 4
test esi, esi
je 0x1010b6da
push 0x10000
call fcn.1017c342
mov ebp, eax
xor eax, eax
add esp, 4
cmp ebp, eax
je 0x1010b6a7
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 0x1010b3fb
mov eax, dword [esp + 0x24]
xor edi, edi
cmp eax, edi
je 0x1010b411
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 0x1010b41b
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 0x1010b431
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
cmp edx, eax
jb 0x1010b447
jmp 0x1010b365
mov dword [0x102029f8], 0xd
mov dword [0x102029fc], 0x3000
jmp 0x1010b45b
mov dword [esp + 0x28], 1
jmp 0x1010b46e
mov dword [0x102029f8], 0x12
mov dword [0x102029fc], 0x300f
jmp 0x1010b45b
mov dword [0x102029f8], 0xe
mov dword [0x102029fc], 0x3017
jmp 0x1010b45b
mov dword [0x102029f8], 0xe
mov dword [0x102029fc], 0x301e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10202a00], eax
mov dword [esp + 0x10], 1
push esi
call fcn.1017c36b
push ebp
call fcn.1017c36b
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 0x1010b4f4
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x1010b4f4
mov bl, byte [esp + 0x83c]
test bl, 4
je 0x1010b4bb
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x54]
lea ecx, [esp + 0x40]
push eax
push ecx
push edx
call fcn.1013c260
add esp, 0xc
test bl, 1
mov dword [esp + 0x44], 1
je 0x1010b4de
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 0x1010b4f4
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.1013bc40
xor ebx, ebx
jmp 0x1010b71d
mov dword [0x102029f8], 3
mov dword [0x102029fc], 0x2ee1
call ebp
lea ecx, [esp + 0x2c]
mov dword [0x10202a00], eax
mov dword [esp + 0x82c], edi
call fcn.1013bc40
jmp 0x1010b736
mov dword [0x102029f8], 0x22
mov dword [0x102029fc], 0x2ef8
jmp 0x1010b702
mov dword [0x102029f8], 0x14
mov dword [0x102029fc], 0x2f07
jmp 0x1010b702
mov dword [0x102029f8], 0xb
mov dword [0x102029fc], 0x2f19
jmp 0x1010b702
mov dword [0x102029f8], 0xc
mov dword [0x102029fc], 0x2f22
call ebp
lea ecx, [esp + 0x2c]
mov dword [0x10202a00], eax
mov dword [esp + 0x82c], 0xffffffff
call fcn.1013bc40
xor ebx, ebx
jmp 0x1010b71d
mov dword [0x102029f8], 0xc
mov dword [0x102029fc], 0x2f2d
call ebp
lea ecx, [esp + 0x2c]
mov dword [0x10202a00], eax
mov dword [esp + 0x82c], 0xffffffff
call fcn.1013bc40
xor ebx, ebx
jmp 0x1010b71d
mov dword [0x102029f8], 0xc
mov dword [0x102029fc], 0x2f38
call ebp
lea ecx, [esp + 0x2c]
mov dword [0x10202a00], eax
mov dword [esp + 0x82c], 0xffffffff
call fcn.1013bc40
xor ebx, ebx
jmp 0x1010b71d
mov dword [0x102029f8], 4
mov dword [0x102029fc], 0x2f51
jmp 0x1010b6d3
mov dword [0x102029f8], 0x25
mov dword [0x102029fc], 0x2f5d
jmp 0x1010b6d3
mov dword [0x102029f8], 0x21
mov dword [0x102029fc], 0x2f78
jmp 0x1010b69c
push ebp
call fcn.1017c36b
add esp, 4
mov dword [0x102029f8], 0x21
mov dword [0x102029fc], 0x2f83
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10202a00], eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x82c], 0xffffffff
call fcn.1013bc40
xor ebx, ebx
jmp 0x1010b71d
mov dword [0x102029f8], 0x25
mov dword [0x102029fc], 0x2fe2
call ebp
mov dword [0x10202a00], eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x82c], edi
call fcn.1013bc40
xor ebx, ebx
jmp 0x1010b71d
mov dword [0x102029f8], 0x22
mov dword [0x102029fc], 0x2f42
call ebp
lea ecx, [esp + 0x2c]
mov dword [0x10202a00], eax
mov dword [esp + 0x82c], 0xffffffff
call fcn.1013bc40
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 0x1010b736
push eax
call esi
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
cmp eax, ebx
je 0x1010b76d
cmp esi, ebx
je 0x1010b760
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x838]
push ecx
push eax
push edx
call fcn.1013c4e0
mov eax, dword [esp + 0x4c]
add esp, 0xc
push eax
call fcn.1017c36b
add esp, 4
mov dword [esp + 0x40], ebx
cmp esi, ebx
je 0x1010b792
test byte [esp + 0x83c], 2
je 0x1010b7af
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 0x1010b7d0
cmp dword [esp + 0x3c], ebx
je 0x1010b7af
cmp dword [esp + 0x844], ebx
jne 0x1010b7af
mov edx, dword [esp + 0x838]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, esi
jmp 0x1010b7d0
mov dword [0x102029f8], 1
mov dword [0x102029fc], 0x2eab
call ebp
mov dword [0x10202a00], 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