Function at 0x4a55d0
Capabilities:
Set file attributes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6e99f2
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x7e0
mov eax, dword [0x7ce4e4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebx + 0xc]
mov edi, dword [ebx + 8]
push 0x10000
mov dword [ebp - 0x7d8], edi
mov dword [ebp - 0x7e4], eax
mov dword [ebp - method.t_fileTextWrite.virtual_0], vtable.t_fileTextWrite.0
mov dword [ebp - 0x7cc], 0x10000
mov dword [ebp - 0x7c8], 0
call fcn.005cff37
add esp, 4
mov dword [ebp - 0x7d0], eax
lea eax, [ebp - 0x7d4]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.004a5e10
mov ecx, eax
call fcn.004a49b0
cmp byte [esi + 0x1c], 0
jne 0x4a5727
push str.WriteConfig
call fcn.004b01d0
add esp, 4
lea ecx, [ebp - 0x268]
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x7e4]
call fcn.0049a8e0
push ecx
lea eax, [ebp - 0x268]
mov byte [ebp - 4], 1
push eax
push edi
lea ecx, [ebp - 0x7d4]
call fcn.004b2550
mov byte [ebp - 4], 0
cmp byte [ebp - 0x14c], 0
mov byte [ebp - 0x7c1], al
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x4a56f2
mov ecx, dword [ebp - 0x260]
lea eax, [ebp - 0x25c]
cmp ecx, eax
je 0x4a56f2
push ecx
call fcn.005cff1c
add esp, 4
push str.WriteConfig
call fcn.004b0260
mov eax, dword [ebp - 0x7d0]
add esp, 4
mov dword [ebp - method.t_fileTextWrite.virtual_0], vtable.t_fileTextWrite.0
test eax, eax
je 0x4a571c
push eax
call fcn.005cff1c
add esp, 4
mov al, byte [ebp - 0x7c1]
jmp 0x4a5ae4
mov esi, dword [ebp - 0x7c8]
add esi, 4
push esi
call fcn.005cff37
mov edi, eax
add esp, 4
mov dword [ebp - 0x7e8], edi
mov byte [ebp - 4], 2
test edi, edi
jne 0x4a575e
mov ecx, dword [ebp - 0x7d8]
call fcn.0049c7f0
push 0x792c34
jmp 0x4a5aae
mov eax, dword [ebp - 0x7c8]
add eax, 2
mov dword [ebp - 0x7e0], eax
cmp esi, eax
jb 0x4a5a9e
mov word [edi], 0xfeff
lea esi, [edi + 2]
push dword [ebp - 0x7c8]
push dword [ebp - 0x7d0]
push esi
call fcn.005c0660
add esp, 0xc
push dword [ebp - 0x7d0]
call fcn.005cff1c
mov eax, dword [ebp - 0x7e0]
lea ecx, [esi + 2]
mov dword [ebp - 0x7d0], 0
add esp, 4
mov dword [ebp - 0x7cc], 0
mov dword [ebp - 0x7c8], 0
mov word [eax + edi - 2], 0
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4a57d0
sub esi, ecx
sar esi, 1
lea esi, [esi*2 + 1]
push esi
call fcn.005cff37
add esp, 4
mov dword [ebp - 0x7dc], eax
push 0
push 0
push esi
mov esi, eax
mov byte [ebp - 4], 3
push esi
push 0xffffffffffffffff
lea eax, [edi + 2]
push eax
push 0
push 0x3a8
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jns 0x4a5844
mov ecx, dword [ebp - 0x7d8]
call fcn.0049c7f0
push 0x792c7c
push 0x791e68
push eax
call fcn.0049a160
add esp, 0xc
push esi
call fcn.005cff1c
add esp, 4
jmp 0x4a5abc
mov byte [eax + esi], 0
lea eax, [ebp - 0x7c0]
push eax
push 0x100
push 0x77da00
call fcn.005f1990
add esp, 0xc
lea eax, [ebp - 0x6cc]
push eax
push 0x100
push 0x77da00
call fcn.005f1780
movups xmm0, xmmword [0x77d9f0]
mov ecx, esi
mov byte [ebp - 0x5c8], 1
add esp, 0xc
movups xmmword [ebp - 0x5d8], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a5894
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x7c0]
call fcn.004a2050
mov dword [ebp - 0x7e0], eax
test eax, eax
jne 0x4a58e0
mov ecx, dword [ebp - 0x7d8]
call fcn.0049c7f0
push 0x792c9c
push 0x791e68
push eax
call fcn.0049a160
add esp, 0xc
push esi
call fcn.005cff1c
add esp, 4
jmp 0x4a5abc
mov dword [ebp - 0x7ec], eax
mov esi, eax
lea ecx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4a58f0
sub esi, ecx
push ecx
lea ecx, [ebp - 0x5c0]
call fcn.004a91b0
mov dword [ebp - method.t_fileWrite.virtual_0], vtable.t_fileWrite.0
mov dword [ebp - 0x26c], 0x794d44
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x7e4]
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 5
call fcn.0049a8e0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x134]
cmp byte [ebp - 0x24], 0
push 0x80
cmove eax, dword [ebp - 0x138]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 1
lea eax, [ebp - 0x140]
push eax
push dword [ebp - 0x7d8]
lea ecx, [ebp - 0x5c0]
call fcn.004a9310
test al, al
mov byte [ebp - 4], 5
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
sete cl
cmp byte [ebp - 0x24], 0
mov byte [ebp - 0x7c1], cl
jne 0x4a59b4
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
cmp eax, edx
je 0x4a59b4
push eax
call fcn.005cff1c
mov cl, byte [ebp - 0x7c1]
add esp, 4
test cl, cl
je 0x4a59fa
lea ecx, [ebp - 0x5c0]
mov dword [ebp - method.t_fileWrite.virtual_0], vtable.t_fileWrite.0
mov dword [ebp - method.t_byteStreamWrite.virtual_0], vtable.t_byteStreamWrite.0
call fcn.004a9250
mov esi, dword [ebp - 0x7e0]
push esi
call fcn.005cff1c
mov eax, dword [ebp - 0x7dc]
add esp, 4
push eax
call fcn.005cff1c
add esp, 4
jmp 0x4a5abc
push esi
mov esi, dword [ebp - 0x7e0]
lea ecx, [ebp - 0x26c]
push esi
push dword [ebp - 0x7d8]
call fcn.004b2e70
lea ecx, [ebp - 0x5c0]
test al, al
jne 0x4a5a38
mov dword [ebp - method.t_fileWrite.virtual_0], vtable.t_fileWrite.0
mov dword [ebp - method.t_byteStreamWrite.virtual_0], vtable.t_byteStreamWrite.0
call fcn.004a9250
jmp 0x4a59dd
call fcn.004a9530
lea ecx, [ebp - 0x5c0]
mov dword [ebp - method.t_fileWrite.virtual_0], vtable.t_fileWrite.0
mov dword [ebp - method.t_byteStreamWrite.virtual_0], vtable.t_byteStreamWrite.0
call fcn.004a9250
push esi
call fcn.005cff1c
mov eax, dword [ebp - 0x7dc]
add esp, 4
push eax
call fcn.005cff1c
add esp, 4
push edi
call fcn.005cff1c
mov eax, dword [ebp - 0x7d0]
add esp, 4
mov dword [ebp - method.t_fileTextWrite.virtual_0], vtable.t_fileTextWrite.0
test eax, eax
je 0x4a5a9a
push eax
call fcn.005cff1c
add esp, 4
mov al, 1
jmp 0x4a5ae4
mov ecx, dword [ebp - 0x7d8]
call fcn.0049c7f0
push 0x792c58
push 0x791e68
push eax
call fcn.0049a160
add esp, 0xc
push edi
call fcn.005cff1c
mov eax, dword [ebp - 0x7d0]
add esp, 4
mov dword [ebp - method.t_fileTextWrite.virtual_0], vtable.t_fileTextWrite.0
test eax, eax
je 0x4a5ae2
push eax
call fcn.005cff1c
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005be209
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc