Function at 0x41e020
Capabilities:
Check if file exists
Create directory
Delete directory
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x45a712
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x4713c0]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4713c0]
xor eax, esp
push eax
lea eax, [esp + 0x48c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x49c]
xor ebp, ebp
push 0xffffffffffffffff
mov edi, 7
push ebp
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebp
mov word [esp + 0x3c], bp
call fcn.00406d10
mov dword [esp + 0x494], ebp
mov eax, dword [esp + 0x44]
cmp eax, ebp
jg 0x41e0ac
cmp dword [esp + 0x48], 8
jb 0x41e0a5
mov eax, dword [esp + 0x34]
push eax
call fcn.004415cb
add esp, 4
xor eax, eax
jmp 0x41e377
lea esi, [eax - 1]
cmp esi, eax
jbe 0x41e0b8
call fcn.00441e46
mov eax, dword [esp + 0x34]
mov ebx, 8
cmp dword [esp + 0x48], ebx
jae 0x41e0cb
lea eax, [esp + 0x34]
cmp word [eax + esi*2], 0x5c
je 0x41e0e2
push 1
push 0x4624bc
lea ecx, [esp + 0x38]
call fcn.00406eb0
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x38]
lea ecx, [esp + 0x70]
mov dword [esp + 0x88], edi
mov dword [esp + 0x84], ebp
mov word [esp + 0x74], bp
call fcn.00406d10
push ebp
lea ecx, [esp + 0x50]
mov byte [esp + 0x498], 1
xor edi, edi
call fcn.00428530
add esp, 4
push ebp
push eax
or eax, 0xffffffff
lea esi, [esp + 0x38]
mov byte [esp + 0x49c], 2
call fcn.00406df0
mov byte [esp + 0x494], 1
cmp dword [esp + 0x64], ebx
jb 0x41e14d
mov ecx, dword [esp + 0x50]
push ecx
call fcn.004415cb
add esp, 4
push 5
push str.test_
lea ecx, [esp + 0x38]
call fcn.00406eb0
lea ecx, [ecx]
mov eax, dword [esp + 0x34]
add edi, 1
cmp dword [esp + 0x48], ebx
jae 0x41e171
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41e1ec
lea ecx, [esp + 0x30]
call fcn.00420ff0
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x70]
lea ecx, [esp + 0x38]
call fcn.00406d10
push edi
lea ecx, [esp + 0x50]
call fcn.00428530
add esp, 4
push ebp
push eax
or eax, 0xffffffff
lea esi, [esp + 0x38]
mov byte [esp + 0x49c], 3
call fcn.00406df0
mov byte [esp + 0x494], 1
cmp dword [esp + 0x64], ebx
jb 0x41e1d3
mov edx, dword [esp + 0x50]
push edx
call fcn.004415cb
add esp, 4
push 5
push str.test_
lea ecx, [esp + 0x38]
call fcn.00406eb0
cmp edi, 5
jl 0x41e160
cmp dword [esp + 0x48], ebx
mov eax, dword [esp + 0x34]
jae 0x41e1fa
lea eax, [esp + 0x34]
push ebp
push eax
push ebp
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov edi, eax
neg edi
sbb edi, edi
add edi, 1
push edi
push str._setup_bHaveWrite___d__n
lea eax, [esp + 0x8c]
push 0x200
push eax
call fcn.004414db
add esp, 0x10
lea ecx, [esp + 0x4c]
mov word [esp + 0x482], bp
call fcn.0042bd40
mov byte [esp + 0x494], 4
lea eax, [esp + 0x84]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebp
mov word [esp + 0x18], bp
lea edx, [eax + 2]
jmp 0x41e260
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x41e260
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x88]
push ecx
lea esi, [esp + 0x1c]
call fcn.00406f80
mov edx, esi
push ebp
push edx
or eax, 0xffffffff
lea esi, [esp + 0x54]
mov byte [esp + 0x49c], 5
call fcn.00406df0
cmp dword [esp + 0x2c], ebx
jb 0x41e2ac
mov eax, dword [esp + 0x18]
push eax
call fcn.004415cb
add esp, 4
cmp dword [esp + 0x64], ebx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebp
mov word [esp + 0x18], bp
jae 0x41e2cb
lea edx, [esp + 0x50]
mov ebx, dword [0x474bb0]
cmp ebx, ebp
je 0x41e30b
mov eax, edx
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x41e2e0
sub eax, esi
sar eax, 1
push ebx
lea ecx, [eax + eax]
push ecx
push 1
push edx
call fcn.004422ed
mov edx, dword [0x474bb0]
push edx
call fcn.004428a9
add esp, 0x14
mov esi, 8
cmp dword [esp + 0x64], esi
jb 0x41e323
mov eax, dword [esp + 0x50]
push eax
call fcn.004415cb
add esp, 4
cmp dword [esp + 0x48], esi
mov eax, dword [esp + 0x34]
jae 0x41e331
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp dword [esp + 0x80], esi
jb 0x41e34e
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.004415cb
add esp, 4
cmp dword [esp + 0x48], esi
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], ebp
mov word [esp + 0x6c], bp
jb 0x41e375
mov edx, dword [esp + 0x34]
push edx
call fcn.004415cb
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x48c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.004414cc
add esp, 0x484
ret