Function at 0x4606c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2810
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x51ec70]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x460931
mov edx, dword [esi + 0x30]
lea eax, [esi + 0x30]
mov edi, edx
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 4]
cmp byte [eax + 0xd], 0
jne 0x460735
mov ecx, dword [ebx]
cmp dword [eax + 0x10], ecx
jae 0x460722
mov eax, dword [eax + 8]
jmp 0x460726
mov edi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x460718
cmp edi, edx
je 0x460735
cmp ecx, dword [edi + 0x10]
jae 0x460737
mov edi, edx
cmp edi, edx
je 0x460931
mov esi, dword [esi + 0x3c]
mov ecx, esi
mov eax, dword [ecx + 4]
cmp byte [eax + 0xd], 0
jne 0x46076d
mov edx, dword [ebx]
nop
cmp dword [eax + 0x10], edx
jae 0x46075a
mov eax, dword [eax + 8]
jmp 0x46075e
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x460750
cmp ecx, esi
je 0x46076d
cmp edx, dword [ecx + 0x10]
jae 0x46076f
mov ecx, esi
mov eax, dword [ebx + 4]
cmp dword [eax - 0xc], 0
je 0x460924
cmp ecx, esi
je 0x46091b
lea eax, [ebp - 0x10]
push eax
call fcn.0044f090
mov ecx, eax
call fcn.00422ac0
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
test eax, eax
je 0x46090d
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x4f9e40
call int.004225b0
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push dword [ebx + 4]
mov byte [ebp - 4], 2
call int.004225b0
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x460978
mov byte [ebp - 4], 1
call fcn.00477540
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x46090a
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x460838
movzx eax, byte [edi + 0x20]
push eax
push ecx
mov eax, esp
push ecx
mov dword [eax], ecx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [edi + 0x1c]
mov ecx, dword [ebp - 0x18]
push dword [edi + 0x24]
push dword [edi + 0x14]
push esi
call fcn.00442800
push 2
push dword [edi + 0x1c]
push esi
push ecx
mov ecx, dword [edi + 0x18]
mov eax, esp
mov dword [eax], ecx
test ecx, ecx
je 0x46082b
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
call fcn.0046afe0
add esp, 0x10
jmp 0x46090a
lea ecx, [ebp - 0x14]
call fcn.00406000
push dword [edi + 0x1c]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 4
push dword [edi + 0x24]
push dword [edi + 0x14]
push str._p_s_u
push eax
call fcn.0040a500
mov ebx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
add esp, 0x14
lea ecx, [ebx + 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0047c720
mov esi, dword [ebp - 0x18]
cmp esi, dword [ebx + 0x28]
je 0x4608ff
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x460982
push dword [esi + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov ebx, dword [ebp - 0x1c]
mov dword [esi + 0x14], ebx
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
cmp eax, ecx
je 0x4608ff
mov esi, dword [eax]
mov dword [ebp - 0x28], esi
test esi, esi
je 0x4608b6
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov byte [ebp - 4], 5
test esi, esi
je 0x460978
mov ecx, esi
call fcn.0047cf60
cmp eax, 1
jbe 0x4608e7
push 1
push dword [edi + 0x1c]
push ebx
push ecx
mov eax, esp
push esi
mov dword [eax], esi
mov eax, dword [esi]
call dword [eax + 4]
call fcn.0046afe0
add esp, 0x10
mov eax, dword [esi]
push esi
mov byte [ebp - 4], 4
call dword [eax + 8]
mov eax, dword [ebp - 0x18]
add eax, 4
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x1c]
jne 0x4608a7
lea ecx, [ebp - 0x14]
call fcn.00407190
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 0
test eax, eax
je 0x46091b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x20]
lea eax, [ebp + 0xc]
push edi
push eax
call fcn.0047c0b0
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x460962
mov edx, dword [ebx + 4]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x460957
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 8
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 8
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 0x10
push 0x80004003
call fcn.00499ec0
push 0x80004003
call fcn.00499ec0
int3