Function at 0x41fea0
Capabilities:
Delete file

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 1
mov dword [esp + 0x14], esi
call fcn.0041f220
mov ebx, eax
xor ebp, ebp
test ebx, ebx
mov dword [esp + 0x14], ebx
jle 0x41ff8a
push ebp
push 1
mov ecx, esi
call fcn.0041f2d0
lea esi, [eax + 0x4c]
mov eax, dword [eax + 0x4c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x41ff7d
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x41ff7d
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
test edx, edx
jl 0x41ff2d
mov edx, dword [0x4881a4]
add eax, 0xfffffff4
cmp eax, edx
je 0x41ff7d
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41ff23
mov eax, dword [esi]
sub eax, 0xc
push eax
call fcn.004472d3
add esp, 4
mov ecx, dword [0x4881a0]
mov dword [esi], ecx
jmp 0x41ff7d
mov edx, 0x491808
test edx, edx
jne 0x41ff3a
xor edi, edi
jmp 0x41ff47
push 0x491808
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
push edi
mov ecx, esi
call fcn.00403900
test eax, eax
je 0x41ff7d
mov ecx, dword [esi]
lea ebx, [edi + edi]
push ebx
lea eax, [edi + edi + 2]
push 0x491808
push eax
push ecx
call fcn.004029e0
mov edx, dword [esi]
add esp, 0x10
mov dword [edx - 8], edi
mov eax, dword [esi]
mov word [eax + ebx], 0
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
inc ebp
cmp ebp, ebx
jl 0x41fec4
push 0
mov ecx, esi
call fcn.0041f220
mov edi, eax
xor esi, esi
test edi, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], esi
jle 0x4200c4
mov ecx, dword [esp + 0x10]
push esi
push 0
call fcn.0041f2d0
lea ebx, [eax + 0x4c]
mov eax, dword [eax + 0x4c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4200b7
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4200b7
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
test edx, edx
jl 0x420019
mov edx, dword [0x4881a4]
add eax, 0xfffffff4
cmp eax, edx
je 0x4200b7
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42000c
mov ecx, dword [ebx]
sub ecx, 0xc
push ecx
call fcn.004472d3
add esp, 4
mov edx, dword [0x4881a0]
mov dword [ebx], edx
jmp 0x4200b7
mov eax, 0x491808
test eax, eax
jne 0x420026
xor ebp, ebp
jmp 0x420033
push 0x491808
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
mov eax, dword [ebx]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
cmp edx, 1
jg 0x420045
cmp ebp, dword [eax - 4]
jle 0x42007f
mov edx, dword [0x4881a4]
add eax, 0xfffffff4
cmp eax, edx
je 0x420073
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42006b
mov ecx, dword [ebx]
sub ecx, 0xc
push ecx
call fcn.004472d3
add esp, 4
mov edx, dword [0x4881a0]
mov dword [ebx], edx
push ebp
mov ecx, ebx
call fcn.004036b0
test eax, eax
je 0x4200b7
lea eax, [ebp + ebp]
lea ecx, [ebp + ebp + 2]
cmp ecx, eax
jb 0x4200aa
mov edi, dword [ebx]
mov ecx, eax
mov edx, ecx
mov esi, 0x491808
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov ecx, dword [ebx]
mov dword [ecx - 8], ebp
mov edx, dword [ebx]
mov word [eax + edx], 0
inc esi
cmp esi, edi
mov dword [esp + 0x18], esi
jl 0x41ffa7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret