Function at 0x45e7b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e04e0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x51cbc0]
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 0x45ea21
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 0x45e825
mov ecx, dword [ebx]
cmp dword [eax + 0x10], ecx
jae 0x45e812
mov eax, dword [eax + 8]
jmp 0x45e816
mov edi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x45e808
cmp edi, edx
je 0x45e825
cmp ecx, dword [edi + 0x10]
jae 0x45e827
mov edi, edx
cmp edi, edx
je 0x45ea21
mov esi, dword [esi + 0x3c]
mov ecx, esi
mov eax, dword [ecx + 4]
cmp byte [eax + 0xd], 0
jne 0x45e85d
mov edx, dword [ebx]
nop
cmp dword [eax + 0x10], edx
jae 0x45e84a
mov eax, dword [eax + 8]
jmp 0x45e84e
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x45e840
cmp ecx, esi
je 0x45e85d
cmp edx, dword [ecx + 0x10]
jae 0x45e85f
mov ecx, esi
mov eax, dword [ebx + 4]
cmp dword [eax - 0xc], 0
je 0x45ea14
cmp ecx, esi
je 0x45ea0b
lea eax, [ebp - 0x10]
push eax
call fcn.0044d190
mov ecx, eax
call fcn.00420b00
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
test eax, eax
je 0x45e9fd
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x4f7c28
call fcn.004205f0
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push dword [ebx + 4]
mov byte [ebp - 4], 2
call fcn.004205f0
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x45ea68
mov byte [ebp - 4], 1
call fcn.004756b0
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x45e9fa
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x45e928
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.00440940
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 0x45e91b
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
call fcn.004690f0
add esp, 0x10
jmp 0x45e9fa
lea ecx, [ebp - 0x14]
call fcn.00405a60
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.00409d30
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.0047a8b0
mov esi, dword [ebp - 0x18]
cmp esi, dword [ebx + 0x28]
je 0x45e9ef
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x45ea72
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 0x45e9ef
mov esi, dword [eax]
mov dword [ebp - 0x28], esi
test esi, esi
je 0x45e9a6
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov byte [ebp - 4], 5
test esi, esi
je 0x45ea68
mov ecx, esi
call fcn.0047b0f0
cmp eax, 1
jbe 0x45e9d7
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.004690f0
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 0x45e997
lea ecx, [ebp - 0x14]
call fcn.00406bf0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 0
test eax, eax
je 0x45ea0b
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.0047a240
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x45ea52
mov edx, dword [ebx + 4]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45ea47
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.00497e80
push 0x80004003
call fcn.00497e80
int3