Function at 0x41fce8
Capabilities:
Check if file exists
Copy file
Create directory
Delete file
Get file attributes
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x2d
push 0
push 0
dec ecx
jne 0x41fcf1
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a10
mov eax, dword [ebp - 8]
call fcn.00404a10
xor eax, eax
push ebp
push 0x4202f7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
mov edx, 0x486264
call fcn.004047c4
push 0
lea edx, [ebp - 0x138]
mov eax, dword [0x489664]
call fcn.0041d7f0
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.0041d890
mov ecx, dword [ebp - 0x134]
lea eax, [ebp - 0x28]
mov edx, 0x420314
call fcn.00407be8
lea eax, [ebp - 0xc]
mov edx, 0x420328
call fcn.004045f8
push 0x7fffffff
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x420338
call fcn.00407e24
mov ebx, eax
test ebx, ebx
jle 0x41fdef
push 0x7fffffff
lea ecx, [ebx + 0xa]
mov edx, dword [ebp - 4]
mov eax, 0x420358
call fcn.00407e24
mov esi, eax
test esi, esi
jle 0x41fdef
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
sub ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00404a80
push 0x7fffffff
mov ecx, 1
mov edx, dword [ebp - 0xc]
mov eax, 0x420364
call fcn.00407e24
mov ebx, eax
lea eax, [ebp - 0xc]
mov ecx, ebx
mov edx, 1
call fcn.00404ac0
lea eax, [ebp - 0xc]
call fcn.00407744
push 0
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov edx, 0x420370
call fcn.00407be8
cmp dword [0x486214], 0
jne 0x41fe74
cmp byte [0x486218], 0
je 0x41fe74
lea eax, [ebp - 0xc]
mov edx, 0x486218
call fcn.004047c4
lea eax, [ebp - 0xc]
call fcn.0041fabc
dec eax
jle 0x41fe4f
lea eax, [ebp - 0x13c]
push eax
mov cl, 0x2c
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.00408be0
mov edx, dword [ebp - 0x13c]
lea eax, [ebp - 0xc]
call fcn.004045f8
lea ecx, [ebp - 0x140]
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.0041fb00
mov ecx, dword [ebp - 0x140]
lea eax, [ebp - 0xc]
mov edx, 0x420384
call fcn.0040486c
jmp 0x41fe82
lea eax, [ebp - 0xc]
mov edx, dword [0x486214]
call fcn.004045f8
mov byte [ebp - 0x1d], 0
cmp byte [0x486298], 0
je 0x41ff78
lea eax, [ebp - 0x10]
call fcn.0041fc2c
mov eax, dword [ebp - 0x10]
call fcn.00404820
cmp eax, 2
jle 0x41feb9
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0x5c
je 0x41feeb
mov eax, dword [ebp - 0x10]
cmp byte [eax + 1], 0x3a
je 0x41feeb
lea edx, [ebp - 0x148]
mov eax, dword [0x489664]
call fcn.0041d7f0
mov eax, dword [ebp - 0x148]
lea edx, [ebp - 0x144]
call fcn.0041d90c
mov edx, dword [ebp - 0x144]
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
call fcn.0040486c
mov eax, dword [ebp - 0x10]
call fcn.00404a20
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x41ff06
lea eax, [ebp - 0x10]
call fcn.00404560
cmp dword [ebp - 0x10], 0
je 0x41ff80
cmp byte [0x48629c], 0
je 0x41ff80
lea eax, [ebp - 0x14]
call fcn.0041d820
cmp dword [ebp - 0x14], 0
je 0x41ff80
lea edx, [ebp - 0x14c]
mov eax, dword [ebp - 0x10]
call fcn.0041d890
mov edx, dword [ebp - 0x14c]
lea eax, [ebp - 0x14]
call fcn.00404828
push 0
mov eax, dword [ebp - 0x14]
call fcn.00404a20
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404a20
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x41ff80
mov byte [ebp - 0x1d], 1
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
call fcn.004045f8
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x14]
call fcn.004045f8
jmp 0x41ff80
lea eax, [ebp - 0x10]
call fcn.00404560
cmp dword [ebp - 8], 0
je 0x420021
lea eax, [ebp - 0x18]
call fcn.0041d820
cmp dword [ebp - 0x18], 0
je 0x420021
lea eax, [ebp - 0x18]
mov edx, 0x420398
call fcn.00404828
push 0
lea eax, [ebp - 0x12d]
push eax
call sub.kernel32.dll_CreateDirectoryA
push 0
push 0
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 0x18]
call fcn.00404a20
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x420021
push 0
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 8]
call fcn.00404820
push eax
lea eax, [ebp - 8]
call fcn.00404a78
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x42001b
cmp dword [ebp - 0x10], 0
je 0x420010
lea eax, [ebp - 0x10]
mov edx, 0x4203b0
call fcn.00404828
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x18]
call fcn.00404828
push ebx
call sub.kernel32.dll_CloseHandle_1
cmp dword [0x48636c], 0
je 0x42004b
cmp dword [ebp - 0x10], 0
je 0x42003d
lea eax, [ebp - 0x10]
mov edx, 0x4203b0
call fcn.00404828
lea eax, [ebp - 0x10]
mov edx, dword [0x48636c]
call fcn.00404828
cmp byte [0x486218], 0
je 0x42009f
call fcn.00420dd8
test al, al
je 0x42009f
cmp byte [0x4862a4], 0
je 0x42009f
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x19
lea eax, [ebp - 0x150]
mov edx, 0x486218
call fcn.004047c4
mov edx, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.00423578
test al, al
jne 0x42014b
cmp byte [0x486218], 0
je 0x420147
call fcn.00420dd8
test al, al
je 0x420147
cmp byte [0x4862a8], 0
je 0x420147
cmp byte [0x4862b4], 0
je 0x420147
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x154]
mov edx, 0x4862b4
call fcn.004047c4
mov eax, dword [ebp - 0x154]
push eax
lea eax, [ebp - 0x158]
mov edx, 0x4862ec
call fcn.004047c4
mov eax, dword [ebp - 0x158]
push eax
lea eax, [ebp - 0x15c]
mov edx, 0x486320
call fcn.004047c4
mov eax, dword [ebp - 0x15c]
push eax
mov eax, dword [0x4862e8]
push eax
lea eax, [ebp - 0x160]
mov edx, 0x486218
call fcn.004047c4
mov edx, dword [ebp - 0x160]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.00423578
test al, al
jne 0x42014b
xor eax, eax
jmp 0x42014d
mov al, 1
mov bl, al
test bl, bl
jne 0x42023e
cmp byte [0x4862ac], 0
je 0x42018c
mov eax, dword [ebp - 0x10]
push eax
push edi
mov al, byte [ebp + 8]
push eax
lea eax, [ebp - 0x164]
mov edx, 0x486218
call fcn.004047c4
mov eax, dword [ebp - 0x164]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x28]
call fcn.00420fe8
mov ebx, eax
test bl, bl
jne 0x4201dc
cmp byte [0x4862b0], 0
je 0x4201dc
cmp byte [ebp + 8], 0
jne 0x4201dc
mov byte [ebp - 0x1d], 0
test edi, edi
je 0x4201b9
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push edi
call sub.user32.dll_SetWindowPos
lea eax, [ebp - 0x168]
mov edx, 0x486218
call fcn.004047c4
mov eax, dword [ebp - 0x168]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x28]
call fcn.0042149c
mov bl, al
test bl, bl
jne 0x420292
cmp byte [ebp + 8], 0
jne 0x420292
lea eax, [ebp - 0xc]
mov edx, 0x48643c
call fcn.004047c4
push 0
lea eax, [ebp - 0xc]
mov ecx, 0x420358
mov edx, 0x4203bc
call fcn.00407be8
push 0x10
lea eax, [ebp - 0x16c]
mov edx, 0x486874
call fcn.004047c4
mov eax, dword [ebp - 0x16c]
call fcn.00404a20
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404a20
push eax
push edi
call sub.user32.dll_MessageBoxA_1
jmp 0x420292
cmp byte [ebp + 8], 0
jne 0x420292
lea eax, [ebp - 0xc]
mov edx, 0x486370
call fcn.004047c4
push 0
lea eax, [ebp - 0xc]
mov ecx, 0x420358
mov edx, 0x4203bc
call fcn.00407be8
push 0x40
lea eax, [ebp - 0x170]
mov edx, 0x486874
call fcn.004047c4
mov eax, dword [ebp - 0x170]
call fcn.00404a20
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404a20
push eax
push edi
call sub.user32.dll_MessageBoxA_1
cmp bl, 1
jne 0x4202c4
cmp dword [ebp - 0x1c], 0
je 0x4202c4
cmp byte [0x48629c], 0
je 0x4202c4
cmp byte [ebp - 0x1d], 0
je 0x4202c4
push 0
mov eax, dword [ebp - 0x1c]
call fcn.00404a20
mov esi, eax
push esi
call sub.kernel32.dll_SetFileAttributesA
push esi
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4202fe
lea eax, [ebp - 0x170]
mov edx, 0x10
call fcn.00404584
lea eax, [ebp - 0x28]
call fcn.00404560
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.00404584
ret