Function at 0x4c5c90
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51001b
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x551644]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [eax], 0xffffffff
cmp dword [esi + 8], ebx
jle 0x4c5fcd
mov eax, 1
mov dword [ebp - 0x34], 0x5452ec
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], vtable.CCriticalLock.0
mov dword [ebp - 0x10], eax
jmp 0x4c5cf2
mov esi, ecx
mov edx, dword [0x5515b0]
mov eax, dword [edx + 0xc]
mov ecx, 0x5515b0
call eax
lea edi, [eax + 0x10]
mov dword [ebp + 8], edi
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 0x20]
push edx
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.0046fdf0
mov esi, dword [eax]
mov ecx, 0x553818
mov byte [ebp - 4], 1
call fcn.004175a0
mov ecx, dword [0x552af4]
mov eax, dword [ecx + 0x4c]
cmp eax, ebx
jne 0x4c5d3b
xor ecx, ecx
jmp 0x4c5d51
mov edx, dword [ecx + 0x54]
cmp edx, ebx
je 0x4c5d47
mov edx, dword [edx + 0xc]
jmp 0x4c5d49
xor edx, edx
mov ecx, dword [ecx + 0x50]
imul ecx, edx
add ecx, eax
push esi
lea eax, [ebp - 0x1c]
push eax
call fcn.0040bbb0
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
mov byte [ebp - 4], 2
cmp eax, esi
je 0x4c5db6
cmp dword [esi + 0xc], ebx
lea edi, [esi + 0xc]
jl 0x4c5da6
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4c5da6
push eax
call fcn.004016d0
mov dword [ebp - 0x18], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4c5d9b
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov edi, dword [ebp - 0x18]
add edi, 0x10
mov dword [ebp + 8], edi
jmp 0x4c5db6
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp + 8]
call fcn.004048b0
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c5dd9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c5dfc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x28]
push edx
call fcn.0046fe80
mov eax, dword [eax]
mov edx, dword [vtable.CCriticalSection.0]
mov dword [ebp - 0x18], eax
mov eax, dword [edx]
mov ecx, 0x5452ec
mov byte [ebp - 4], 3
call eax
mov byte [ebp - 4], 4
cmp dword [0x552af4], ebx
jne 0x4c5ea8
push 0x64
call fcn.004f4b27
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 5
cmp esi, ebx
je 0x4c5ea0
mov edx, dword [0x5515b0]
mov eax, dword [edx + 0xc]
mov ecx, 0x5515b0
call eax
add eax, 0x10
mov dword [esi + 0x10], eax
mov edx, dword [0x5515b0]
mov eax, dword [edx + 0xc]
mov ecx, 0x5515b0
call eax
add eax, 0x10
mov dword [esi + 0x14], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
jmp 0x4c5ea2
xor esi, esi
mov dword [0x552af4], esi
mov edx, dword [vtable.CCriticalSection.0]
mov eax, dword [edx + 4]
mov ecx, 0x5452ec
mov byte [ebp - 4], 3
call eax
mov ecx, dword [0x552af4]
mov eax, dword [ecx + 0x4c]
cmp eax, ebx
jne 0x4c5ecd
xor ecx, ecx
jmp 0x4c5ee3
mov edx, dword [ecx + 0x54]
cmp edx, ebx
je 0x4c5ed9
mov edx, dword [edx + 0xc]
jmp 0x4c5edb
xor edx, edx
mov ecx, dword [ecx + 0x50]
imul ecx, edx
add ecx, eax
mov edx, dword [ebp - 0x18]
push edx
lea eax, [ebp - 0x24]
push eax
call fcn.0040bbb0
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
mov byte [ebp - 4], 6
cmp eax, esi
je 0x4c5f49
cmp dword [esi + 0xc], ebx
lea edi, [esi + 0xc]
jl 0x4c5f39
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4c5f39
push eax
call fcn.004016d0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4c5f2f
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea edi, [ebx + 0x10]
mov dword [ebp + 8], edi
xor ebx, ebx
jmp 0x4c5f49
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp + 8]
call fcn.004048b0
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c5f6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c5f8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c5fb9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x10], eax
dec eax
cmp eax, dword [ecx + 8]
jl 0x4c5cf0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4