Function at 0x10b07f4
Capabilities:
Check if file exists
Get file attributes
Set file attributes
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1a0
or dword [ebp - 8], 0xffffffff
push ebx
push esi
lea ecx, [ebp - 0xe8]
call fcn.0107e139
lea ecx, [ebp - 0x20]
call fcn.010424ee
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
xor ebx, ebx
push ebx
call fcn.0107f08b
mov esi, eax
cmp esi, ebx
jl 0x10b0b39
lea ecx, [ebp - 0x14]
mov byte [ebp - 1], bl
call fcn.010424ee
lea ecx, [ebp - 0x8c]
call fcn.0107e139
lea eax, [ebp - 0x8c]
push eax
push 1
push 0xd
call fcn.0107c911
mov esi, eax
cmp esi, ebx
lea ecx, [ebp - 0x8c]
jge 0x10b0875
call fcn.0104163c
lea ecx, [ebp - 0x14]
call fcn.01042e75
jmp 0x10b0b39
push edi
push 0xffffffffffffffff
mov edi, 0x1025378
push edi
call fcn.0107e578
mov esi, eax
cmp esi, ebx
lea ecx, [ebp - 0x8c]
jge 0x10b08a1
call fcn.0104163c
lea ecx, [ebp - 0x14]
call fcn.01042e75
jmp 0x10b0b38
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.0107f08b
mov esi, eax
cmp esi, ebx
jl 0x10b0916
lea ecx, [ebp - 0x144]
call fcn.0107e139
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x144]
push eax
call fcn.0107f6be
mov esi, eax
cmp esi, ebx
lea ecx, [ebp - 0x144]
jl 0x10b0911
push 0xffffffffffffffff
push edi
call fcn.0107e578
mov esi, eax
cmp esi, ebx
jl 0x10b090b
lea ecx, [ebp - 0x30]
call fcn.010424ee
lea eax, [ebp - 0x30]
push eax
push ebx
lea ecx, [ebp - 0x144]
call fcn.0107f08b
mov esi, eax
cmp esi, ebx
jge 0x10b0921
lea ecx, [ebp - 0x30]
call fcn.01042e75
lea ecx, [ebp - 0x144]
call fcn.0104163c
lea ecx, [ebp - 0x8c]
jmp 0x10b088f
push dword [ebp - 0x30]
lea ecx, [ebp - 0x14]
call fcn.010428ff
test eax, eax
jne 0x10b0934
mov byte [ebp - 1], 1
lea ecx, [ebp - 0x30]
call fcn.01042e75
lea ecx, [ebp - 0x144]
call fcn.0104163c
lea ecx, [ebp - 0x8c]
call fcn.0104163c
lea ecx, [ebp - 0x14]
call fcn.01042e75
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xe8]
push eax
call fcn.0107f6be
mov esi, eax
cmp esi, ebx
jl 0x10b0b38
push 0xffffffffffffffff
mov edi, 0x101cef0
push edi
lea ecx, [ebp - 0xe8]
call fcn.0107e578
mov esi, eax
cmp esi, ebx
jl 0x10b0b38
lea ecx, [ebp - 0x1a0]
call fcn.0107e139
lea eax, [ebp - 0x1a0]
push eax
push 1
push 1
call fcn.0107c911
test eax, eax
jl 0x10b09db
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x1a0]
call fcn.0107e578
test eax, eax
jl 0x10b09db
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0x1a0]
call fcn.0107e18c
test al, al
jne 0x10b0b2b
push 0x80
lea eax, [ebp - 0xe8]
push eax
call fcn.0107a61a
lea eax, [ebp - 8]
push eax
xor eax, eax
cmp dword [ebp + 0x10], ebx
push ebx
setne al
mov edi, 0x86
push edi
inc eax
push eax
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0xe8]
push eax
call fcn.0107a696
mov esi, eax
cmp esi, ebx
jl 0x10b0b11
mov ecx, dword [ebp + 0xc]
lea eax, [ebp + 8]
push eax
push ebx
mov dword [ebp + 0x10], ebx
mov dword [ebp + 8], ebx
call fcn.010429ee
mov esi, eax
cmp esi, ebx
jl 0x10b0b2d
push dword [ebp + 8]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
mov dword [ebp - 0x24], eax
jne 0x10b0a55
mov esi, 0x8007000e
jmp 0x10b0b2d
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [ebp + 0xc]
push eax
call fcn.010429ee
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
cmp esi, ebx
jl 0x10b0a7e
push ebx
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 8]
push dword [ebp - 0x24]
push dword [ebp - 8]
call edi
cmp byte [ebp - 1], bl
je 0x10b0a97
push ebx
lea eax, [ebp + 0x10]
push eax
push 0x85
push 0x10252f0
push dword [ebp - 8]
call edi
cmp dword [ebp - 8], 0xffffffff
je 0x10b0aaa
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 8], 0xffffffff
push dword [ebp - 0x24]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop ecx
push dword [ebp - 0x20]
call edi
push dword [ebp - 0x20]
mov dword [ebp + 0xc], eax
call dword [sym.imp.SHLWAPI.dll_PathMakeSystemFolderW]
push dword [ebp - 0x20]
call edi
cmp eax, 0xffffffff
je 0x10b0aed
cmp dword [ebp + 0xc], 0xffffffff
je 0x10b0aed
test byte [ebp + 0xc], 1
jne 0x10b0aed
and eax, 0xfffffffe
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20]
push eax
push ebx
lea ecx, [ebp - 0xe8]
call fcn.0107f08b
test eax, eax
jl 0x10b0b2d
push ebx
push dword [ebp - 0x20]
push 5
push 2
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
jmp 0x10b0b2d
push edi
lea eax, [ebp - 0xe8]
push eax
call fcn.0107a61a
cmp dword [ebp + 0x10], ebx
jne 0x10b0b2d
cmp esi, 0x800700b7
jne 0x10b0b2d
xor esi, esi
lea ecx, [ebp - 0x1a0]
call fcn.0104163c
pop edi
cmp dword [ebp - 8], 0xffffffff
je 0x10b0b4c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 8], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.01042e75
lea ecx, [ebp - 0xe8]
call fcn.0104163c
mov eax, esi
pop esi
pop ebx
leave
ret 0xc