Function at 0x4cf8a0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40
mov eax, dword [0x57b070]
xor eax, esp
mov dword [esp + 0x3c], eax
mov edx, dword [ebp + 8]
mov dword [esp + 4], ecx
mov dword [esp], edx
push esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x18], esi
push edi
test edx, edx
jne 0x4cf964
lea eax, [esp + 0x10]
mov dword [ecx], 0x556a20
push eax
call fcn.004b35c1
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004b4336
push dword [esp + 0x2c]
cmp dword [0x57e638], 8
mov ecx, 0x57e624
push dword [esp + 0x34]
cmovae ecx, dword [0x57e624]
push dword [esp + 0x3c]
mov eax, dword [esp + 0x48]
push dword [esp + 0x44]
inc eax
push eax
mov eax, dword [esp + 0x54]
add eax, 0x76c
push eax
push ecx
push 0x5835b8
push str.__s___s___04d__02d__02d__02d:_02d:_02d_
call fcn.004df180
push 0x30
push str.t_saFile::Open
push str.__S_L:_d__
call fcn.004df180
push str.filename_is_null_r_n
call fcn.004df180
add esp, 0x40
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.004a35cb
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x57ba30]
mov edi, 0x57ba30
test eax, eax
je 0x4cf984
cmp eax, esi
je 0x4cfa1e
mov eax, dword [edi + 0x10]
add edi, 0x10
test eax, eax
jne 0x4cf972
lea eax, [esp + 0x10]
mov dword [ecx], 0x556a64
push eax
call fcn.004b35c1
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004b4336
push dword [esp + 0x2c]
cmp dword [0x57e638], 8
mov ecx, 0x57e624
push dword [esp + 0x34]
cmovae ecx, dword [0x57e624]
push dword [esp + 0x3c]
mov eax, dword [esp + 0x48]
push dword [esp + 0x44]
inc eax
push eax
mov eax, dword [esp + 0x54]
add eax, 0x76c
push eax
push ecx
push 0x5835b8
push str.__s___s___04d__02d__02d__02d:_02d:_02d_
call fcn.004df180
push 0x38
push str.t_saFile::Open
push str.__S_L:_d__
call fcn.004df180
push dword [esp + 0x44]
push esi
push str.file_mode_false__mode:_d__filename:_s_r_n
call fcn.004df180
add esp, 0x48
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.004a35cb
mov esp, ebp
pop ebp
ret 8
xor esi, esi
jmp 0x4cfa26
mov edx, dword [esp + 8]
push 0
push 0x80
push dword [edi + 4]
push 0
push dword [edi + 8]
push dword [edi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x1c], eax
cmp eax, 0xffffffff
jne 0x4cfa76
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp eax, 0x20
jne 0x4cfae5
mov eax, dword [esp + 0xc]
push 0x64
mov dword [eax], 0x556ac8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 3
jl 0x4cfa22
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0x1c]
cmp eax, 0xffffffff
je 0x4cfb9e
test eax, eax
je 0x4cfb9e
mov ecx, dword [esp + 8]
mov edx, ecx
lea eax, [edx + 2]
mov dword [esp + 0x10], eax
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4cfaa0
sub edx, dword [esp + 0x10]
sar edx, 1
push edx
push ecx
lea ecx, [esi + 4]
call fcn.00418a60
lea ecx, [esi + 4]
call fcn.004d4830
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x20], eax
mov al, 1
mov dword [esi], 0
pop edi
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.004a35cb
mov esp, ebp
pop ebp
ret 8
cmp eax, 5
jne 0x4cfb27
mov eax, dword [esp + 0xc]
push 0x80
push dword [esp + 0xc]
mov dword [eax], 0x556ad4
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
inc esi
cmp esi, 3
jne 0x4cfa74
cmp dword [esp + 0x1c], 2
jne 0x4cfa76
xor esi, esi
mov dword [esp + 0x1c], 8
jmp 0x4cfa22
cmp eax, 2
je 0x4cfb60
cmp eax, 3
je 0x4cfb60
call fcn.004df100
push 0x59
push str.t_saFile::Open
push str.__S_L:_d__
call fcn.004df180
push dword [esp + 0x1c]
push dword [esp + 0x18]
push str.Create_file_false__Path:_s__err:_d_r_n
call fcn.004df180
mov eax, dword [esp + 0x28]
add esp, 0x18
test eax, eax
mov eax, dword [esp + 0xc]
jne 0x4cfb83
mov dword [eax], 0x556b2c
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.004a35cb
mov esp, ebp
pop ebp
ret 8
mov dword [eax], 0x556b38
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.004a35cb
mov esp, ebp
pop ebp
ret 8
mov dword [esi + 0x1c], 0xffffffff
call fcn.004df100
push 0x6b
push str.t_saFile::Open
push str.__S_L:_d__
call fcn.004df180
push dword [esp + 0x14]
push str.hFile_is_invalid__filename:_s_r_n
call fcn.004df180
mov ecx, dword [esp + 0x58]
add esp, 0x14
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.004a35cb
mov esp, ebp
pop ebp
ret 8