Function at 0x46e4a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x46e861
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x675690], 2
call fcn.0046e414
call fcn.0046dc14
call fcn.0046dcb8
call fcn.0046e45c
xor edx, edx
xor eax, eax
call fcn.00470320
xor edx, edx
mov al, 2
call fcn.00470320
cmp byte [0x675694], 3
jne 0x46e7ff
cmp byte [0x6756b0], 0
je 0x46e7a7
mov eax, dword [0x6722fc]
cmp byte [eax], 0
jne 0x46e716
mov eax, dword [0x67249c]
cmp dword [eax], 0
je 0x46e716
mov eax, dword [0x6756ac]
mov ecx, 0x989680
cdq
idiv ecx
mov ebx, eax
cmp ebx, 4
jle 0x46e716
lea ecx, [ebp - 0x10]
mov eax, dword [0x672674]
mov eax, dword [eax]
mov edx, ebx
call fcn.006592b4
mov eax, dword [ebp - 0x10]
mov cx, word [0x46e870]
mov dl, 3
call fcn.006230e8
cmp ax, 6
jne 0x46e716
lea eax, [ebp - 0x14]
call fcn.0061feb4
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 4]
mov ecx, 0x46e878
call fcn.00403b24
mov eax, dword [ebp - 4]
push eax
push 0
mov al, byte [0x46e8a8]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [0x67249c]
mov eax, dword [eax + 4]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xf
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x20], 0
mov dword [ebp - 0x1c], 4
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x2c]
mov eax, 0x46e8ac
mov ecx, 2
call fcn.00659098
mov eax, dword [ebp - 0x14]
push eax
lea edx, [ebp - 0x30]
mov eax, 0x46e8dc
call fcn.00658380
mov edx, dword [ebp - 0x30]
xor eax, eax
pop ecx
call fcn.00438acc
test al, al
je 0x46e61a
call fcn.00650c50
mov esi, eax
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.006533a8
cmp dword [esi + 0x24], 1
jne 0x46e613
lea eax, [ebp - 8]
mov edx, dword [esi + 0x14]
mov edx, dword [edx]
call fcn.0040330c
mov eax, esi
call fcn.004028c0
cmp dword [ebp - 8], 0
jne 0x46e63a
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_DeleteFileW
mov eax, dword [0x673040]
mov eax, dword [eax]
call fcn.006234f0
jmp 0x46e716
mov edx, dword [ebp - 8]
mov eax, 0x46e904
call fcn.0065804c
dec eax
jne 0x46e66e
mov eax, dword [0x672c90]
mov eax, dword [eax]
call fcn.006233ec
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00403a34
mov eax, dword [ebp - 0x14]
call fcn.00624474
jmp 0x46e716
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x10]
mov eax, dword [0x67249c]
mov eax, dword [eax + 4]
call fcn.00658264
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0xb
lea edx, [ebp - 0x40]
mov eax, dword [0x672268]
mov eax, dword [eax]
mov ecx, 1
call fcn.00659050
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x3c], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0xb
lea edx, [ebp - 0x40]
mov eax, dword [0x671958]
mov eax, dword [eax]
mov ecx, 1
call fcn.00659050
mov eax, dword [ebp - 0x10]
call fcn.006233ec
call fcn.0053999c
xor edx, edx
call fcn.00538aa4
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00657354
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
call fcn.0065829c
mov eax, dword [ebp - 0x14]
push eax
call fcn.0053999c
pop edx
call fcn.005397f4
call fcn.0053999c
call fcn.00538c64
xor ecx, ecx
mov dl, 1
mov eax, dword [0x46d91c]
call fcn.0046f010
mov dword [0x6756cc], eax
mov edx, dword [0x671954]
mov edx, dword [edx]
mov eax, dword [0x6756cc]
call fcn.00643234
lea edx, [ebp - 0x44]
mov eax, dword [0x6756cc]
mov ebx, dword [eax + 0x1a4]
mov eax, ebx
call fcn.00643138
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x10]
mov edx, dword [0x6756b4]
call fcn.0065918c
mov edx, dword [ebp - 0x10]
mov eax, ebx
call fcn.006431c4
mov eax, dword [0x6756cc]
mov eax, dword [eax + 0x1a8]
mov edx, dword [0x6756a0]
call fcn.006431c4
mov eax, dword [0x6756cc]
mov eax, dword [eax + 0x1b8]
mov edx, dword [eax]
call dword [edx + 0x68]
mov eax, dword [0x6756cc]
call fcn.0063f9d8
mov eax, dword [0x6756cc]
call fcn.004028c0
jmp 0x46e826
mov eax, dword [0x6756a4]
call fcn.0062cb68
cmp eax, 0x2687871
jle 0x46e7f1
mov ax, word [0x46e870]
push eax
mov eax, dword [0x672a58]
mov eax, dword [eax]
mov cl, 3
mov edx, dword [0x6756a4]
call fcn.0062332c
cmp ax, 6
jne 0x46e826
lea eax, [ebp - 0x14]
mov edx, dword [0x6756a8]
call fcn.00403a34
mov eax, dword [ebp - 0x14]
call fcn.00624474
jmp 0x46e826
mov eax, dword [0x67241c]
mov eax, dword [eax]
call fcn.006233ec
jmp 0x46e826
lea edx, [ebp - 0x14]
mov eax, 0x46e8dc
call fcn.00658380
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
mov eax, dword [0x671b74]
mov eax, dword [eax]
call fcn.00659210
mov eax, dword [ebp - 0x10]
call fcn.006235a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e868
lea eax, [ebp - 0x44]
call fcn.00403274
lea eax, [ebp - 0x30]
call fcn.00403880
lea eax, [ebp - 0x14]
call fcn.00403880
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00403298
lea eax, [ebp - 4]
call fcn.00403880
ret