Function at 0x1090c770
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x109518a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ecx
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [sym.imp.Core.dll_class_FFileManager__GFileManager]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov esi, dword [ebp + 8]
push esi
mov eax, dword [edx + 0x10]
call eax
test eax, eax
jl 0x1090c7c7
test byte [ebp + 0xc], 4
je 0x1090c7c7
mov ecx, dword [sym.imp.Core.dll_int_GUnicodeOS]
cmp dword [ecx], edi
je 0x1090c817
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, dword [sym.imp.Core.dll_int___cdecl_winGetSizeANSI_unsigned_short_int_const__]
push esi
push str.L2.ini
mov edi, dword [sym.imp.Core.dll_int___cdecl_appStricmp_unsigned_short_int_const___unsigned_short_int_const__]
call edi
add esp, 8
test eax, eax
je 0x1090c921
push esi
push str.user.ini
call edi
add esp, 8
test eax, eax
je 0x1090c921
mov eax, dword [ebp + 0xc]
mov edi, eax
shr edi, 5
and edi, 1
mov ecx, eax
and ecx, 0x10
mov dword [ebp - 0x18], ecx
je 0x1090c85a
mov dword [ebp + 8], 4
jmp 0x1090c866
push esi
mov ebx, dword [sym.imp.Core.dll_int___cdecl_winGetSizeANSI_unsigned_short_int_const__]
call ebx
add esp, 4
test eax, eax
je 0x1090c83d
push esi
call ebx
add esp, 4
add eax, 7
and eax, 0xfffffff8
call fcn.10921870
mov dword [ebp - 0x10], esp
mov edi, esp
push 0
push esi
call ebx
push eax
push esi
push edi
call dword [sym.imp.Core.dll_char____cdecl_winToANSI_char___unsigned_short_int_const___int_]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x1090c7cd
and al, 2
neg al
sbb eax, eax
add eax, 2
mov dword [ebp + 8], eax
mov edx, dword [sym.imp.Core.dll_int_GUnicodeOS]
cmp dword [edx], 0
je 0x1090c88d
push 0
push 0x80
mov eax, dword [ebp + 8]
push eax
push 0
push edi
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x1090c8df
push esi
call ebx
add esp, 4
test eax, eax
jne 0x1090c89c
mov dword [ebp - 0x14], eax
jmp 0x1090c8b3
push esi
call ebx
add esp, 4
add eax, 7
and eax, 0xfffffff8
call fcn.10921870
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esp
push 0
push 0x80
mov ecx, dword [ebp + 8]
push ecx
push 0
push edi
push 0x40000000
push esi
call ebx
push eax
push esi
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.Core.dll_char____cdecl_winToANSI_char___unsigned_short_int_const___int_]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor ebx, ebx
mov dword [ebp + 8], ebx
cmp edi, 0xffffffff
jne 0x1090c939
test byte [ebp + 0xc], 1
je 0x1090c921
mov eax, dword [sym.imp.Core.dll_int_GLanguageType]
push esi
cmp dword [eax], ebx
jne 0x1090c90b
push 0x10959210
mov ecx, dword [sym.imp.Core.dll_class_FOutputDeviceError__GError]
mov edx, dword [ecx]
push edx
jmp 0x1090c918
push str.Unable_to_update__s._r_nPlease_check_and_see_if_you_do_not_have_the_permission_to_write.
mov eax, dword [sym.imp.Core.dll_class_FOutputDeviceError__GError]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.Core.dll_public:_void___cdecl_FOutputDevice::Logf_unsigned_short_int_const__]
add esp, 0xc
xor eax, eax
lea esp, [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp - 0x18], ebx
je 0x1090c94c
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp + 8], eax
push esi
push str.L2.ini
call dword [sym.imp.Core.dll_int___cdecl_appStricmp_unsigned_short_int_const___unsigned_short_int_const__]
add esp, 8
test eax, eax
je 0x1090c921
push esi
push str.User.ini
call dword [sym.imp.Core.dll_int___cdecl_appStricmp_unsigned_short_int_const___unsigned_short_int_const__]
add esp, 8
test eax, eax
je 0x1090c921
push esi
push str.option.ini
call dword [sym.imp.Core.dll_int___cdecl_appStricmp_unsigned_short_int_const___unsigned_short_int_const__]
add esp, 8
test eax, eax
jne 0x1090c98d
mov edx, dword [ebp - 0x1c]
mov ebx, dword [edx + 0xc]
jmp 0x1090c9a5
push str..l2r
push esi
call dword [sym.imp.Core.dll_unsigned_short_int____cdecl_appStristr_unsigned_short_int_const___unsigned_short_int_const__]
add esp, 8
test eax, eax
je 0x1090c9a5
mov ebx, 0x137
push str.WindowsFileWriter
push 0x450
call fcn.10901618
add esp, 8
test eax, eax
je 0x1090c921
push esi
push ebx
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push edi
mov ecx, eax
call fcn.10901528
jmp 0x1090c923