Function at 0x466958
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x527511
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x585698]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x24], eax
and dword [esp + 0x58], 0
test eax, eax
je 0x466cb6
mov edi, dword [ebp + 8]
push eax
lea eax, [esp + 0x48]
lea esi, [edi + 0x48]
push eax
mov dword [esp + 0x28], esi
call fcn.004674cd
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [esi + 0x18]
mov esi, dword [esi]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], eax
test ecx, ecx
je 0x4669cb
cmp ecx, esi
je 0x4669d0
call fcn.004f2996
cmp ebx, dword [esp + 0x48]
jne 0x4669de
mov esi, dword [ebp + 0xc]
jmp 0x466ca4
lea esi, [esp + 0x3c]
call fcn.0046bedd
push dword [ebp + 0xc]
mov ebx, eax
lea eax, [esp + 0x48]
push eax
lea esi, [edi + 0x6c]
push esi
add ebx, 4
mov byte [esp + 0x1f], 1
call fcn.004453cb
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x38], eax
mov eax, dword [esi]
lea edi, [esp + 0x34]
lea esi, [esp + 0x2c]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], eax
call fcn.004a65a0
test al, al
je 0x466a32
mov byte [esp + 0x13], 0
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 4]
cmp dword [eax - 0xc], 0
je 0x466c8e
cmp byte [esp + 0x13], 0
je 0x466c85
lea esi, [esp + 0x18]
call fcn.0043dea5
mov byte [esp + 0x58], 1
mov esi, dword [esp + 0x18]
test esi, esi
je 0x466c73
push ecx
mov edi, esp
mov dword [esp + 0x20], esp
push str.disable_resize
call fcn.00427950
mov eax, dword [ebp + 0xc]
push ecx
mov byte [esp + 0x60], 2
mov eax, dword [eax + 4]
mov edi, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.00427950
mov byte [esp + 0x60], 3
mov edx, esi
mov byte [esp + 0x60], 1
call fcn.0043dc64
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
je 0x466c73
mov eax, dword [ebx + 4]
test eax, eax
je 0x466b07
movzx ecx, byte [ebx + 0xc]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
mov dword [ecx], eax
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
push dword [ebx + 8]
mov eax, dword [ebx + 0x10]
push eax
push dword [ebx]
push edi
push dword [ebp + 8]
call fcn.004667aa
push 0
push 2
push dword [ebx + 8]
mov ebx, dword [ebx + 4]
push edi
push ecx
mov eax, esp
mov dword [esp + 0x30], esp
mov dword [eax], ebx
test ebx, ebx
je 0x466afa
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
call fcn.00465e88
add esp, 0x14
jmp 0x466c73
mov eax, dword [0x590e04]
mov ecx, 0x590e04
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x58], 4
push dword [ebx + 8]
lea eax, [esp + 0x18]
push dword [ebx + 0x10]
push dword [ebx]
push 0x54d5c0
push eax
call fcn.0040450f
mov edi, dword [ebp + 8]
add esp, 0x14
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x30]
add edi, 0x28
push eax
call fcn.00467166
cmp dword [esp + 0x2c], 0
mov esi, dword [edi + 0x18]
mov edi, dword [edi]
je 0x466b61
cmp dword [esp + 0x2c], edi
je 0x466b66
call fcn.004f2996
cmp dword [esp + 0x30], esi
je 0x466c63
lea esi, [esp + 0x2c]
call fcn.0046bedd
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x24]
call fcn.0046bedd
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
call fcn.0046bedd
push dword [eax + 0x18]
add eax, 8
mov edi, eax
lea esi, [esp + 0x48]
call fcn.00480d46
lea esi, [esp + 0x2c]
call fcn.0046bedd
push dword [eax + 0x14]
add eax, 8
mov edi, eax
lea esi, [esp + 0x30]
call fcn.00480d46
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
test eax, eax
je 0x466bdd
cmp eax, dword [esp + 0x44]
je 0x466be2
call fcn.004f2996
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0x48]
je 0x466c63
lea esi, [esp + 0x34]
call fcn.00467597
mov esi, dword [eax]
mov dword [esp + 0x28], esi
test esi, esi
je 0x466c05
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov byte [esp + 0x58], 5
test esi, esi
je 0x466c59
mov eax, esi
call fcn.00468064
cmp eax, 1
jbe 0x466c3c
push 0
push 1
push dword [ebx + 8]
push dword [esp + 0x28]
push ecx
mov eax, esp
mov dword [esp + 0x40], esp
mov dword [eax], esi
mov eax, dword [esi]
push esi
call dword [eax + 4]
call fcn.00465e88
add esp, 0x14
mov byte [esp + 0x58], 4
mov eax, dword [esi]
push esi
call dword [eax + 8]
lea esi, [esp + 0x34]
call fcn.0041b5a9
mov eax, dword [esp + 0x34]
jmp 0x466bd3
push 0x80004003
call fcn.004f1760
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.00405521
mov esi, dword [esp + 0x18]
mov byte [esp + 0x58], 0
test esi, esi
je 0x466c82
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov esi, dword [ebp + 0xc]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esp + 0x40]
lea eax, [esp + 0x48]
push dword [esp + 0x40]
push eax
push dword [esp + 0x2c]
call fcn.00467232
mov eax, dword [esi + 4]
sub eax, 0x10
call fcn.00405521
push esi
call fcn.004f1890
pop ecx
xor eax, eax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8