Function at 0x41e000
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c807
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x465944]
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 dword [ebp - 0x224], ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x228], eax
test ecx, ecx
je 0x41e366
test eax, eax
je 0x41e366
test ebx, ebx
je 0x41e366
push 0
lea eax, [ebx + 0x24]
push eax
call fcn.004198f0
mov edi, eax
test edi, edi
je 0x41e359
push 0x467024
mov ecx, edi
call fcn.00419a80
test eax, eax
je 0x41e161
lea esi, [eax + 4]
push esi
lea ecx, [ebx + 0x28]
call fcn.00406d70
mov eax, dword [esi]
cmp dword [eax - 8], 0
je 0x41e161
mov eax, dword [0x4644dc]
mov dword [ebp - 0x21c], eax
push 0x83
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 0
call fcn.004069b0
push dword [esi]
mov esi, dword [ebp - 0x220]
lea eax, [ebp - 0x21c]
push esi
push eax
mov byte [ebp - 4], 1
call fcn.0040c330
lea eax, [esi - 0xc]
mov byte [ebp - 4], 0
add esp, 0xc
cmp eax, dword [0x4644d8]
je 0x41e10f
lea eax, [esi - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push eax
mov dword [ebp - 0x220], eax
call esi
test eax, eax
jg 0x41e115
push dword [ebp - 0x220]
call fcn.00425cdd
add esp, 4
jmp 0x41e115
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ecx, dword [ebp - 0x224]
lea eax, [ebp - 0x21c]
push eax
add ecx, 0xd0
call fcn.00411880
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4644d8]
je 0x41e161
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x41e161
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff4
push eax
call fcn.00425cdd
add esp, 4
push 0x467028
mov ecx, edi
call fcn.00419a80
mov esi, eax
test esi, esi
je 0x41e2c7
mov ecx, dword [ebp - 0x228]
add ecx, 0x84
push ecx
lea ecx, [ebp - 0x21c]
call fcn.004069b0
mov eax, dword [ebp - 0x21c]
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 2
push dword [eax - 8]
call fcn.0040d240
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x21c]
call fcn.00409cf0
lea eax, [esi + 4]
push eax
push 0x44ed90
lea eax, [ebp - 0x22c]
push eax
call fcn.0041c200
mov eax, dword [eax]
mov byte [ebp - 4], 3
mov dword [ebp - 0x220], eax
mov edx, dword [eax - 8]
mov dword [ebp - 0x228], edx
test edx, edx
je 0x41e283
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 0xc], 1
lea esi, [eax - 0xc]
jg 0x41e24d
mov ecx, dword [eax - 8]
add ecx, edx
cmp ecx, dword [eax - 4]
jg 0x41e24d
lea ecx, [edx + edx]
push ecx
mov ecx, dword [eax - 4]
push dword [ebp - 0x220]
lea ecx, [ecx*2 + 2]
push ecx
mov ecx, dword [eax - 8]
lea eax, [eax + ecx*2]
push eax
call fcn.0040fcc0
mov eax, dword [ebp - 0x21c]
add esp, 0x10
mov ecx, dword [ebp - 0x228]
add dword [eax - 8], ecx
xor edx, edx
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax - 8]
mov word [eax + ecx*2], dx
jmp 0x41e283
push dword [ebp - 0x220]
lea ecx, [ebp - 0x21c]
push edx
push eax
push dword [esi + 4]
call fcn.00407a30
test eax, eax
je 0x41e283
cmp esi, dword [0x4644d8]
je 0x41e283
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41e283
push esi
call fcn.00425cdd
add esp, 4
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 2
call fcn.00406d40
mov ecx, dword [ebp - 0x224]
lea eax, [ebp - 0x21c]
push 1
push eax
lea ecx, [ecx + 0x7c]
call fcn.00411160
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 0xffffffff
call fcn.00406d40
push 0x46702c
mov ecx, edi
call fcn.00419a80
mov esi, eax
test esi, esi
je 0x41e366
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0042c930
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [esi + 4]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x224]
call fcn.004069b0
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 4
push eax
lea ecx, [ebx + 0x18]
call fcn.00406d70
lea ecx, [ebp - 0x224]
call fcn.00406d40
jmp 0x41e366
push 0x450174
call fcn.0041b930
add esp, 4
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.0042a853
mov esp, ebp
pop ebp
ret 0xc