Function at 0x46dcb8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x46e08d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x675694], 1
jne 0x46e05a
mov eax, dword [0x672898]
cmp byte [eax], 1
jne 0x46dd09
mov eax, dword [0x6756c4]
call fcn.006561c8
mov eax, dword [0x672898]
cmp byte [eax], 3
sete al
mov edx, dword [0x672898]
mov byte [edx], 0
test al, al
je 0x46e053
mov byte [0x675694], 3
push 0
push 0
mov ecx, dword [0x675698]
mov dl, 1
mov eax, dword [0x619d9c]
call fcn.0061b650
mov ebx, eax
mov edx, 0x46e0a4
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 4]
mov edx, 0x46e0b4
mov eax, ebx
call fcn.0061adcc
mov esi, eax
lea ecx, [ebp - 0x28]
mov eax, dword [0x6722fc]
movzx eax, byte [eax]
mov edx, dword [eax*4 + 0x665bac]
mov eax, ebx
call fcn.0061af0c
mov edx, dword [ebp - 0x28]
mov eax, 0x67569c
call fcn.004032c8
mov eax, 0x6756a0
call fcn.00403274
lea ecx, [ebp - 0x28]
mov edx, 0x46e0cc
mov eax, ebx
call fcn.0061af0c
mov edx, dword [ebp - 0x28]
mov eax, 0x6756a4
call fcn.004032c8
lea ecx, [ebp - 0x28]
mov edx, 0x46e0e4
mov eax, ebx
call fcn.0061af0c
mov edx, dword [ebp - 0x28]
mov eax, 0x6756a8
call fcn.004032c8
xor eax, eax
mov dword [0x6756ac], eax
mov byte [0x6756b0], 0
mov eax, 0x6756b4
call fcn.00403274
mov eax, 0x6756b8
call fcn.00403274
mov edx, 0x46e0f8
mov eax, ebx
call fcn.0061adcc
mov dword [0x6756bc], eax
test esi, esi
jle 0x46e03f
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], 1
lea ecx, [ebp - 0x28]
mov eax, 0x46e104
mov edx, dword [ebp - 0x20]
call fcn.006592b4
mov edx, dword [ebp - 0x28]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 4]
lea ecx, [ebp - 4]
mov edx, 0x46e118
mov eax, ebx
call fcn.0061af0c
lea ecx, [ebp - 8]
mov edx, 0x46e128
mov eax, ebx
call fcn.0061af0c
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.0065934c
mov ecx, eax
mov eax, ecx
mov esi, 0x64
cdq
idiv esi
mov esi, 0x64
cdq
idiv esi
push edx
mov eax, ecx
mov esi, 0x2710
cdq
idiv esi
push eax
mov eax, ecx
mov ecx, 0x64
cdq
idiv ecx
mov ecx, edx
pop eax
pop edx
call fcn.00659430
fstp qword [ebp - 0x1c]
wait
lea ecx, [ebp - 0xc]
mov edx, 0x46e140
mov eax, ebx
call fcn.0061af0c
lea ecx, [ebp - 0x10]
mov edx, 0x46e150
mov eax, ebx
call fcn.0061af0c
lea ecx, [ebp - 0x14]
mov edx, 0x46e15c
mov eax, ebx
call fcn.0061af0c
mov eax, dword [ebp - 4]
call fcn.0062cb68
mov esi, eax
mov dword [0x6756ac], esi
test esi, esi
je 0x46df6c
cmp esi, 0x2687871
jle 0x46ded8
mov byte [0x6756b0], 1
cmp byte [0x6756b0], 0
je 0x46e033
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0xb
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
lea eax, [ebp - 0x40]
call fcn.00659c6c
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.00658264
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0xb
lea edx, [ebp - 0x38]
mov eax, dword [0x672264]
mov eax, dword [eax]
mov ecx, 1
call fcn.00659050
push dword [ebp - 0x28]
push 0x46e168
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.0061d1d8
push dword [ebp - 0x3c]
push 0x46e17c
push dword [0x6756a0]
mov eax, 0x6756a0
mov edx, 5
call fcn.004035dc
mov eax, 0x6756b4
mov edx, dword [ebp - 4]
call fcn.004032c8
jmp 0x46e033
cmp dword [ebp - 0x10], 0
je 0x46e033
cmp dword [ebp - 0x14], 0
je 0x46e033
call fcn.00659760
fsub qword [ebp - 0x1c]
fcomp dword [0x46e184]
fnstsw ax
sahf
ja 0x46dfeb
mov eax, dword [0x672ab4]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x40]
inc eax
jne 0x46e033
cmp dword [0x6756b8], 0
je 0x46dfc1
mov eax, 0x6756b8
mov edx, 0x46e190
call fcn.00403524
push dword [0x6756b8]
push dword [ebp - 0xc]
push 0x46e190
push dword [ebp - 0x10]
push 0x46e190
push dword [ebp - 0x14]
mov eax, 0x6756b8
mov edx, 6
call fcn.004035dc
jmp 0x46e033
mov eax, dword [0x672304]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov esi, eax
cmp esi, 0xffffffff
je 0x46e00f
mov eax, dword [0x672304]
mov eax, dword [eax]
mov edx, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [0x672ab4]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov esi, eax
cmp esi, 0xffffffff
je 0x46e033
mov eax, dword [0x672ab4]
mov eax, dword [eax]
mov edx, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 0x20]
dec dword [ebp - 0x24]
jne 0x46de0b
mov eax, ebx
call fcn.004028c0
mov eax, dword [0x675698]
push eax
call sub.kernel32.dll_DeleteFileW
jmp 0x46e05a
mov byte [0x675694], 2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e094
lea eax, [ebp - 0x40]
call fcn.00403880
lea eax, [ebp - 0x3c]
call fcn.00403274
lea eax, [ebp - 0x28]
call fcn.00403274
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00403298
ret