Function at 0x4084f0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x438778
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44b538]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.0041564a
xor ecx, ecx
xor esi, esi
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x408535
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
cmp dword [ebx + 0x2a00], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x28], esi
jle 0x40872c
lea eax, [ebx + 0x228]
mov dword [esp + 0x1c], 0x58
mov dword [esp + 0x20], eax
jmp 0x408572
xor esi, esi
cmp dword [eax + 4], esi
je 0x408707
cmp dword [eax], esi
mov dword [esp + 0x18], esi
jle 0x408707
cmp dword [ebx + 0x2a00], 0
mov dword [esp + 0x24], 0
jle 0x40865e
lea ecx, [ebx + 0x160]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x14]
cmp dword [edx + 0xcc], 0
jne 0x40863f
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
add eax, ecx
mov esi, dword [ebx + eax*4]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
sub esi, 0x10
mov dword [esp + 0x34], esp
mov ebp, esp
call eax
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
jl 0x4085f2
cmp eax, dword [esi]
jne 0x4085f2
mov edi, esi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x408628
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x408768
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.00426a53
add esp, 0x10
mov ecx, dword [esp + 0x18]
add edi, 0x10
mov dword [ebp], edi
call fcn.00402620
test eax, eax
jne 0x4086ee
mov eax, dword [esp + 0x24]
add dword [esp + 0x14], 0xd0
add eax, 1
cmp eax, dword [ebx + 0x2a00]
mov dword [esp + 0x24], eax
jl 0x4085a6
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
add edx, eax
mov esi, dword [ebx + edx*4]
lea ebp, [ebx + edx*4]
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
sub esi, 0x10
mov dword [esp + 0x34], esp
mov dword [esp + 0x28], esp
call eax
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
jl 0x40869e
cmp eax, dword [esi]
jne 0x40869e
mov edi, esi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x4086d4
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x408768
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.00426a53
add esp, 0x10
mov edx, dword [esp + 0x28]
add edi, 0x10
mov ecx, ebx
mov dword [edx], edi
call fcn.00405820
mov ebp, dword [ebp]
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
add eax, 1
cmp eax, dword [ecx]
mov dword [esp + 0x18], eax
jl 0x408587
mov eax, ecx
mov ecx, dword [esp + 0x28]
add dword [esp + 0x1c], 0x34
add ecx, 1
add eax, 0xd0
cmp ecx, dword [ebx + 0x2a00]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], eax
jl 0x408570
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esp + 0x3c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408754
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
jmp fcn.00401ee0