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

Disassembly:
push 0xffffffffffffffff
push 0x4e8ea1
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x52d4d0]
xor eax, esp
mov dword [esp + 0x58], eax
push ebp
push esi
push edi
mov eax, dword [0x52d4d0]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov ecx, ebx
mov dword [esp + 0x2c], ebx
call fcn.00422720
lea ebp, [ebx + 0x78]
mov ecx, ebp
mov dword [esp + 0x74], 0
call fcn.00403280
lea edi, [ebx + 0x94]
mov ecx, edi
call fcn.00403280
push 0x23
lea esi, [esp + 0x50]
mov byte [esp + 0x78], 2
call fcn.004195f0
add esp, 4
push eax
mov ecx, edi
mov byte [esp + 0x78], 3
call fcn.00404ec0
mov ecx, esi
mov byte [esp + 0x74], 2
call fcn.004012f0
push 0x511cfc
lea eax, [esp + 0x14]
push edi
push eax
call fcn.00410310
push 0x512604
push eax
lea ecx, [esp + 0x60]
push ecx
mov byte [esp + 0x8c], 4
call fcn.00410310
add esp, 0x18
push eax
mov ecx, edi
mov byte [esp + 0x78], 5
call fcn.00404ec0
lea ecx, [esp + 0x4c]
call fcn.004012f0
lea ecx, [esp + 0x10]
mov byte [esp + 0x74], 2
call fcn.004012f0
push 0x511cfc
lea edx, [esp + 0x50]
push edi
push edx
call fcn.00410310
push str.Shared_Settings.xml
push eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x8c], 6
call fcn.00410310
add esp, 0x18
push eax
mov ecx, ebp
mov byte [esp + 0x78], 7
call fcn.00404ec0
lea ecx, [esp + 0x10]
call fcn.004012f0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x74], 2
call fcn.004012f0
mov ecx, edi
call fcn.004032f0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41f21d
push eax
mov ecx, edi
call fcn.004032f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41f35b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x41f35b
push 0x1c
lea esi, [esp + 0x14]
call fcn.004195f0
add esp, 4
push eax
mov ecx, edi
mov byte [esp + 0x78], 8
call fcn.00404ec0
mov ecx, esi
mov byte [esp + 0x74], 2
call fcn.004012f0
push 0x511cfc
lea ecx, [esp + 0x50]
push edi
push ecx
call fcn.00410310
push 0x512604
push eax
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x8c], 9
call fcn.00410310
add esp, 0x18
push eax
mov ecx, edi
mov byte [esp + 0x78], 0xa
call fcn.00404ec0
lea ecx, [esp + 0x10]
call fcn.004012f0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x74], 2
call fcn.004012f0
push 0x511cfc
lea eax, [esp + 0x50]
push edi
push eax
call fcn.00410310
push str.Shared_Settings.xml
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x8c], 0xb
call fcn.00410310
add esp, 0x18
push eax
mov ecx, ebp
mov byte [esp + 0x78], 0xc
call fcn.00404ec0
lea ecx, [esp + 0x10]
call fcn.004012f0
jmp 0x41f34d
push str.protexis.tmp
lea edx, [esp + 0x50]
push edi
push edx
call fcn.00410310
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.004032f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41f336
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x41f336
push 0x1c
lea esi, [esp + 0x14]
call fcn.004195f0
add esp, 4
push eax
mov ecx, edi
mov byte [esp + 0x78], 0xe
call fcn.00404ec0
mov ecx, esi
mov byte [esp + 0x74], 0xd
call fcn.004012f0
push 0x511cfc
lea eax, [esp + 0x34]
push edi
push eax
call fcn.00410310
push 0x512604
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x8c], 0xf
call fcn.00410310
add esp, 0x18
push eax
mov ecx, edi
mov byte [esp + 0x78], 0x10
call fcn.00404ec0
lea ecx, [esp + 0x10]
call fcn.004012f0
lea ecx, [esp + 0x30]
mov byte [esp + 0x74], 0xd
call fcn.004012f0
push 0x511cfc
lea edx, [esp + 0x14]
push edi
push edx
call fcn.00410310
push str.Shared_Settings.xml
push eax
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x8c], 0x11
call fcn.00410310
add esp, 0x18
push eax
mov ecx, ebp
mov byte [esp + 0x78], 0x12
call fcn.00404ec0
lea ecx, [esp + 0x30]
call fcn.004012f0
lea ecx, [esp + 0x10]
call fcn.004012f0
jmp 0x41f34d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x4c]
call fcn.004032f0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x74], 2
call fcn.004012f0
mov ecx, ebp
call fcn.004032f0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x41f381
push 0x80
mov ecx, ebp
call fcn.004032f0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x40
push 0x512618
mov ecx, ebp
call fcn.004032f0
push eax
call fcn.004a86ec
add esp, 0xc
mov dword [ebx + 0xb4], eax
push 0
test eax, eax
je 0x41f3b4
push eax
mov ecx, ebx
call fcn.00421c60
mov byte [ebx + 0xb0], al
jmp 0x41f3df
mov ecx, edi
call fcn.004032f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x40
push 0x512634
mov ecx, ebp
call fcn.004032f0
push eax
call fcn.004a86ec
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.004a58c9
add esp, 0x68
ret