Function at 0x404a20
Capabilities:
Check mutex on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55dff3
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
push ebx
push esi
push edi
mov eax, dword [0x5d1858]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0xbc]
call fcn.00406970
mov ecx, esi
call fcn.004069e0
cmp dword [esi + 0xa4], 0
je 0x404b52
push 0
push esi
lea ecx, [ebp - 0x24]
call fcn.00414eb0
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.004150f0
cmp eax, 1
jne 0x404c91
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x24]
call fcn.004149b0
lea edi, [esi + 0xb8]
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00401fa0
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404ace
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x404af0
push 0x104
mov ecx, edi
call fcn.00403570
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov eax, dword [edi]
test eax, eax
jne 0x404b02
xor ecx, ecx
jmp 0x404b18
push dword [eax - 8]
push eax
call fcn.00544029
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x404c87
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x404c87
mov dword [eax - 0xc], ecx
mov eax, dword [edi]
xor edx, edx
mov word [eax + ecx*2], dx
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404b52
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, esi
call fcn.00404cd0
mov ebx, eax
mov dword [ebp - 0x28], ebx
test ebx, ebx
je 0x404c21
push esi
lea ecx, [ebp - 0x138]
call fcn.00403b60
lea eax, [ebp - 0x138]
mov dword [esi + 0xac], eax
push dword [0x5d2dc8]
mov dword [ebp - 0x1c], esi
push 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 1
push 0
mov dword [ebp - 4], 2
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 3
mov dword [esi + 0xa8], eax
call fcn.0042c7a1
mov eax, dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xa8], 0
mov dword [ebp - 0x14], 0
test eax, eax
je 0x404bfb
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x18]
call edi
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x404c05
push eax
call edi
lea ecx, [ebp - 0x138]
mov dword [esi + 0xac], 0
mov dword [ebp - 4], 0xffffffff
call fcn.00403fb0
cmp dword [esi + 0xc8], 0
je 0x404c6c
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x30]
push eax
lea ecx, [esi + 0xbc]
call fcn.00406b40
push dword [eax]
call edi
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404c60
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi + 0xc8], 0
jne 0x404c30
mov ebx, dword [ebp - 0x28]
mov ecx, esi
call fcn.004069e0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004021e0
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404cb5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret