Function at 0x41e9f0
Capabilities:
Check if file exists
Create directory
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4d7a51
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x516b80]
xor eax, esp
mov dword [esp + 0x58], eax
push ebp
push esi
push edi
mov eax, dword [0x516b80]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov ecx, ebx
mov dword [esp + 0x2c], ebx
call fcn.00422150
lea ebp, [ebx + 0x78]
mov ecx, ebp
mov dword [esp + 0x74], 0
call fcn.00408c50
lea edi, [ebx + 0x94]
mov ecx, edi
call fcn.00408c50
push 0x23
lea esi, [esp + 0x50]
mov byte [esp + 0x78], 2
call fcn.00419010
add esp, 4
push eax
mov ecx, edi
mov byte [esp + 0x78], 3
call fcn.00408cc0
mov ecx, esi
mov byte [esp + 0x74], 2
call fcn.00401310
push 0x4fed44
lea eax, [esp + 0x14]
push edi
push eax
call fcn.0040fee0
push 0x4ff64c
push eax
lea ecx, [esp + 0x60]
push ecx
mov byte [esp + 0x8c], 4
call fcn.0040fee0
add esp, 0x18
push eax
mov ecx, edi
mov byte [esp + 0x78], 5
call fcn.00408cc0
lea ecx, [esp + 0x4c]
call fcn.00401310
lea ecx, [esp + 0x10]
mov byte [esp + 0x74], 2
call fcn.00401310
push 0x4fed44
lea edx, [esp + 0x50]
push edi
push edx
call fcn.0040fee0
push str.Shared_Settings.xml
push eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x8c], 6
call fcn.0040fee0
add esp, 0x18
push eax
mov ecx, ebp
mov byte [esp + 0x78], 7
call fcn.00408cc0
lea ecx, [esp + 0x10]
call fcn.00401310
lea ecx, [esp + 0x4c]
mov byte [esp + 0x74], 2
call fcn.00401310
mov ecx, edi
call fcn.00408ea0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41ec0d
push eax
mov ecx, edi
call fcn.00408ea0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41ed4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x41ed4b
push 0x1c
lea esi, [esp + 0x14]
call fcn.00419010
add esp, 4
push eax
mov ecx, edi
mov byte [esp + 0x78], 8
call fcn.00408cc0
mov ecx, esi
mov byte [esp + 0x74], 2
call fcn.00401310
push 0x4fed44
lea ecx, [esp + 0x50]
push edi
push ecx
call fcn.0040fee0
push 0x4ff64c
push eax
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x8c], 9
call fcn.0040fee0
add esp, 0x18
push eax
mov ecx, edi
mov byte [esp + 0x78], 0xa
call fcn.00408cc0
lea ecx, [esp + 0x10]
call fcn.00401310
lea ecx, [esp + 0x4c]
mov byte [esp + 0x74], 2
call fcn.00401310
push 0x4fed44
lea eax, [esp + 0x50]
push edi
push eax
call fcn.0040fee0
push str.Shared_Settings.xml
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x8c], 0xb
call fcn.0040fee0
add esp, 0x18
push eax
mov ecx, ebp
mov byte [esp + 0x78], 0xc
call fcn.00408cc0
lea ecx, [esp + 0x10]
call fcn.00401310
jmp 0x41ed3d
push str.protexis.tmp
lea edx, [esp + 0x50]
push edi
push edx
call fcn.0040fee0
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea ecx, [esp + 0x64]
mov byte [esp + 0x8c], 0xd
call fcn.00408ea0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41ed26
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x41ed26
push 0x1c
lea esi, [esp + 0x14]
call fcn.00419010
add esp, 4
push eax
mov ecx, edi
mov byte [esp + 0x78], 0xe
call fcn.00408cc0
mov ecx, esi
mov byte [esp + 0x74], 0xd
call fcn.00401310
push 0x4fed44
lea eax, [esp + 0x34]
push edi
push eax
call fcn.0040fee0
push 0x4ff64c
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x8c], 0xf
call fcn.0040fee0
add esp, 0x18
push eax
mov ecx, edi
mov byte [esp + 0x78], 0x10
call fcn.00408cc0
lea ecx, [esp + 0x10]
call fcn.00401310
lea ecx, [esp + 0x30]
mov byte [esp + 0x74], 0xd
call fcn.00401310
push 0x4fed44
lea edx, [esp + 0x14]
push edi
push edx
call fcn.0040fee0
push str.Shared_Settings.xml
push eax
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x8c], 0x11
call fcn.0040fee0
add esp, 0x18
push eax
mov ecx, ebp
mov byte [esp + 0x78], 0x12
call fcn.00408cc0
lea ecx, [esp + 0x30]
call fcn.00401310
lea ecx, [esp + 0x10]
call fcn.00401310
jmp 0x41ed3d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x4c]
call fcn.00408ea0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x74], 2
call fcn.00401310
mov ecx, ebp
call fcn.00408ea0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x41ed71
push 0x80
mov ecx, ebp
call fcn.00408ea0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x40
push 0x4ff660
mov ecx, ebp
call fcn.00408ea0
push eax
call fcn.00499f8d
add esp, 0xc
mov dword [ebx + 0xb4], eax
push 0
test eax, eax
je 0x41eda4
push eax
mov ecx, ebx
call fcn.00421690
mov byte [ebx + 0xb0], al
jmp 0x41edcf
mov ecx, edi
call fcn.00408ea0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x40
push 0x4ff67c
mov ecx, ebp
call fcn.00408ea0
push eax
call fcn.00499f8d
add esp, 0xc
mov dword [ebx + 0xb4], eax
mov eax, ebx
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00497164
add esp, 0x68
ret