Function at 0x51c550
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5769a5
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x5d8024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ecx + 0x10], 0
je 0x51c92c
cmp dword [ecx + 0x14], 8
jb 0x51c58a
mov ecx, dword [ecx]
push ecx
lea ecx, [ebp - 0x24]
call fcn.004152f0
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov byte [ebp - 4], 1
call fcn.004092f0
test eax, eax
je 0x51c93e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
mov eax, 0x58b700
lea ecx, [ebp - 0x14]
test eax, 0xffff0000
jne 0x51c5eb
movzx eax, ax
push eax
call fcn.00415190
jmp 0x51c5f7
push 1
push 0x58b700
call fcn.00408e70
mov byte [ebp - 4], 3
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x40]
call fcn.0051c290
add esp, 4
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x51c62e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x3c]
sub edi, 1
mov dword [ebp - 0x20], edi
js 0x51c901
nop dword [eax]
call fcn.004092f0
test eax, eax
je 0x51c93e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 6
test edi, edi
je 0x51c802
mov edx, dword [ebp - 0x3c]
cmp edi, edx
jge 0x51c952
mov esi, dword [ebp - 0x40]
mov eax, dword [esi + edi*4]
lea ecx, [esi + edi*4]
mov dword [ebp - 0x10], ecx
mov eax, dword [eax - 0xc]
test eax, eax
je 0x51c6e8
add eax, 0xffffffff
js 0x51c948
mov edx, dword [ecx]
cmp eax, dword [edx - 0xc]
mov edx, dword [ebp - 0x3c]
jg 0x51c948
mov ecx, dword [ecx]
cmp word [ecx + eax*2], 0x5c
mov ecx, dword [ebp - 0x10]
jne 0x51c6e8
mov esi, dword [ecx]
mov eax, dword [esi - 0xc]
dec eax
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0040d090
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x14]
push eax
call fcn.00478300
mov byte [ebp - 4], 6
mov eax, ebx
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x51c6e2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
dec edi
jmp 0x51c800
lea ebx, [edi - 1]
cmp edi, 1
jbe 0x51c80e
cmp ebx, edx
jge 0x51c952
mov ecx, dword [esi + ebx*4]
sub ecx, 0x10
call fcn.00408b00
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 0xa
mov edi, dword [esi - 0xc]
test edi, edi
je 0x51c7d1
lea eax, [edi - 1]
test eax, eax
js 0x51c948
cmp eax, edi
jg 0x51c948
cmp word [esi + eax*2], 0x5c
jne 0x51c7d1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
cmp edi, dword [eax - 0xc]
jg 0x51c7d1
mov ecx, dword [ebp - 0x14]
cmp edi, dword [ecx - 0xc]
jl 0x51c7d1
cmp dword [esi - 4], 1
jle 0x51c76d
push edi
lea ecx, [ebp - 0x1c]
call fcn.00408c70
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x1c]
mov eax, dword [ecx]
jmp 0x51c770
mov ecx, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x51c783
push dword [eax - 0xc]
call fcn.00408c70
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
push edi
push esi
push eax
call fcn.0052bb72
add esp, 0xc
test eax, eax
jne 0x51c7cf
mov eax, dword [esi - 0xc]
lea ecx, [ebp - 0x1c]
dec eax
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0040d090
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x14]
push eax
call fcn.00478300
mov byte [ebp - 4], 0xa
or eax, 0xffffffff
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x51c7cf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x51c7d1
mov byte [ebp - 4], 6
or eax, 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x51c7ed
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
dec ebx
test ebx, ebx
jle 0x51c7fd
mov edx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x40]
jmp 0x51c6f4
mov edi, dword [ebp - 0x20]
test edi, edi
js 0x51c952
mov edx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x40]
cmp edi, edx
jge 0x51c952
mov eax, dword [esi + edi*4]
lea ebx, [esi + edi*4]
cmp dword [eax - 0xc], 0
je 0x51c8d4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.004092f0
test eax, eax
je 0x51c93e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 0x10
push 0x5c
push dword [ebx]
call fcn.0052387a
add esp, 8
test eax, eax
je 0x51c8a3
sub eax, dword [ebx]
sar eax, 1
cmp eax, 0xffffffff
je 0x51c8a3
push eax
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
call fcn.0040d090
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x18]
push eax
call fcn.00478300
mov byte [ebp - 4], 0x10
or ebx, 0xffffffff
mov edx, dword [ebp - 0x34]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x51c89e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x18]
jmp 0x51c8a6
or ebx, 0xffffffff
cmp dword [esi - 0xc], 0
je 0x51c8b7
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.0051c3e0
mov byte [ebp - 4], 6
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x51c8d7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x51c8d7
or ebx, 0xffffffff
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x51c8f5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
sub edi, 1
mov dword [ebp - 0x20], edi
jns 0x51c640
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.0047f650
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x51c92c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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 0x80004005
call fcn.00408fc0
push 0x80070057
call fcn.00408fc0
push 1
push 0xc000008c
call fcn.00411010
int3