Function at 0x419e80
Capabilities:
Delete directory
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51cf7e
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x562494]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x124], edi
xorps xmm0, xmm0
mov dword [ebp - 4], 0
push 0
movlpd qword [ebp - 0x120], xmm0
lea ecx, [ebp - 0x120]
push 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
call fcn.0041aaa0
mov dword [ebp - 0x120], eax
push edi
push ecx
mov byte [ebp - 4], 1
mov esi, esp
mov dword [ebp - 0x118], esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.00409170
add esp, 4
lea ecx, [ebp - 0x120]
add eax, 0x10
mov dword [esi], eax
call fcn.0041a590
test eax, eax
jne 0x419f37
mov dword [ebp - 0x128], eax
jmp 0x41a0a2
push 0x102
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004dcf80
add esp, 0xc
lea ecx, [ebp - 0x114]
call fcn.00405ef0
call fcn.00409bb0
mov ecx, eax
test ecx, ecx
je 0x41a1b2
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x41a1bc
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
add eax, 0x10
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 2
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x118]
push str._s_s.tf
push eax
call fcn.004094f0
mov esi, dword [ebp - 0x118]
add esp, 0x10
push 0
push 0x80
push 2
push 0
push 2
push 0x120116
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41a055
lea edi, [ebp - 0x114]
lea ecx, [edi + 2]
nop dword [eax]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x419fe0
push 0
sub edi, ecx
mov dword [ebp - 0x118], 0
lea eax, [ebp - 0x118]
sar edi, 1
push eax
push edi
lea eax, [ebp - 0x114]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41a037
cmp edi, dword [ebp - 0x118]
jne 0x41a045
push ebx
mov dword [ebp - 0x128], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x41a05d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x124]
mov dword [ecx], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x41a05d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov byte [ebp - 4], 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41a0a2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x41a1c3
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x41a1c3
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 0
mov edi, dword [ebp - 0x120]
mov eax, edi
cmp edi, dword [edi]
je 0x41a0c8
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea esi, [eax + 4]
mov eax, dword [esi]
push dword [eax + 8]
call ebx
mov eax, dword [esi]
cmp eax, dword [edi]
jne 0x41a0b8
mov esi, dword [edi]
mov dword [edi], edi
mov dword [edi + 4], edi
cmp esi, edi
je 0x41a142
mov ecx, dword [esi + 8]
or eax, 0xffffffff
mov ebx, dword [esi]
sub ecx, 0x10
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x41a131
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
mov dword [ebp - 0x124], edi
mov edi, dword [ebp - 0x120]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x41a1d7
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
mov dword [ebp - 0x124], edi
mov edi, dword [ebp - 0x120]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x41a1ca
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0xc
push esi
call fcn.004af923
add esp, 8
mov esi, ebx
cmp ebx, edi
jne 0x41a0d3
push 0xc
push edi
call fcn.004af923
mov dword [ebp - 4], 0xffffffff
add esp, 8
mov ecx, dword [ebp + 8]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x41a190
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x41a1e4
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x41a1e4
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x128]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004affa8
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040a130
call edx
jmp 0x419f7e
call edx
jmp 0x41a0a2
mov ecx, edx
call dword [ebp - 0x124]
jmp 0x41a131
mov ecx, edx
call dword [ebp - 0x124]
jmp 0x41a131
mov ecx, edx
call esi
jmp 0x41a190